Advertisement
Guest User

Untitled

a guest
May 20th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. WHAT: none
  2. WHERE: none
  3. WHEN: 0 - 24
  4. WHO: none
  5. // OTHER: none
  6. actor = getRelative()
  7. SceneStart()
  8. actor.dress()
  9. actor.show(2)
  10. aiChoice = Random(0,3)
  11. If aiChoice < 1
  12. aiChoice = 0
  13. ElseIf aiChoice < 2
  14. aiChoice = 1
  15. Else
  16. aiChoice = 2
  17. EndIf
  18. 0:: "Rock"
  19. 1:: "Paper"
  20. 2:: "Scissors"
  21.  
  22. num = aiChoice
  23. If num === 0
  24. labelChoice = Rock
  25. ElseIf num === 1
  26. $return = Paper
  27. Else
  28. $return = Scissors
  29. EndIf
  30. "<Actor.name> chose <labelChoice>"
  31. If aiChoice === choice
  32. "Draw"
  33. $return = 0
  34. ElseIf choice === 0
  35. If aiChoice === 1
  36. "You Lost"
  37. $return = -1
  38. Else
  39. "You Won"
  40. $return = 1
  41. EndIf
  42. ElseIf choice === 1
  43. If aiChoice === 2
  44. "You Lost"
  45. $return = -1
  46. Else
  47. "You Won"
  48. $return = 1
  49. EndIf
  50. ElseIf choice === 2
  51. If aiChoice === 0
  52. "You Lost"
  53. $return = -1
  54. Else
  55. "You Won"
  56. $return = 1
  57. EndIf
  58. EndIf
  59. SceneEnd()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement