Ember

Points

Sep 27th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Temporary variables
  2. var Points, Multiplier;
  3.  
  4. // Get points
  5. Points = round(get_integer("A treasure box has been picked up!##How many points would you like to add?", -1));
  6. while(1)
  7. {
  8.     Points = round(get_integer("How many points would you like to add?", -1));
  9.     if(Points <= 0)
  10.     {
  11.         show_message("You must enter some points to add!");
  12.     }
  13.     else
  14.     {
  15.         break;
  16.     }
  17. }
  18.  
  19. // Multiply points
  20. Multiplier = irandom(8) + 1;
  21. show_message("Your lucky number is " + string(Multiplier) + "!##You will gain " + string(Points * Multiplier) + " points.");
  22. Score += Points * Multiplier;
Advertisement
Add Comment
Please, Sign In to add comment