I'm making a Star Wars themed maths game where the player has to answer simple maths questions (2X7, (9X8, etc..). What would the script be for the player to lose some life if the answer is wrong, or the opponent loses life if the player gets it right? Could you please show an example script?
Offline
You need 3 variables. One for each contestant and one to store the answer in. I'm not good at using the blocks in posts, so I'll just write it out.
ask "What's 2x4?" and wait
set variable "Answer" to {answer}
if "Answer" = 8
change variable "opponent" by -1
else
change variable "player" by -1
Offline