--- assignments.yml ----
Denizens:
John Q QuestGiver:
Interact Scripts:
- 0 StartFetch
- 1 EndFetch
--- RepeatableFetchQuest.yml ----
StartFetch:
Type: Interact
Requirements:
Mode: None
Steps:
1:
Click Trigger:
Script:
- CHAT "Hey, you there!"
- CHAT "I have a special request of you!"
- CHAT "Will you help me?"
Chat Trigger:
1:
Trigger: /Yes/. I will.
Script:
#Tell the player what to do.
- CHAT "I need you to bring me some thing. For testing!"
- WAIT 1
- CHAT "I need: 1 Iron Block, 1 Feather, and 3 Eggs."
- WAIT 1
- CHAT "Come back when you have them and I will reward you!"
#Set this script as finished, so we know they're on the quest
- FINISH
#set this script to step 2. So the player gets the hint message.
- ZAP
2:
Trigger: /No/. I will not.
Script:
- CHAT "Are you sure? OK. maybe later?"
2:
Click Trigger:
Script:
- CHAT "Come back you have 1 Iron Block, 1 Feather, and 3 Eggs!"
EndFetch:
Type: Trigger
Requirements:
Mode: All
List: #Here we check if they are on the quest and have the items.
- FINISHED StartFetch
- ITEM 42 1
- ITEM 288 1
- ITEM 344 3
Steps:
'1':
Click Trigger:
Script:
#Engage is used to keep the player from clicking twice.
- ENGAGE
- TAKE 42 QTY:1
- TAKE 288 QTY:1
- TAKE 344 QTY:3
- CHAT "Thank you so much! Here, take this as a reward!"
- GIVE 133 QTY:1
- WAIT 1
- CHAT "Bring me those items again, and I'll give you another!"
#Always disengagae after an Engage
- DISENGAGE