Aller au contenu

Photo

[Release] Nukenin's +Healing Received Fix


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
Nukenin

Nukenin
  • Members
  • 571 messages
If it's still linked in my signature below, that means it's still good to check out.

I had to override EVENT_TYPE_EQUIP to get this to work to my satisfaction, so if you're using anything that'll conflict, well, it probably won't work for you.  Just ask the author of the mod that conflicts to do this when he handles the equip event or otherwise figure out on your own how to get 'em to coexist:

    event ev = GetCurrentEvent();
    object oOwner = GetEventCreator(ev);

    if (GetObjectType(oOwner) == OBJECT_TYPE_CREATURE &&
        GetCreatureProperty(oOwner, 51, PROPERTY_VALUE_BASE) < 100.0f)
    {
            // current base healing effect factor is less than 100, fix!
            SetCreatureProperty(oOwner, 51, 100.0f, PROPERTY_VALUE_BASE);

            // display notification
            if (IsPartyMember(oOwner))
                DisplayFloatyMessage(oOwner, "Fixed my HEF base to 100.",
                    FLOATY_MESSAGE, 12632064, 10.0f);
    }


:o

Modifié par Nukenin, 29 mars 2010 - 06:05 .


#2
Ifandbut01

Ifandbut01
  • Members
  • 155 messages
Does this work, or is it needed for Awaking or is it a Vanilla only patch?

Also, is this the same mod that is on DANexus? http://www.dragonagenexus.com/downloads/file.php?id=573

Modifié par Ifandbut01, 30 mars 2010 - 07:19 .


#3
Nikatjef

Nikatjef
  • Members
  • 81 messages
Greetings,



No, this is a different project than the one on DragonAgeNexus. The one on the nexus works on module / save load, whereas this one works on item equip.


#4
Ifandbut01

Ifandbut01
  • Members
  • 155 messages
Ok but they both do the same thing and you need them for Awaking correct? I installed Nukenin's because it was the first one I came across.

#5
Nikatjef

Nikatjef
  • Members
  • 81 messages
I am unsure if the one from Nexus works in Awakening or not, but Nukenin's appears to work.

#6
Nukenin

Nukenin
  • Members
  • 571 messages
I did mine when I realized the one at DA Nexus extended the Single Player (i.e. Origins) module and thus probably wouldn't work with Awakening.

I also didn't want to have to worry about the fix occurring just on module load (if Alistair joins my party and I somehow have a +healing item ready to slap on him right away, I want it to be effective without having to save/reload—granted, trivial, but I'm a quasi-perfectionist).

It's still a hack (a proper fix for this issue is best left to Bioware), just done for my benefit, but I figured I'd share.

I left in my debug notification so you will actually see a floaty over newly joined characters when their healing effectiveness factor (HEF) base value is set to 100.  And I left in my debug notification of your current total HEF popping up briefly over your portrait, so you can see that those +healing items are actually changing some value.  :)

#7
Ifandbut01

Ifandbut01
  • Members
  • 155 messages
Thanks for clearing up my questions and thanks for the mod. I cant was using +Healing Received items for months and they were not doing anything.

#8
Nukenin

Nukenin
  • Members
  • 571 messages
Oh, I used them even when I knew they weren't working, just like some of the other item attributes (messy kills, etc.) that don't work.  If I believe hard enough, maybe they'll start working spontaneously.  :D

But when I was pointing out the existence of the other +healing fix mentioned above, I decided to check it out and when I realized it might not work in Awakening I just whipped out a quick fix that would.

Eventually (hopefully) Bioware will patch characters and companions to start with a base 100 healing effect factor rather than 1.  (I wonder if that was some legacy from a time that HEF was just set as 1.0 base and items were supposed to add their +heal modifier divided by 100 (e.g. +0.15 for a +15% healing received modifier).  At some point someone decided to make things "simpler" and operate on an effective range of 100-200 for the HEF, but they forgot to adjust the base values?

Who knows?  It's not the cleanest code I've seen, the scripting files for DA.

#9
Nukenin

Nukenin
  • Members
  • 571 messages
I've updated my +Healing Received Fix to utilize Event Manager for hooking EVENT_TYPE_EQUIP.  This will ease conflict with other addons also utilizing Event Manager to hook EVENT_TYPE_EQUIP.

I've given my fix ID 685432 for the eventmanager M2DA file, for developer reference.

There is no urgent need to upgrade unless you need to coexist with other EM-utilizing addons that also want to hook EVENT_TYPE_EQUIP.