Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Categories

Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Summon Henchman Figurine

ZephiriusZephirius Member Posts: 173
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()
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.

Comments

Sign In or Register to comment.