Date: 2018/06/26 07:36:21 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
on mm denizen mechanic:
- if <context.skill> == "reinvigorate-targeter"
{
- if <context.targettype> != "ENTITY"
{
- determine false
}
- if <context.target.is_player.not>
{
- determine false
}
- if <context.caster.location.distance[<context.target.location>]> > 20
{
- determine false
}
# - narrate "Target name: <context.target.name>" targets:<context.caster>
# - narrate "Is not player: <context.target.is_player.not>" targets:<context.caster>
# - narrate "Distance between caster and target: <context.caster.location.distance[<context.target.location>]>" targets:<context.caster>
# - heal <context.target> 30
- narrate "<&a>You imbue <&b><context.target.name><&a> with a surge of healing magic!" targets:<context.caster>
# - narrate "mmskillcast caster:<context.caster> target:<context.target> skill:Reinvigorate-Heal" targets:<context.caster>
- define reinvigorate-particle-count 40
- repeat 40
{
- playeffect <context.target.location.add[0,<def[reinvigorate-particle-count].div[2]>,0]> effect:VILLAGER_HAPPY visibility:500 quantity:4 offset:0.4,0,0.4
- define reinvigorate-particle-count <def[reinvigorate-particle-count].sub[1]>
- if <def[reinvigorate-particle-count].mod[2]> == 0
{
- wait 1t
}
- if <def[reinvigorate-particle-count]> == 0
{
- mmcastplayer "caster:<context.caster>" "target:<context.target>" "skill:Reinvigorate-Heal"
}
}
- define reinvigorate-particle-count 0
- repeat 160
{
- playeffect <context.target.location.add[0,<def[reinvigorate-particle-count].div[4]>,0]> effect:VILLAGER_HAPPY visibility:500 quantity:8 offset:0.8,0,0.8
- playeffect <context.target.location> effect:VILLAGER_HAPPY visibility:500 quantity:10 offset:<def[reinvigorate-particle-count].div[32]>,<def[reinvigorate-particle-count].div[32]>,<def[reinvigorate-particle-count].div[32]>
- define reinvigorate-particle-count <def[reinvigorate-particle-count].add[1]>
}
}