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

33 lines
1.4 KiB
Plaintext

void main()
{
object oPC=GetEnteringObject();
int nRandom;
if (GetLocalInt(OBJECT_SELF,"active")!=FALSE&&GetIsObjectValid(oPC)&&GetIsPC(oPC))
{
}
else
{
// AssignCommand(GetObjectByTag("jw_beam1"),ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectVisualEffect(VFX_BEAM_ODD,TRUE),GetObjectByTag("jw_beam2"),4.0));
// AssignCommand(GetObjectByTag("jw_beam3"),ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectVisualEffect(VFX_BEAM_MIND,TRUE),GetObjectByTag("jw_beam4"),3.0));
AssignCommand(GetObjectByTag("jw_smoke"),ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_MIND),GetObjectByTag("jw_smoke"),30.0));
AssignCommand(GetObjectByTag("jw_smoke"),ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectVisualEffect(VFX_FNF_SMOKE_PUFF),GetObjectByTag("jw_smoke"),30.0));
AssignCommand(GetObjectByTag("jw_elvira"),SetFacingPoint(GetPosition(oPC)));
AssignCommand(GetObjectByTag("jw_elvira"),SpeakString("Oh do be careful, please! Don't touch anything! Oh, look what you've done!"));
AssignCommand(GetObjectByTag("jw_elvira"),PlayAnimation(ANIMATION_LOOPING_TALK_PLEADING));
AssignCommand(GetObjectByTag("jw_smoke"),PlaySound("al_mg_beaker1"));
SetLocalInt(OBJECT_SELF,"active",TRUE);
DelayCommand(40.0,SetLocalInt(OBJECT_SELF,"active",FALSE));
}
}