Summon Henchman Figurine
Zephirius
Member Posts: 419
I've want to make it so that when you use the figurine the summon will fight for you. As it is now, the script just summons a cockatrice with some fancy effects and that's it. How do I henchmanize my summon?
This is the scipt from OnActivateItem()
Thanks for any help.
This is the scipt from OnActivateItem()
object oUsed = GetItemActivated();
// The following section is for the Cracked Amulet
// The amulet heals half the PCs damage when used.
if (GetTag(oUsed) == "COCKATRICE_FIG_01")
{
// Get the PC, first.
object oPC = GetItemActivator();
object oTarget;
object oSpawn;
location lTarget;
oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "cockatrice002", lTarget);
effect eEffect = EffectVisualEffect(VFX_IMP_PDK_FINAL_STAND);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
}
}
Thanks for any help.
0
Comments