Battledale_PRC8/_module/nss/fr_iwd_spiritend.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

20 lines
928 B
Plaintext

void main()
{
object oTarget = GetObjectByTag("fr_iwd_spirit_inv");
object oSumm = GetObjectByTag("fr_iwd_spirit_summ");
effect eBoom = EffectVisualEffect(VFX_IMP_DEATH_WARD, FALSE);
effect eBeam = EffectBeam(VFX_BEAM_SILENT_COLD, OBJECT_SELF, BODY_NODE_CHEST);
object oAltar = GetObjectByTag("fr_iwd_darkaltar");
ActionSpeakString("All has been said.", TALKVOLUME_TALK);
DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam, oAltar, 4.0));
DelayCommand(1.0, PlaySound("vs_nx0headm_bye"));
DelayCommand(3.0, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBoom, oTarget, 5.0));
AssignCommand(oSumm, DelayCommand(2.0,ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE)));
DelayCommand(3.0, SetPlotFlag(GetObjectByTag("fr_iwd_spirit"), FALSE));
DelayCommand(4.0, DestroyObject(GetObjectByTag("fr_iwd_spirit")));
DelayCommand(4.0, SoundObjectStop(GetNearestObjectByTag("Ghosts")));
SetLocalInt(oTarget,"Chk", 0);
}