RancherQuest1: type: assignment interact scripts: - 10 RancherMain RancherMain: type: interact steps: 1: click trigger: script: - narrate format:FormatScript "Help! I left the gate open over night and now the horses are running free on the field!" - wait 2s - narrate format:FormatScript "Please, can you help me bring them back?" - wait 1s - narrate "[<&o>Type <&b><&o>Yes<&f> or <&b><&o>No<&7>]" chat trigger: 1: trigger: /Yes/, I will help you get your horses back! script: - narrate format:FormatScript "Thank you so much! Here, take this leash with you." - give 420:1 - wait 1s - narrate format:FormatScript "Right-click a horse with it and bring it back here." - wait 1s - narrate format:FormatScript "Once again, thank you." - zap step:2 2: trigger: /No/, I dont have time for this right now. script: - random { - narrate format:FormatScript "Okay, well if you have time later come see me." - narrate format:FormatScript "Okay then." - narrate format:FormatScript "Farewell." } - zap step:1 2: click trigger: script: if >= 1 { - foreach { - if <%value%.get_leash_holder> == { - narrate format:FormatScript "Thank you so much for bringing my horse back!" - wait 2s - narrate format:FormatScript "Let me put a post down for that leash." - wait 1s - animate animation:ARM_SWING - modifyblock 1@-927,4,1255,world m@fence - leash %value% holder:1@-927,4,1255,world - wait 1s - narrate format:FormatScript "You have helped me, my friend" - wait 1s - narrate format:FormatScript "Here, take this, its the least I can do" - give i@lapis_block - zap step:3 } } } else { - narrate format:FormatScript "Hurry up . Bring my horses back here."} - wait 1 - narrate format:FormatScript "I am sorry for being rude, I dont know what to do without them." 3: click trigger: script: - narrate format:FormatScript "Thank you for helping me out!"