Paste #9705: Diff note for paste #9704

Date: 2014/09/17 09:31:13 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 Quackie:
   type: assignment
   debug: false
   actions:
     on assignment:
       - run locally assignment instantly
 
     on chat:
-      - run locally chatSubScript delay:1s
+      - run locally chatSubScript def:<c.message> delay:1s
 
   assignment:
     - flag npc respawn_location:<npc.location>
     - trigger name:chat state:true radius: 10
     - trigger name:click state:true
     - trigger name:proximity state:false
     - trigger name:damage state:false
     - vulnerable state:false
     - lookclose true
     - run locally spawn instantly
 
   chatSubScript:
-    - if <c.message.to_lowercase.contains[hi]> || <c.message.to_lowercase.contains[hey]> {
+    - if <def[1].to_lowercase.contains[hi]> || <def[1].to_lowercase.contains[hey]> {
       - random {
         - chat "Hi, I'm Duckie!  Are you new to Knockturn?"
         - chat "Sup?  Are you a newbie?  I like newbies!"
         - chat "Quack!  Quack Quack!  Oh, wait, Hi!  Do you speak Duck?"
         - chat "Meow! Woof! No I know I am a Duck!  Hi! Quack, Quack, Quack"
         - chat "Hi.  I don't know you.  Why are you still here?  Quack."
         }
       }