Date: 2014/07/07 12:32:36 UTC-07: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
#
"test":
type: assignment
debug: false
actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
- lookclose state:true
on load:
- note l@x,y,z,world as:blockshop
interact scripts:
- 10 GuideScript
GuideScript:
type: interact
steps:
1:
click trigger:
Script:
- chat "<yellow>Welcome to the Domestic Center! I am <npc.name>, one of the agents here."
- chat "<yellow>Would you like to know about our various <gray>departments<yellow>?"
- chat "<yellow>I can also guide you to any department, if you tell me the name."
chat trigger:
'DepartmentList':
trigger: What /departments/ does the Domestic Center offer?
script:
- chat "<yellow>We currently possess several departments, including:"
- chat "<gray>Realestate"
- chat "<gray>Rent-A-Builder"
- chat "<gray>Block Shop"
- chat "<gray>Food Shop"
- chat "<gray>Postmaster"
- chat "<yellow>Would you like me to guide you somewhere? Just type in the name!"
chat trigger:
'DepartmentSelect':
trigger: Can you guide me to /regex:(?i)(Realestate|Rent-A-Builder|Block Shop|Postmaster)/?
script:
- engage
- flag npc Returnpoint:<npc.location>
- chat "<yellow>Ok! Follow me!"
- ~walk l@<context.message>
- chat "<yellow>There you go! This is the <gold><context.message> <yellow>department."
- chat "<yellow>Have a great day!"
- walk l@<npc.flag[<Returnpoint>]>
- disengage