Date: 2015/01/15 09:16:19 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
emotion:
type: world
events:
on emotion command:
- flag player arg1:<c.args.get[1]>
- if <player.flag[arg1]> == 'happy' || <player.flag[arg1]> == 'sad' && <player.has_flag[emotion]> != true {
- inject <player.flag[arg1]>
- determine fulfilled
- queue clear
}
else if <player.flag[arg1]> == 'happy' || <player.flag[arg1]> == 'sad' && <player.has_flag[emotion]> == true {
- narrate '<RED>Please wait atleast 10 seconds before using emotions again.'
- determine fulfilled
- queue clear
}
else {
- narrate '<RED>Invalid command'
- determine fulfilled
- queue clear
}
Mytask:
type: task
script:
- determine passively fulfilled
- narrate 'You have now entered cooldown mode!'
- flag player incooldownmode
- narrate 'test'
- wait 25s
- flag player emotion:!
- narrate '<GREEN>You may now use emotions again.'
- queue clear
- determine fulfilled
happy:
type: task
script:
- announce '<GREEN><player.name> is feeling happy.'
- flag player emotion:true
- inject Mytask
sad:
type: task
script:
- announce '<GREEN><player.name> is feeling sad.'
- flag player emotion:true
- inject Mytask