Paste #28282: Diff note for paste #28281

Date: 2016/01/11 13:39:26 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 DiceRoll:
   Type: World
   Events:
     On diceroll Command:
-      - narrate "Youre rolling dice"
-      - flag diceNum:<util.random.int[1].to[50]>
-
-      - if <player.flag[diceNum]> > 40 {
+      - determine passively fulfilled
+      - narrate "You<&sq>re rolling dice..."
+      - if <player.money> < 1000 {
+        - narrate "You don't have enough money, you need $1000"
+        - queue clear
+        }
+      - define diceNum <util.random.int[1].to[50]>
+      - if %diceNum% < 30 {
+          - give iron 1
+          }
+          else if %diceNum% < 40 {
           - give diamond 1
-          }
-
-          else if <player.flag[diceNum]> > 30 {
-          - give iron 1
           }
-
           else {
-          - chat "you suck you rolled less than 30"          
+          - chat "You rolled a %diceNum%, you lose."
           }
       - determine fulfilled