Paste #3883: Else

Date: 2014/04/30 16:03:08 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Notfall Zauber: 
  type: world 
  debug: false
  events: 
    on notfall command:
    - define player <context.args.get[1]>
    - define dPlayer <server.match_player[%player%]>
    - narrate '<&6>Du fängst an den Zauber zu wirken...' targets:%dPlayer%
    - if <%dPlayer%.flag[notfallCooldown]> {
        - narrate '<&4>...aber du kannst den Zauber nicht schon wieder wirken.' targets:%dPlayer%
       } else {
            - random 6
            - execute as_server "warp w_notfall_schlucht %player%"
            - execute as_server "warp w_notfall_sumpf %player%"
            - execute as_server "warp w_notfall_baum %player%"
            - execute as_server "warp w_notfall_wueste %player%"
            - execute as_server "warp w_notfall_lager %player%"
            - execute as_server "warp w_notfall_tempel %player%"
            - flag %dPlayer% notfallCooldown duration:6s
            - potion blindness %dPlayer% p:3 d:8
            - potion slow %dPlayer% p:3 d:7
        }
    - determine passively fulfilled