PWE_PRC8/_module/nss/smach_onused.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

23 lines
494 B
Plaintext

/*
Monster Slots
By Ray Miller
kaynekayne@bigfoot.com
*/
#include "smach_configure"
void main()
{
object oPC = GetLastUsedBy();
if(IsInConversation(OBJECT_SELF))
{
SendMessageToPC(oPC, "That machine is being played right now.");
return;
}
if(!GetLocalInt(OBJECT_SELF, "bConfigured"))
{
SetLocalInt(OBJECT_SELF, "bConfigured", TRUE);
ConfigureSlotMachine();
}
SetLocalInt(OBJECT_SELF, "bGameComplete", TRUE);
ActionStartConversation(GetLastUsedBy(), "", TRUE);
}