Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WHAT: none
- WHERE: none
- WHEN: 0 - 24
- WHO: none
- // OTHER: none
- actor = getRelative()
- SceneStart()
- actor.dress()
- actor.show(2)
- aiChoice = Random(0,3)
- If aiChoice < 1
- aiChoice = 0
- ElseIf aiChoice < 2
- aiChoice = 1
- Else
- aiChoice = 2
- EndIf
- 0:: "Rock"
- 1:: "Paper"
- 2:: "Scissors"
- num = aiChoice
- If num === 0
- labelChoice = Rock
- ElseIf num === 1
- $return = Paper
- Else
- $return = Scissors
- EndIf
- "<Actor.name> chose <labelChoice>"
- If aiChoice === choice
- "Draw"
- $return = 0
- ElseIf choice === 0
- If aiChoice === 1
- "You Lost"
- $return = -1
- Else
- "You Won"
- $return = 1
- EndIf
- ElseIf choice === 1
- If aiChoice === 2
- "You Lost"
- $return = -1
- Else
- "You Won"
- $return = 1
- EndIf
- ElseIf choice === 2
- If aiChoice === 0
- "You Lost"
- $return = -1
- Else
- "You Won"
- $return = 1
- EndIf
- EndIf
- SceneEnd()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement