Aschbourne_PRC8/_module/nss/enter_battle.nss
Jaysyn904 f5ffe7d0b9 Module commit
Module commit.
2024-06-14 10:48:20 -04:00

16 lines
392 B
Plaintext

/**
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);
}