#---- Assignment.yml----
"Willy":
Type: Assignment
Interact Scripts:
-1 Hello-Willy #Flag for the 1st half of dialog
# -2 Willy-Ending #Flag for the second half of dialog
# ---- NPC EVENT FLAGS -----
# ---- Willy-Scripts.yml ----
'Hello-Willy':
Type: Interact
Requirements:
Mode: NONE
Lists:
Steps:
1:
Click Trigger:
Script:
- CHAT "Hmph? What? First and foremost, who are YOU, and how did YOU stumble into this plane of existence?"
- NARRATE "Options: Pick One Of The Numbers Below To Respond!"
- NARRATE "1: I don't know where I am, I was sucked in through a portal. Who and what exactly are you?"
- NARRATE "2: Your tiny brain is unable to process the god-like creature standing before you; you let out a high pitched scream."
Chat Trigger:
1:
Trigger: /1/
Script:
- CHAT "Well <player.name>, I am Willy. I have lived in this dimension for quite some time. If you're interested, I can tell you about where you are currently residing and I can also indulge you with the information of who I am, and how I ended up here."
- NARRATE "Options: Pick One Of The Numbers Below To Respond!"
- NARRATE "1: I would like to know more about whatever this place is."
- NARRATE "2: I would like to know more about you."
- NARRATE "3: Leave."
- FLAG 'Willy-Ending' Duration 20
#This flag enables the second half of Willy's dialog, and if the player walks 20 or more blocks away the event will reset if not already completed.
2:
Trigger: /2/
Script:
- NARRATE "You begin to feel nauseous and as you try to straighten yourself out, you collapse onto the ground feeling as if the world is a rollercoaster. However, you are only on the floor for a short while, as very quickly after you faint, you are greeted by the numbing darkness."
- EXECUTE ASSERVER effect <player.name> 9 10
- EXECUTE ASSERVER effect <player.name> 15 10
- WAIT 5
- EXECUTE ASSERVER spawn <player.name>
- RESET FLAG:'Hello-Willy'
#This flag will give the player nausea and blindness for 10 seconds. After 5 of those seconds have passed, the player will be teleported back to the spawn and the whole event will be reset if not already completed.