Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Temporary variables
- var Points, Multiplier;
- // Get points
- Points = round(get_integer("A treasure box has been picked up!##How many points would you like to add?", -1));
- while(1)
- {
- Points = round(get_integer("How many points would you like to add?", -1));
- if(Points <= 0)
- {
- show_message("You must enter some points to add!");
- }
- else
- {
- break;
- }
- }
- // Multiply points
- Multiplier = irandom(8) + 1;
- show_message("Your lucky number is " + string(Multiplier) + "!##You will gain " + string(Points * Multiplier) + " points.");
- Score += Points * Multiplier;
Advertisement
Add Comment
Please, Sign In to add comment