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);
}
Modifié par Nukenin, 29 mars 2010 - 06:05 .





Retour en haut







