PWE_PRC8/_module/nss/sc_ref_start_g.nss

13 lines
297 B
Plaintext
Raw Normal View History

2025-04-03 10:29:41 -04:00
#include "sc_dart_include"
void main()
{
if (GetGold(GetPCSpeaker()) >= GetLocalInt(getDB(), WAGER)) {
startGame();
TakeGoldFromCreature(GetLocalInt(getDB(), WAGER), GetPCSpeaker(), TRUE);
}
else {
// Player doesn't have enough gold - can't start game
}
}