Date: 2015/06/09 22:19:40 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
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]>