Zombie:
type: assignment
interact scripts:
- 10 KillQuest
KillQuest:
type: interact
steps:
1:
click trigger:
script:
- chat "Thank goodness you ran into me <player.name>!"
- wait 1
- chat "The Zombies have been terrorizing the village!"
- wait 1
- chat "Killing some Zombies should help quell their onslaught."
- wait 1
- chat "Can you kill 10 of those bastards for me?"
chat trigger:
1:
trigger: /Yes/, I'll kill 'em.
script:
- chat "Thank you very much!"
- wait 1
- chat "Please hurry!"
- listen kill type:entity name:Zombie qty:1 script ZombieQuestCheck
- flag player ZombieCount:0
- zap step:2
2:
trigger:
script:
- chat "Then leave coward!"
2:
click trigger:
script:
- chat "They are everywhere!"
- wait 1
- chat "You've only killed <player.flag[ZombieCount].asint> zombies!"
3:
click trigger:
script:
- chat "Thank god they're leaving!"
- wait 1
- chat "Here take this!"
- give money qty:300
- zap step:1
ZombieQuestCheck:
type: task
script:
- flag player ZombieCount:++
- narrate "You have killed <player.flag[ZombieCount].asint>/10 zombies!"
- if <player.flag[ZombieCount].asint> >= 10 run ZombieQuestReward
else run ZombieQuestContinue
ZombieQuestContinue:
type: task
script:
- listen kill type:entity name:Zombie qty:1 script ZombieQuestCheck
ZombieQuestReward:
type: task
script:
- narrate "You have killed <player.flag[ZombieCount].asint>/10 zombies! return back to Farmer John"
- zap step:3 script:KillQuest