KillAnnouncer: type: world debug: false events: on player dies: - flag player ZombieCountLife:0 - flag player KillCountLife:0 on player joins: - run script:KillFlags1 KillFlags1: type: task script: - flag player ZombieCountLife:0 - flag player KillCountLife:0 - listen kill type:entity name:zombie qty:1 script:ZombieCountCheck - listen kill type:player qty:1 script:KillCountCheck KillFlags2: type: task script: - flag player ZombieCountTotal:0 - flag player KillCountTotal:0 ZombieCountCheck: type: task script: - flag player ZombieCountLife:++ - flag player ZombieCountTotal:++ - narrate "You have killed Zombies this life!" - narrate "You have killed Zombies while playing QuestZ!" KillCountCheck: type: task script: - flag player KillCountLife:++ - flag player KillCountTotal:++ - narrate "You have killed Players this life!" - narrate "You have killed Players while playing QuestZ!"