Date: 2016/01/04 18:30:33 UTC-08:00
Type: Denizen Script
Bob_the_npc:
type: assignment
actions:
on assignment:
- trigger name:click state:true
interact scripts:
- 1 bob_the_interact_script
Bob_the_interact_script:
type: interact
steps:
1:
click trigger:
script:
- chat 'やあ、勇者よ。 君の満腹度は <player.food_level> だな。'
- if <player.food_level.int[1].to[10]> {
- chat '腹が減っているようだ。りんごが欲しいか? Yes or No'
chat trigger:
1:
trigger: /Yes/
script:
- chat 'そうか、金のりんごをやろう。'
- drop item:322 qty:1 location:<player.location>
2:
trigger: /No/
script:
- chat 'そうか、変な奴だな。'
}
else {
- chat 'はらは一杯だな。(・∀・)カエレ!!'
}