Battledale_PRC8/_module/nss/px_wraithspawn.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

13 lines
573 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
if(GetIsPC(oPC) == TRUE && GetLocalInt(GetObjectByTag("px_halflingbone"),"Summoned") == 0)
{
CreateObject(OBJECT_TYPE_CREATURE,"px_apparition",GetLocation(oPC));
ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_UNSUMMON),GetLocation(oPC),1.0);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_DUR_PROTECTION_GOOD_MAJOR),GetLocation(oPC),1.0);
AssignCommand(GetObjectByTag("px_apparition"),ActionStartConversation(oPC));
SetLocalInt(GetObjectByTag("px_halflingbone"),"Summoned",1);
}
}