Aschbourne_PRC8/_module/nss/enter_battle.nss

16 lines
392 B
Plaintext
Raw Normal View History

2024-06-14 10:48:20 -04:00
/**
enter_battle
OnEnter: Starts the fighting when the first PC enters the battle.
If we don't delay the start of the battle, things might be in
a really wierd state by the time a player actually arrives.
J.D. Robertson, 2002
*/
void main()
{
object enterer = GetEnteringObject();
if (GetIsPC(enterer))
SetLocalInt(OBJECT_SELF, "BattleStarted", TRUE);
}