void main() { object oPC = GetPCSpeaker(); int iGold = GetGold(oPC); SetLocalInt(oPC, "wager", iGold); }