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

43 lines
830 B
Plaintext

void main()
{
object oObject;
object oOther;
if (GetTag(OBJECT_SELF)=="jw_andros_lev1")
{
oOther=GetObjectByTag("jw_andros_lev2");
}
else
{
oOther=GetObjectByTag("jw_andros_lev1");
}
if (GetLocalInt(OBJECT_SELF,"NW_L_AMION") != 1)
{
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
SetLocalInt(OBJECT_SELF,"NW_L_AMION",1);
AssignCommand(oOther,PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
SetLocalInt(oOther,"NW_L_AMION",1);
SetLocalInt(GetArea(OBJECT_SELF),"andtrap",2);
}
else
{
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
AssignCommand(oOther,PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE));
SetLocalInt(oOther,"NW_L_AMION",0);
SetLocalInt(OBJECT_SELF,"NW_L_AMION",0);
SetLocalInt(GetArea(OBJECT_SELF),"andtrap",0);
}
}