Date: 2015/07/25 18:15:22 UTC-07:00
Type: Denizen Script
JohnnyStore:
type: interact
debug: false
steps:
StartStore*:
click trigger:
script:
- chat "Hello!! I am Johnny!"
- wait 1
- chat "I just got done pickin' some apples I planted years ago."
- wait 1
- chat "Would you like to buy an apple for $10?"
- wait 1
- chat "Say <green> Yes <reset> or <red> No"
chat trigger:
1:
trigger: /yes/
script:
- if <player.money> > 10 {
- take money qty:10
- give perfectapple qty:1
- chat "Thank you for the business!"
- wait 1
} else chat "You don't have enough money."
2:
trigger: /no/
script:
- chat "So sorry. Bye now!"