Paste #16383: Untitled Paste

Date: 2015/06/09 22:19:40 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


BlinkCast:
    type: task
    debug: false
    script:
    - ^teleport <player> <player.location.cursor_on[15]>

BlinkEquip:
    type: procedure
    debug: false
    script:
    - if <player.money> > 500 {
        - determine true
      }
    - determine false
CanBlink:
    type: procedure
    debug: false
    script:
    - if <player.money> > 500 {
        - determine true
      }
    - determine false

Blink:
  type: item
  material: i@book
  display name: Blink
  bound: true
  enchantments:
  - durability:1
  default constants:
    SpellDisplayName: Blink
    #CanBlink determines if the player can Blink.
    #Mana and cooldown calculations are automatic.
    SpellEquipRequirement: BlinkEquip
    SpellCastRequirement: CanBlink
    CastTask: BlinkCast
    #Mana is not yet implemented.
    ManaCost: 0
    Cooldown: 15
  lore: 
  - <green>Blink a short distance.
  - <blue>Mana Cost<&co> <script.constant[ManaCost]>
  - <yellow>Cooldown<&co> <script.constant[Cooldown]>