17 lines
501 B
Plaintext
17 lines
501 B
Plaintext
void main()
|
|
{
|
|
if(GetLocalInt(OBJECT_SELF, "BATTLE_ACTIVE"))
|
|
{
|
|
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
|
DeleteLocalInt(OBJECT_SELF, "BATTLE_ACTIVE");
|
|
FloatingTextStringOnCreature("Battle OFF", GetLastUsedBy());
|
|
return;
|
|
}
|
|
|
|
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
|
SetLocalInt(OBJECT_SELF, "BATTLE_ACTIVE", TRUE);
|
|
SetLocalInt(OBJECT_SELF,"EAST_RANDOM",19);
|
|
SetLocalInt(OBJECT_SELF,"WEST_RANDOM",36);
|
|
FloatingTextStringOnCreature("Battle ON", GetLastUsedBy());
|
|
}
|