Paste #31678: Diff note for paste #31677

Date: 2016/03/15 19:30:32 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 fishcountworld:
   type: world
   events:
     on player fishes:
       - narrate '<c.state>'
       - run locally <c.state>
 
   BITE:
     - title 'title:Reel it in!'
 
   CAUGHT_ENTITY:
     - title 'title:The fishing rod is not a weapon!'
 
   CAUGHT_FISH:
+    - define item '<c.item||null>'
+    - if %item% == null {
+      - narrate "Must have been a dud"
+      }
     - ^title 'title:You<&sq>ve caught one!'
-    - ^if li@raw_fish|raw_pufferfish|raw_salmon !contains <context.item> {
-      - ^narrate "We don<&sq>t care about <context.item>" 
+    - ^if li@raw_fish|raw_pufferfish|raw_salmon !contains %item% {
+      - ^narrate "We don<&sq>t care about %item%" 
       - ^queue clear
       }
-    - ^flag player <context.item>_count:++
-    - ^narrate "You have caught <player.flag[<context.item>_count].as_int> <context.item.name>."
+    - ^flag player %item%_count:++
+    - ^narrate "You have caught <player.flag[%item%_count].as_int> <def[item].name>."
 
   FISHING:
     - title 'title:Now wait for the bobber to bob!'
 
   IN_GROUND:
     - title 'title:Bad cast!'
 
   FAILED_ATTEMPT:
     - title 'title:You caught nothing!'