I'm trying to get this to work with an altar, but it seems to break my whole Altar. The script runs as far as asking the question to the player, and then nothing happens and the altar no longer works. Any ideas? Here is the whole script:
Label Altar
Wait for entity Player 7,7,7,7
Answer option "Some ATK (5 ATK - 200 greckles)",ATK
Answer option "Some DEF (6 DEF - 160 greckles)",DEF
Answer option "Play Casino Game",Casino
Question Would you like to buy something?
Label ATK
If ...
Wait until var "_GR" < 200
Speech "Not enough money!",Normal,Self,0,.
Go to end
If End
Set var "_GR" - 200
Set var "_ATK" + 5
Speech "Attack upgraded!",Normal,Self,0,.
Go to end
Label DEF
If ...
Wait until var "_GR" < 160
Speech "Not enough money!",Normal,Self,0,.
Go to end
If End
Set var "_GR" - 160
Set var "_DEF" + 6
Speech "Defense upgraded!",Normal,Self,0,.
Go to end
Label Casino
Set var "Seed" = _TotalTime
Set var "RNG1" = Seed * 8191
Set var "RNG2" = RNG1 % 131071
Set var "RNG3" = RNG2 % 100
Set var "Seed" = RNG2
Wait 0
Set var "ATKGain" = RNG3 / 10
Set var "DEFGain" = RNG3 % 10
Set var "_ATK" = + ATKGain
Set var "_DEF" + DEFGain
Go to end
Label end
Wait while entity is Player 7,7,7,7
Go to Altar