Date: 2014/07/18 09:56:02 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# COOKIES is a small interact script example for 0.8.4+
# This script is kept simple to allow a base scripting example to extend upon.
#
# Tell the npc 'cookies' and get a treat!
# Note: Be sure the 'chat trigger' is enabled.
#
# @author aufdemrand
# @version 1.0
# @last-updated Jan 18 2013
"Cookies":
type: assignment
actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
interact scripts:
- 10 Cookie Greeting
'Cookie Greeting':
type: interact
steps:
'Spreading the Word*':
click trigger:
script:
- random 3
- chat 'I like cookies!'
- chat 'MMmm.. cookies are my favorite!'
- chat 'Cocoa and wheat make me freak!'
chat trigger:
'Cookies':
trigger: 'I want /cookie/s!'
script:
- chat 'Me too!'
- narrate '<npc.name> gives you some cookies.'
- give item:cookie qty:6
- zap 'step:Cookies given'
'Cookies given':
click trigger:
script:
- chat 'How were the cookies?'
chat trigger:
'Greedy':
trigger: 'I want /cookie/s!'
script:
- chat "Don't Be Greedy -_-"
- take item:cookie qty:1
- attack <player.name>
'Sorry':
trigger: "I'm /Sorry/"
script:
- chat "Okay don't let it happen again"
- attack stop