Date: 2016/01/04 17:29:15 UTC-08:00
Type: Denizen Script
villager_quest:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:chat state:true
interact scripts:
- 10 villager_quest_interact
villager_quest_interact:
type: interact
steps:
1:
click trigger:
script:
- if <player.has_flag[npc_engaged]> queue clear
- flag player npc_engaged
- narrate "[<&6>NPC<&r>] <&a><npc.name><&7>:<&r> Hello <player.name>!"
- wait 0.5
- narrate "[<&6>NPC<&r>] <&a><npc.name><&7>:<&r> I am in desperate need of your help. Can you assist me?"
- wait 0.5
- narrate "<&9>Say <&n>yes<&9> or <&n>no<&9>..."
- flag player npc_engaged:!
chat trigger:
1:
trigger: /yes/
script:
- narrate "<&9>You tell Josh: <&r>Yes, I can."
- wait 0.5
- narrate "[<&6>NPC<&r>] <&a><npc.name><&7>:<&r> Wonderful! I'll need you to gather a few things!"
2:
trigger: /no/
script:
- narrate "<&9>You tell Josh: <&r>No, I cannot."
- wait 0.5
- narrate "[<&6>NPC<&r>] <&a><npc.name><&7>:<&r> Well then..."