# Helper Bot "HelperBot": type: assignment interact scripts: - 10 Helper Bot actions: on assignment: # This enables interaction with NPC via clicking, chatting, proximity and damage. - trigger name:chat toggle:true - trigger name:click toggle:true - trigger name:proximity toggle:true - trigger name:damage toggle:true - lookclose state:true "Helper Bot": type: interact steps: 1: proximity trigger: entry: - if == 1 { - if == -1 { - chat "So, You got down from the balloon then " - wait 3 - chat "Here, have some food" - execute as_npc "give minecraft:apple 64" - wait 4 } else { - chat "Careful, , I wouldn<&sq>t want you to take damage" - wait 5 - chat "Heres some food" - execute as_npc "give minecraft:cooked_mutton 64" } } click trigger: script: - wait 1 - chat "So, this map has two possible endings and it depends on whether you are nice or naughty" - wait 7 - chat "If you are nice then there will be fireworks and hints along the way" - wait 5 - chat "if you are not nice, then... well... the puzzles will have less and less hints." - wait 4 - chat "this will mean that the puzzles are harder the more times you are naughty." - wait 3 - if == -1 { - chat "And so far you are on the naughty list, better fix that" - chat "The Baker in town can help you get on the nice list" } else { - chat "And so far you are on the nice list. Keep it up!" - chat "The Baker in Town can give you more food." } }