killquest_zombie_assignment: type: assignment actions: on assignment: - trigger name:click state:true - trigger name:proximity state:true radius:5 interact scripts: - 10 npc_killquest_interact npc_killquest_interact: type: interact steps: 1: click trigger: script: - engage - if == 5 { - chat "Oh cool. Have a thing." targets: - flag kill_zombie_quest:! - flag kill_zombie_quest_count:! - give 1@diamond - flag kill_zombie_quest_cooldown duration:24h - disengage - queue clear } - if { - chat "...Don't you have something to do?" targets: - disengage - queue clear } - if { - chat "Come back in ." targets: - disengage - queue clear } - if ! { - chat "Sup nerd." - wait 10t - chat "You want to kill stuff for me?" targets: - narrate "[click again or walk away]" - flag killquestchat:+:1 - disengage - queue clear } - if == 1 { - engage - chat "Cool beans. Kill 5 of those pesky zombies." targets: - flag kill_zombie_quest - flag kill_zombie_quest_count:0 - disengage - queue clear } proximity trigger: exit: script: - if { - engage - chat "OK, bye then." targets: - flag killquestchat:! - disengage - queue clear } killquest_zombie_world: type: world events: on player kills zombie: - if ! queue clear - flag player kill_zombie_quest_count:++ - if == 5 { - narrate "[Return to the NPC!]" - flag player kill_zombie_quest:! }