generated from Jaysyn/ModuleTemplate
41 lines
910 B
Plaintext
41 lines
910 B
Plaintext
effect eEffect;
|
|
#include "nw_i0_2q4luskan"
|
|
location lTarget;
|
|
object oTarget;
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 1.6
|
|
|
|
For download info, please visit:
|
|
http://www.lilacsoul.revility.com */
|
|
|
|
void main()
|
|
{
|
|
object oPC;
|
|
|
|
if ((GetObjectType(GetItemActivatedTarget())!=OBJECT_TYPE_PLACEABLE)
|
|
){
|
|
|
|
SendMessageToPC(GetItemActivator(), "This must be used on a recently dead humanoid...");
|
|
return;}
|
|
|
|
|
|
{
|
|
oPC = GetItemActivator();
|
|
|
|
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_MEDITATE, 1.0f, 5.0f));
|
|
|
|
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_TALK_PLEADING, 1.0f, 3.0f));
|
|
|
|
lTarget = GetItemActivatedTargetLocation();
|
|
|
|
DelayCommand(6.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "spectre001", lTarget));
|
|
|
|
eEffect = EffectVisualEffect(VFX_IMP_DEATH);
|
|
|
|
DelayCommand(6.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, lTarget));
|
|
|
|
}
|
|
|
|
}
|
|
|