Date: 2015/11/04 19:43:43 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
"peter":
type: assignment
actions:
on assignment:
- trigger name:click toggle:true
- trigger name:chat state:true
interact scripts:
- 30 test
- 1 Hello Sal
- 3 SAL-1-1
- 3 SAL-2-1
- 3 SAL-2-BACK
- 3 SAL-2-2-NODAVE
- 3 SAL-2-2-YESDAVE
'test':
type: interact
steps:
'getPromotion*':
click trigger:
script:
# Wenn der Spieler Klickt
- if <player.inventory.contains[red_tulip]> run "SCRIPT:test3"
else run "SCRIPT:nein2
chat trigger:
'1':
trigger: '<gold>/ja/ kannst du '
script:
- chat "Dann werde ich mich gleich mal Anmelden gehen <3"
'2':
trigger: '<gold>/nein/ '
script:
- chat "Arschloch"
'nein2':
Type: task
Script:
- chat "<gray>OHHH TANNEN BAUM OHH TANNEN BAUM ..... ich denke ich kann bei DSDS mit machen oder?"
- NARRATE "Tippe in den Chat: <aqua>ja<white> |<aqua> nein"
'test3':
Type: task
Script:
- if <player.in_group[default]> {
- run geht2
}
else {
- run nein
}
'geht2':
Type: task
Script:
- chat "Ohh du hast mir was schönes Mitgebracht das ist lieb von dir"
- take i@red_tulip,4
- wait 2
- chat "Bitte sei doch so nett und bringe doch dem Peter von mir Diesen Kuchen."
- give i@regeln2
- give i@Befehle3
- give i@cake
- chat "buch"
- zap step:1
"regeln2":
type: book
title: "buch"
author: <npc.name>
text:
- "<blue>Regeln vom Server:<red> \n \n 1. Nicht Spammen! \n \n 2. Nicht Griefen \n \n 3. Nerv nicht die Anderen \n \n 4. Nicht nach OP Betteln"
- ""
"Befehle3":
type: book
title: "buch"
author: <npc.name>
text:
- "<blue>Allgemeine Infos:<red> \n \nBesitzer: <gold> <player.name>\n \n<red>Erstellt Am: <gold><util.date>\n \n<red>Zeit:<gold> <util.date.time.twentyfour_hour><red>\n \n1. Server Besuch am: <gold>\n\n<player.first_played.time>"
- "<blue>Server Infos:<red> \n \nIhr k<ö>nnt mit einer <gold>\nGoldenen Schaufel<red> \neuer Gebiet Protecten in dem ihr mit der Rechten Maustaste auf Das Gebiet Klickt. Ihr habt eine Begrenzte Anzahl an Protect Steine aber ihr k<ö>nnt mit \n ---> Seite 2 "
- "<gold>/buyclaims<red> weitere steine Kaufen. Mit /trust /"
- NARRATE <player.inventory.contains[red_tulip]>
################################################
'SAL-1-1': # Same name as flag to avoid confusing myself.
Type: Interact
Requirements:
Mode: ALL
List:
- FLAGGED 'SAL-1-1'
Steps:
1:
Chat Trigger:
1: #In this option Sal will ask if you'd like more info, giving you 2 more options. This demonstrates branching the chat tree.
Script:
- CHAT "Information about Option 1."
- WAIT 2
- CHAT "There's 2 more things you can ask about this topic. Pick one."
- ^NARRATE "Options:"
- ^NARRATE "1: Option 1."
- ^NARRATE "2: Option 2."
- ^NARRATE "3: Leave."
- ^RESET FLAG:SAL-1-1
- ^FLAG 'SAL-2-1' # Second question teir, first option.
2: #This option will send you to another chat branch that requires you to have some other requirements.
Trigger: /Option 2/.
Script:
- CHAT "Response to Option 2."
- WAIT 2
- CHAT "Have you met dave? I can tell you where a thing is if you have.
- ^NARRATE "Options:"
- ^NARRATE "1: Yes I have" #If you haven't met dave and gotten the proper flag from him, picking yes will be lying.
- ^NARRATE "2: No I haven't" # as such we'll need a script for such a situation. See below for how that's handled.
- ^NARRATE "3: Leave"
- ^RESET FLAG:SAL-1-1
- ^FLAG 'SAL-2-2'
3: #This option gives a requirement for a quest. I could make it more dynamic so if you've taken this option, you can't again, but I'm lazy so deal with it.
Trigger: /Option 3/.
Script:
- CHAT "Information needed to learn about a quest somewhere else."
- RESET FLAG:SAL-1-1
- FLAG 'OtherQuestStart'
4: #This was the Leave option. This ends the conversation and resets all necessary flags so chatting again will not bug.
Trigger: /Leave/.
Script:
- RESET FLAG:SAL-1-1
- ^NARRATE "You stop talking to Sal and walk away."
####################