- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2015/01/15 09:16:19 UTC-08:00
ByGuest
Other
Paste
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
4900
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



RawRaw



Pastes made: 57250