I was able to catch the EVENT_TYPE_ATTACKED on the mage when the player attacks her, however CommandUseAbility doesn't seem to do anything. I know the mage has Heal (via the AI package she uses), so I used the following script to test if she would heal herself when i hit her, but she doesn't. The script does fire though. I also tried manually adding the Heal spell on the creature template just in case.
Is there a better way to do this? I still haven't figured out the part where I would need to catch that the sylvan received the Heal spell and then fire the 'come to life' script.
case EVENT_TYPE_ATTACKED:
{
object oCreature = GetEventCreator(ev); // creature being attacked (the mage)
{
CommandUseAbility(10104, OBJECT_SELF);
DisplayFloatyMessage(oCreature, "fired", FLOATY_MESSAGE, 16777215, 2.0);
}
break;
Modifié par Kilrogg_, 30 mai 2010 - 05:45 .





Retour en haut






