CoalBuyer: type: interact steps: 'Starting*': click trigger: script: - chat "Hey, do you have any coal to sell? I pay 2 dollar for three coal pieces." - narrate "Type yes if you want to sell some coal." chat trigger: 'yes': trigger: "/Yes/. You can have three pieces of coal." script: - if { - chat "Thank you so much!" - take i@coal quantity:3 - money give quantity:2 } else { - chat "That is not coal. What trick are you trying to play on me? Bye." } 'no': trigger: "No." script: - chat "ok."