Date: 2017/11/20 09:43:42 UTC-08:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
TicketQuest:
type: assignment
interact scripts:
- 10 TicketStart
TicketStart:
type: interact
steps:
1:
click trigger:
script:
- chat "Hello there <player.name>..."
- wait 1
- chat "Would you like to show me the ticket, please?"
- wait 2
- chat "#Hint# Type Yes/No in the chat."
chat trigger:
1:
trigger: /Yes/, here you go. &5Conductor reaches for the ticket in <player.name>´s hand.
script:
- wait 2
- chat "Thank you! I will check this right away."
- zap step:2
2:
trigger: /No/, I will not give you the ticket.
script:
- chat "Oh darn, you will not get passed me without a ticket."
- wait 1
- chat "Come back when you´ve got a ticket..."
2:
click trigger:
script:
- if <player.inventory.contains[PAPER].qty[1]> {
- take paper qty:1
- chat "Thanks for your cooperation, sir."
- wait 1
- chat "Have a great time here"
- wait 2
- teleport <player> <player.location.add[30,28,-13]>
} else {
- chat "Seems like you dont have my ticket, come back when you´ve got it!"
- wait 1
- narrate "<npc.name> frows at you."
}