AOC_PRC8/_module/nss/battleon.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

70 lines
2.8 KiB
Plaintext

#include "x0_i0_petrify"
#include "crowd"
void main()
{
object oMod = GetModule();
location lTarget;
object oTarget;
object oSpawn;
effect eLight = EffectVisualEffect(VFX_DUR_LIGHT_BLUE_20);
int oS0 = GetLocalInt(oMod, "challenge");
int oS1 = GetLocalInt(oMod, "sw_hw");
int oS2 = GetLocalInt(oMod, "sw_dr");
int oS3 = GetLocalInt(oMod, "sw_bl");
int oS4 = GetLocalInt(oMod, "sw_pf");
int oS5 = GetLocalInt(oMod, "sw_df");
int oS6 = GetLocalInt(oMod, "sw_pm");
int oS7 = GetLocalInt(oMod, "sw_bm");
int oS8 = GetLocalInt(oMod, "sw_lm");
int oS9 = GetLocalInt(oMod, "sw_ll");
int oTime = GetLocalInt(oMod, "btime");
int oTime2 = GetLocalInt(oMod, "btime2");
if ((oS1!=1)&&(oS2!=1)&&(oS3!=1)&&(oS4!=1)&&(oS5!=1)&&(oS6!=1)&&
(oS1!=7)&&(oS8!=1)&&(oS9!=1)&&(oS0!=1)&&(oTime!=1))
{
oTarget = GetObjectByTag("fire1");
RemoveEffectOfType(oTarget, GetEffectType(eLight));
DelayCommand(0.2, DestroyObject(oTarget));
oTarget = GetObjectByTag("fire2");
RemoveEffectOfType(oTarget, GetEffectType(eLight));
DelayCommand(0.2, DestroyObject(oTarget));
oTarget = GetObjectByTag("firesound1");
DestroyObject(oTarget);
oTarget = GetObjectByTag("firesound2");
DestroyObject(oTarget);
DestroyObject(oTarget);
CrowdPlay(2);
SetLocalInt(oMod, "btime", 1);
SetLocalInt(oMod, "btime2", 0);
}
if (((oS1==1)||(oS2==1)||(oS3==1)||(oS4==1)||(oS5==1)||(oS6==1)||
(oS1==7)||(oS8==1)||(oS9==1)||(oS0==1))&&(oTime2!=1))
{
oTarget = GetWaypointByTag("wpfire1");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "fire1", lTarget);
oTarget = oSpawn;
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLight, oTarget);
DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_FLAME_M), GetLocation(oTarget)));
oTarget = GetWaypointByTag("wpfire2");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "fire2", lTarget);
oTarget = oSpawn;
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLight, oTarget);
DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_FLAME_M), GetLocation(oTarget)));
oTarget = GetWaypointByTag("wpfire1");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "firesound1", lTarget);
oTarget = oSpawn;
DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_FLAME_M), GetLocation(oTarget)));
oTarget = GetWaypointByTag("wpfire2");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "firesound2", lTarget);
CrowdPlay(1);
SetLocalInt(oMod, "btime2", 1);
SetLocalInt(oMod, "btime", 0);
}
}