Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_spell

(view raw script w/o annotations or w/e)
1
function 
scr_spell
scr_spell

function
scr_spell(arg0, arg1)
{ spell = arg0; caster = arg1; star = global.chartarget[arg1]; global.spelldelay = 10; switch (spell) { case 0: break; case 1: cancelattack = 0; if (global.monster[star] == 0)
scr_retarget_spell();
if (cancelattack == 0) { damage = ceil((global.battleat[arg1] * 10) - (global.monsterdf[star] * 3)); if (global.automiss[star] == 1) damage = 0;
scr_damage_enemy(star, damage);
attack = instance_create(global.monsterx[star] + random(6), global.monstery[star] + random(6), obj_basicattack); attack.sprite_index = spr_attack_mash1; dm.delay = 8; } global.spelldelay = 30; break; case 2: healnum = ceil(
scr_heal_amount_modify_by_equipment(global.battlemag[arg1] * 5));
if (
scr_armorcheck_equipped(3, 36))
healnum = ceil(
scr_heal_amount_modify_by_equipment(global.battlemag[arg1] * 6));
scr_heal(star, healnum);
global.charinstance[star].healnum = healnum; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } dmgwr.damage = healnum; } global.spelldelay = 15; break; case 3: if (global.monster[star] == 0)
scr_retarget_spell();
if (global.monster[star] == 1) { if (global.monsterstatus[star] == 1) { with (global.monsterinstance[star]) { if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3 && global.monstertype[myself] != 52 && global.monstertype[myself] != 43Berdly (coaster)) { var yoffy; if (global.monstertype[myself] == 33Werewire) yoffy = -60; else yoffy = 0; _pspell = instance_create(global.monsterx[myself], global.monstery[myself] + yoffy, obj_pacifyspell); _pspell.con = 20; _pspell.target = id; global.flag[51 + myself] = 3; event_user(10);
scr_monsterdefeat();
} else { if (global.monstertype[myself] == 52Jigsaw Joe) { _pspell = instance_create(global.monsterx[myself], global.monstery[myself], obj_pacifyspell); _pspell.con = 20; _pspell.target = id; } pacifycon = 1; global.spelldelay = 999; } } } else { if (global.monstertype[myself] == 52Jigsaw Joe) pacifycon = -2; _pspell = instance_create(0, 0, obj_pacifyspell); _pspell.target = global.monsterinstance[star]; _pspell.fail = 1; } } global.spelldelay = 20; break; case 4: cancelattack = 0; global.spelldelay = 30; ...
(arg0, arg1)
2
{
3
    spell = arg0;
4
    caster = arg1;
5
    star = global.chartarget[arg1];
6
    global.spelldelay = 10;
7
    switch (spell)
8
    {
9
        case 0:
10
            break;
11
        case 1:
12
            cancelattack = 0;
13
            if (global.monster[star] == 0)
14
                
scr_retarget_spell
scr_retarget_spell

function
scr_retarget_spell()
{ cancelattack = 0; if (star == 0) { if (global.monster[0] == 0) star = 1; } if (star == 1) { if (global.monster[1] == 0) star = 2; } if (star == 2) { if (global.monster[2] == 0) star = 3; if (star == 3 && global.monster[0] == 1) star = 0; if (star == 3 && global.monster[1] == 1) star = 1; if (star == 3) cancelattack = 1; } }
();
15
            if (cancelattack == 0)
16
            {
17
                damage = ceil((global.battleat[arg1] * 10) - (global.monsterdf[star] * 3));
18
                if (global.automiss[star] == 1)
19
                    damage = 0;
20
                
scr_damage_enemy
scr_damage_enemy

function
scr_damage_enemy(arg0, arg1)
{ dm = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); if (caster < 4) { dm.type = global.char[caster] - 1; if (global.char[caster] == 4) dm.type = 6; } if (caster == 5) dm.type = 5; dm.damage = arg1; global.monsterhp[arg0] -= arg1; with (global.monsterinstance[arg0]) { if (variable_instance_exists(id, "callback_on_damage")) callback_on_damage(id); } if (arg1 > 0) { with (global.monsterinstance[arg0]) { shakex = 9; state = 3; hurttimer = 30; } if (i_ex(global.monsterinstance[arg0])) global.monsterinstance[arg0].hurtamt = arg1; } global.hittarget[arg0] += 1; if (arg1 == 0) { with (global.monsterinstance[arg0]) { hurtamt = 0; if (hurttimer <= 15 && candodge == 1) { dodgetimer = 0; state = 4; } } } var a = 0; if (global.monsterhp[arg0] <= 0 && a == 0) { with (global.monsterinstance[arg0])
scr_monsterdefeat();
} }
(star, damage);
21
                attack = instance_create(global.monsterx[star] + random(6), global.monstery[star] + random(6), obj_basicattack);
22
                attack.sprite_index = spr_attack_mash1;
23
                dm.delay = 8;
24
            }
25
            global.spelldelay = 30;
26
            break;
27
        case 2:
28
            healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(global.battlemag[arg1] * 5));
29
            if (
scr_armorcheck_equipped
scr_armorcheck_equipped

function
scr_armorcheck_equipped(arg0, arg1)
{ var __wearing = 0; if (global.chararmor1[arg0] == arg1) __wearing++; if (global.chararmor2[arg0] == arg1) __wearing++; return __wearing; }
(3, 36))
30
                healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(global.battlemag[arg1] * 6));
31
            
scr_heal
scr_heal

function
scr_heal(arg0, arg1, arg2 = true)
{ abovemaxhp = 0; belowzero = 0; hltarget = global.char[arg0]; _curhp = global.hp[hltarget]; if (global.hp[hltarget] <= 0) belowzero = 1; if (global.hp[hltarget] > global.maxhp[hltarget]) abovemaxhp = 1; if (abovemaxhp == 0) { global.hp[hltarget] += arg1; if (global.hp[hltarget] > global.maxhp[hltarget]) global.hp[hltarget] = global.maxhp[hltarget]; } if (belowzero == 1 && global.hp[hltarget] >= 0 && arg2) { if (global.hp[hltarget] < ceil(global.maxhp[hltarget] / 6)) global.hp[hltarget] = ceil(global.maxhp[hltarget] / 6);
scr_revive(arg0);
} snd_stop(snd_power); snd_play(snd_power); return global.hp[hltarget] - _curhp; }
(star, healnum);
32
            global.charinstance[star].healnum = healnum;
33
            with (global.charinstance[star])
34
            {
35
                ha = instance_create(x, y, obj_healanim);
36
                ha.target = id;
37
                dmgwr = 
scr_dmgwriter_selfchar
scr_dmgwriter_selfchar

function
scr_dmgwriter_selfchar()
{ if (tu < -1) tu = -1; return instance_create(x, (y + myheight) - 40 - 24 - (tu * 20), obj_dmgwriter); }
();
38
                with (dmgwr)
39
                {
40
                    delay = 8;
41
                    type = 3;
42
                }
43
                if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
44
                {
45
                    with (dmgwr)
46
                        specialmessage = 3;
47
                }
48
                dmgwr.damage = healnum;
49
            }
50
            global.spelldelay = 15;
51
            break;
52
        case 3:
53
            if (global.monster[star] == 0)
54
                
scr_retarget_spell
scr_retarget_spell

function
scr_retarget_spell()
{ cancelattack = 0; if (star == 0) { if (global.monster[0] == 0) star = 1; } if (star == 1) { if (global.monster[1] == 0) star = 2; } if (star == 2) { if (global.monster[2] == 0) star = 3; if (star == 3 && global.monster[0] == 1) star = 0; if (star == 3 && global.monster[1] == 1) star = 1; if (star == 3) cancelattack = 1; } }
();
55
            if (global.monster[star] == 1)
56
            {
57
                if (global.monsterstatus[star] == 1)
58
                {
59
                    with (global.monsterinstance[star])
60
                    {
61
                        if (global.monstertype[myself] != 19 &amp;&amp; global.monstertype[myself] != 3 &amp;&amp; global.monstertype[myself] != 52 &amp;&amp; global.monstertype[myself] != 43Berdly (coaster))
62
                        {
63
                            var yoffy;
64
                            if (global.monstertype[myself] == 33Werewire)
65
                                yoffy = -60;
66
                            else
67
                                yoffy = 0;
68
                            _pspell = instance_create(global.monsterx[myself], global.monstery[myself] + yoffy, obj_pacifyspell);
69
                            _pspell.con = 20;
70
                            _pspell.target = id;
71
                            global.flag[51 + myself] = 3;
72
                            event_user(10);
73
                            
scr_monsterdefeat
scr_monsterdefeat

function
scr_monsterdefeat()
{ if (global.monster[myself] == 1) { debug_message("==
scr_monsterdefeat() called ==");
debug_message("===== Encounter Results ====="); global.monstergold[3] += global.monstergold[myself]; global.monsterexp[3] += global.monsterexp[myself]; global.monster[myself] = 0; if (global.flag[51 + myself] == 0) { global.flag[51 + myself] = 2; if (global.monsterhp[myself] <= 0) global.flag[51 + myself] = 1; } if (global.flag[51 + myself] == 1) { global.flag[40 violences] += 1; if (fatal == 1) global.flag[44 kills]++; } if (global.flag[51 + myself] == 2) global.flag[41 spares] += 1; if (global.flag[51 + myself] == 3) global.flag[42 pacifies] += 1; if (global.flag[51 + myself] == 5) global.flag[43 autosusie_violences] += 1; if (global.flag[51 + myself] == 6) { global.flag[45 freezes] += 1; global.monstergold[3] += 24; } if (
scr_monsterpop() == 0)
{ var _amt_add = 0; var _frozened = 0; var _violenced = 0; var _spared = 0; var _pacified = 0; for (var d_i = 0; d_i < 3; d_i++) { if (global.flag[51 + d_i] != 0) _amt_add += 1; if (global.flag[51 + d_i] == 1) _violenced += 1; if (global.flag[51 + d_i] == 2) _spared += 1; if (global.flag[51 + d_i] == 3) _pacified += 1; if (global.flag[51 + d_i] == 6) _frozened += 1; } if (_frozened > 0) global.flag[50 last_encounter_end] = 6; if (_pacified > 0) global.flag[50 last_encounter_end] = 3; if (_spared > 0) global.flag[50 last_encounter_end] = 2; if (_violenced > 0) global.flag[50 last_encounter_end] = 1; if (global.flag[50 last_encounter_end] == 6) global.flag[926 iceshocked_encounters]++; if (global.flag[54 encounter_pointer] != 0) { global.flag[global.flag[54 encounter_pointer]] = global.flag[50 last_encounter_end]; debug_message("encounter flag: global.flag[" + string(global.flag[54 encounter_pointer]) + "]=" + string(global.flag[50 last_encounter_end])); global.flag[54 encounter_pointer] = 0; } } event_user(11); debug_message("======="); } }
();
74
                        }
75
                        else
76
                        {
77
                            if (global.monstertype[myself] == 52Jigsaw Joe)
78
                            {
79
                                _pspell = instance_create(global.monsterx[myself], global.monstery[myself], obj_pacifyspell);
80
                                _pspell.con = 20;
81
                                _pspell.target = id;
82
                            }
83
                            pacifycon = 1;
84
                            global.spelldelay = 999;
85
                        }
86
                    }
87
                }
88
                else
89
                {
90
                    if (global.monstertype[myself] == 52Jigsaw Joe)
91
                        pacifycon = -2;
92
                    _pspell = instance_create(0, 0, obj_pacifyspell);
93
                    _pspell.target = global.monsterinstance[star];
94
                    _pspell.fail = 1;
95
                }
96
            }
97
            global.spelldelay = 20;
98
            break;
99
        case 4:
100
            cancelattack = 0;
101
            global.spelldelay = 30;
102
            if (global.monster[star] == 0)
103
                
scr_retarget_spell
scr_retarget_spell

function
scr_retarget_spell()
{ cancelattack = 0; if (star == 0) { if (global.monster[0] == 0) star = 1; } if (star == 1) { if (global.monster[1] == 0) star = 2; } if (star == 2) { if (global.monster[2] == 0) star = 3; if (star == 3 && global.monster[0] == 1) star = 0; if (star == 3 && global.monster[1] == 1) star = 1; if (star == 3) cancelattack = 1; } }
();
104
            if (cancelattack == 0)
105
            {
106
                global.spelldelay = 70;
107
                damage = ceil(((global.battlemag[arg1] * 5) + (global.battleat[arg1] * 11)) - (global.monsterdf[star] * 3));
108
                if (
scr_armorcheck_equipped
scr_armorcheck_equipped

function
scr_armorcheck_equipped(arg0, arg1)
{ var __wearing = 0; if (global.chararmor1[arg0] == arg1) __wearing++; if (global.chararmor2[arg0] == arg1) __wearing++; return __wearing; }
(2, 36))
109
                    damage = ceil(((global.battlemag[arg1] * 5.5) + (global.battleat[arg1] * 12)) - (global.monsterdf[star] * 3));
110
                if (global.automiss[star] == 1)
111
                    damage = 0;
112
                attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
113
                attack.damage = damage;
114
                attack.star = star;
115
                attack.caster = caster;
116
                attack.target = global.monsterinstance[star];
117
            }
118
            break;
119
        case 5:
120
            cancelattack = 0;
121
            global.spelldelay = 30;
122
            if (global.monster[star] == 0)
123
                
scr_retarget_spell
scr_retarget_spell

function
scr_retarget_spell()
{ cancelattack = 0; if (star == 0) { if (global.monster[0] == 0) star = 1; } if (star == 1) { if (global.monster[1] == 0) star = 2; } if (star == 2) { if (global.monster[2] == 0) star = 3; if (star == 3 && global.monster[0] == 1) star = 0; if (star == 3 && global.monster[1] == 1) star = 1; if (star == 3) cancelattack = 1; } }
();
124
            if (cancelattack == 0)
125
            {
126
                global.spelldelay = 70;
127
                damage = ceil(((global.battlemag[arg1] * 6) + (global.battleat[arg1] * 13)) - (global.monsterdf[star] * 6));
128
                if (global.automiss[star] == 1)
129
                    damage = 0;
130
                attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
131
                attack.damage = damage;
132
                attack.star = star;
133
                attack.caster = caster;
134
                attack.target = global.monsterinstance[star];
135
                attack.red = 1;
136
            }
137
            break;
138
        case 6:
139
            healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(global.battlemag[arg1] * 5.5));
140
            for (i = 0; i < 3; i += 1)
141
            {
142
                
scr_heal
scr_heal

function
scr_heal(arg0, arg1, arg2 = true)
{ abovemaxhp = 0; belowzero = 0; hltarget = global.char[arg0]; _curhp = global.hp[hltarget]; if (global.hp[hltarget] <= 0) belowzero = 1; if (global.hp[hltarget] > global.maxhp[hltarget]) abovemaxhp = 1; if (abovemaxhp == 0) { global.hp[hltarget] += arg1; if (global.hp[hltarget] > global.maxhp[hltarget]) global.hp[hltarget] = global.maxhp[hltarget]; } if (belowzero == 1 && global.hp[hltarget] >= 0 && arg2) { if (global.hp[hltarget] < ceil(global.maxhp[hltarget] / 6)) global.hp[hltarget] = ceil(global.maxhp[hltarget] / 6);
scr_revive(arg0);
} snd_stop(snd_power); snd_play(snd_power); return global.hp[hltarget] - _curhp; }
(i, healnum);
143
                global.charinstance[i].healnum = healnum;
144
                with (global.charinstance[i])
145
                {
146
                    ha = instance_create(x, y, obj_healanim);
147
                    ha.target = id;
148
                    dmgwr = 
scr_dmgwriter_selfchar
scr_dmgwriter_selfchar

function
scr_dmgwriter_selfchar()
{ if (tu < -1) tu = -1; return instance_create(x, (y + myheight) - 40 - 24 - (tu * 20), obj_dmgwriter); }
();
149
                    with (dmgwr)
150
                    {
151
                        delay = 8;
152
                        type = 3;
153
                    }
154
                    if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
155
                    {
156
                        with (dmgwr)
157
                            specialmessage = 3;
158
                    }
159
                    dmgwr.damage = healnum;
160
                    tu += 1;
161
                }
162
            }
163
            global.spelldelay = 15;
164
            break;
165
        case 8:
166
            var _mistcount = 0;
167
            for (_spelli = 0; _spelli < 3; _spelli++)
168
            {
169
                if (global.monster[_spelli] == 1)
170
                {
171
                    with (global.monsterinstance[_spelli])
172
                    {
173
                        _icemist = instance_create(global.monsterx[myself], global.monstery[myself], obj_spell_mist);
174
                        _icemist.target = id;
175
                        _icemist.myself = myself;
176
                        _icemist.initdelay = _mistcount * 10;
177
                        _mistcount++;
178
                    }
179
                }
180
            }
181
            global.spelldelay = 20 + (_mistcount * 10);
182
            break;
183
        case 9:
184
            cancelattack = 0;
185
            global.spelldelay = 30;
186
            if (global.monster[star] == 0)
187
                
scr_retarget_spell
scr_retarget_spell

function
scr_retarget_spell()
{ cancelattack = 0; if (star == 0) { if (global.monster[0] == 0) star = 1; } if (star == 1) { if (global.monster[1] == 0) star = 2; } if (star == 2) { if (global.monster[2] == 0) star = 3; if (star == 3 && global.monster[0] == 1) star = 0; if (star == 3 && global.monster[1] == 1) star = 1; if (star == 3) cancelattack = 1; } }
();
188
            if (cancelattack == 0)
189
            {
190
                global.flag[925 iceshocks]++;
191
                var minbattlemag = clamp(global.battlemag[arg1] - 10, 1, 999);
192
                global.spelldelay = 40;
193
                damage = ceil((minbattlemag * 30) + 90 + random(10));
194
                attack = instance_create(global.monsterx[star], global.monstery[star], obj_icespell);
195
                attack.damage = damage;
196
                attack.star = star;
197
                attack.caster = caster;
198
                attack.target = global.monsterinstance[star];
199
            }
200
            break;
201
        case 10:
202
            cancelattack = 0;
203
            global.spelldelay = 30;
204
            if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 0)
205
                cancelattack = 1;
206
            if (cancelattack == 0)
207
            {
208
                global.spelldelay = 30;
209
                damage = ceil((global.battlemag[arg1] * 40) + 600);
210
                attack = instance_create(x, y, obj_spell_snowgrave);
211
                attack.caster = caster;
212
                attack.damage = damage;
213
                global.spelldelay = 140;
214
            }
215
            break;
216
        case 11:
217
            global.flag[20 other_text_command] = 1;
218
            global.flag[1045 susie_heal_practice]++;
219
            if (global.flag[1045 susie_heal_practice] > 15)
220
                global.flag[1045 susie_heal_practice] = 15;
221
            healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
((global.battlemag[1] * 5) + 15 + (2 * global.flag[1045 susie_heal_practice])));
222
            if (
scr_armorcheck_equipped
scr_armorcheck_equipped

function
scr_armorcheck_equipped(arg0, arg1)
{ var __wearing = 0; if (global.chararmor1[arg0] == arg1) __wearing++; if (global.chararmor2[arg0] == arg1) __wearing++; return __wearing; }
(2, 36))
223
                healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
((((global.battlemag[1] * 5) + 15) * 1.2) + (2 * global.flag[1045 susie_heal_practice])));
224
            if (global.flag[1569 betterheal] == 1)
225
            {
226
                healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
((global.battlemag[1] * 7) + 15 + (2 * global.flag[1045 susie_heal_practice])));
227
                if (
scr_armorcheck_equipped
scr_armorcheck_equipped

function
scr_armorcheck_equipped(arg0, arg1)
{ var __wearing = 0; if (global.chararmor1[arg0] == arg1) __wearing++; if (global.chararmor2[arg0] == arg1) __wearing++; return __wearing; }
(2, 36))
228
                    healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
((((global.battlemag[1] * 7) + 15) * 1.2) + (2 * global.flag[1045 susie_heal_practice])));
229
            }
230
            if (global.hp[star + 1] < 0)
231
            {
232
                var _healnum = healnum;
233
                var _healnum2 = healnum;
234
                if ((_healnum + _healnum2) < 1)
235
                {
236
                    healnum = _healnum + _healnum2;
237
                }
238
                else
239
                {
240
                    _healnum2 = 0;
241
                    repeat (healnum)
242
                    {
243
                        if ((_healnum + _healnum2 + global.hp[star + 1]) > 0)
244
                            break;
245
                        if (_healnum2 >= healnum)
246
                            break;
247
                        _healnum2++;
248
                    }
249
                    healnum = _healnum + _healnum2;
250
                }
251
            }
252
            
scr_heal
scr_heal

function
scr_heal(arg0, arg1, arg2 = true)
{ abovemaxhp = 0; belowzero = 0; hltarget = global.char[arg0]; _curhp = global.hp[hltarget]; if (global.hp[hltarget] <= 0) belowzero = 1; if (global.hp[hltarget] > global.maxhp[hltarget]) abovemaxhp = 1; if (abovemaxhp == 0) { global.hp[hltarget] += arg1; if (global.hp[hltarget] > global.maxhp[hltarget]) global.hp[hltarget] = global.maxhp[hltarget]; } if (belowzero == 1 && global.hp[hltarget] >= 0 && arg2) { if (global.hp[hltarget] < ceil(global.maxhp[hltarget] / 6)) global.hp[hltarget] = ceil(global.maxhp[hltarget] / 6);
scr_revive(arg0);
} snd_stop(snd_power); snd_play(snd_power); return global.hp[hltarget] - _curhp; }
(star, healnum);
253
            global.charinstance[star].healnum = healnum;
254
            with (global.charinstance[star])
255
            {
256
                ha = instance_create(x, y, obj_healanim);
257
                ha.target = id;
258
                dmgwr = 
scr_dmgwriter_selfchar
scr_dmgwriter_selfchar

function
scr_dmgwriter_selfchar()
{ if (tu < -1) tu = -1; return instance_create(x, (y + myheight) - 40 - 24 - (tu * 20), obj_dmgwriter); }
();
259
                with (dmgwr)
260
                {
261
                    delay = 8;
262
                    type = 3;
263
                }
264
                if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
265
                {
266
                    with (dmgwr)
267
                        specialmessage = 3;
268
                }
269
                dmgwr.damage = healnum;
270
                tu += 1;
271
            }
272
            global.spelldelay = 15;
273
            
scr_spellmenu_setup
scr_spellmenu_setup

function
scr_spellmenu_setup()
{ var __actnamecheck = 0; var __monstertype = global.monstertype[0]; for (__i = 1; __i < 3; __i++) { if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype) { if (global.encounterno != 222) __actnamecheck = 1; } } for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 6; __fj++) { global.battlespell[__i][__fj] = 0; if (global.char[__i] == 1) { if (global.canact[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcost[0][__fj]; global.battlespellname[__i][__fj] = global.actname[0][__fj]; global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj]; global.battlespelltarget[__i][__fj] = 0; global.battlespellspecial[__i][__fj] = 1; } } if (global.char[__i] == 2) { if (global.canactsus[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj]; global.battlespellname[__i][__fj] = global.actnamesus[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
S-Action
"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0"
);
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 2; } } if (global.char[__i] == 3) { if (global.canactral[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostral[0][__fj]; global.battlespellname[__i][__fj] = global.actnameral[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
R-Action
"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0"
);
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 3; } } if (global.char[__i] == 4) { if (global.canactnoe[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj]; global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
N-Action
"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0"
);
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 4; } } } }
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 12; __fj++) { __ib = global.battleactcount[__i] + __fj; global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj]; global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj]; global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj]; global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj]; global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj]; } } }
();
274
            break;
275
        case 12:
276
            var _starhp = global.hp[global.char[star]];
277
            if (_starhp <= 0)
278
            {
279
                healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(-_starhp + (global.battlemag[arg1] * 7.5)));
280
                if (
scr_armorcheck_equipped
scr_armorcheck_equipped

function
scr_armorcheck_equipped(arg0, arg1)
{ var __wearing = 0; if (global.chararmor1[arg0] == arg1) __wearing++; if (global.chararmor2[arg0] == arg1) __wearing++; return __wearing; }
(3, 36))
281
                    healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(-_starhp + (global.battlemag[arg1] * 9)));
282
            }
283
            else
284
            {
285
                healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(global.battlemag[arg1] * 10));
286
                if (
scr_armorcheck_equipped
scr_armorcheck_equipped

function
scr_armorcheck_equipped(arg0, arg1)
{ var __wearing = 0; if (global.chararmor1[arg0] == arg1) __wearing++; if (global.chararmor2[arg0] == arg1) __wearing++; return __wearing; }
(3, 36))
287
                    healnum = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(global.battlemag[arg1] * 12));
288
            }
289
            global.charinstance[star].healnum = healnum;
290
            with (global.charinstance[star])
291
            {
292
                ha = instance_create(x, y, obj_spell_revivesong);
293
                ha.target = other.star;
294
                ha.healnum = other.healnum;
295
                tu += 1;
296
            }
297
            global.spelldelay = 75;
298
            break;
299
        case 13:
300
            var _scythecount = 0;
301
            var _successcount = 0;
302
            for (_spelli = 0; _spelli < 3; _spelli++)
303
            {
304
                if (global.monster[_spelli] == 1)
305
                {
306
                    with (global.monsterinstance[_spelli])
307
                    {
308
                        var _scythemare = instance_create_depth(global.monsterx[myself], global.monstery[myself], depth - 100, obj_spell_scythemare);
309
                        _scythemare.target = id;
310
                        _scythemare.myself = myself;
311
                        _scythemare.initdelay = _scythecount * 10;
312
                        _scythemare.num = _scythecount;
313
                        _scythecount++;
314
                        if (myself >= 0)
315
                        {
316
                            if (global.monster[myself] == 1)
317
                            {
318
                                if (global.monsterstatus[myself] == 1)
319
                                    _successcount++;
320
                            }
321
                        }
322
                    }
323
                }
324
            }
325
            global.spelldelay = 64 + (_scythecount * 10);
326
            with (obj_spell_scythemare)
327
            {
328
                if (num == 0)
329
                {
330
                    laugh = true;
331
                    break;
332
                }
333
            }
334
            break;
335
        case 100:
336
            if (global.monster[star] == 0)
337
                
scr_retarget_spell
scr_retarget_spell

function
scr_retarget_spell()
{ cancelattack = 0; if (star == 0) { if (global.monster[0] == 0) star = 1; } if (star == 1) { if (global.monster[1] == 0) star = 2; } if (star == 2) { if (global.monster[2] == 0) star = 3; if (star == 3 && global.monster[0] == 1) star = 0; if (star == 3 && global.monster[1] == 1) star = 1; if (star == 3) cancelattack = 1; } }
();
338
            if (global.monster[star] == 1)
339
            {
340
                if (global.mercymod[star] >= 100)
341
                {
342
                    if (global.monstertype[star] != 3 &amp;&amp; global.monstertype[star] != 52Jigsaw Joe)
343
                    {
344
                        with (global.monsterinstance[star])
345
                        {
346
                            global.flag[51 + myself] = 2;
347
                            event_user(10);
348
                            
scr_monsterdefeat
scr_monsterdefeat

function
scr_monsterdefeat()
{ if (global.monster[myself] == 1) { debug_message("==
scr_monsterdefeat() called ==");
debug_message("===== Encounter Results ====="); global.monstergold[3] += global.monstergold[myself]; global.monsterexp[3] += global.monsterexp[myself]; global.monster[myself] = 0; if (global.flag[51 + myself] == 0) { global.flag[51 + myself] = 2; if (global.monsterhp[myself] <= 0) global.flag[51 + myself] = 1; } if (global.flag[51 + myself] == 1) { global.flag[40 violences] += 1; if (fatal == 1) global.flag[44 kills]++; } if (global.flag[51 + myself] == 2) global.flag[41 spares] += 1; if (global.flag[51 + myself] == 3) global.flag[42 pacifies] += 1; if (global.flag[51 + myself] == 5) global.flag[43 autosusie_violences] += 1; if (global.flag[51 + myself] == 6) { global.flag[45 freezes] += 1; global.monstergold[3] += 24; } if (
scr_monsterpop() == 0)
{ var _amt_add = 0; var _frozened = 0; var _violenced = 0; var _spared = 0; var _pacified = 0; for (var d_i = 0; d_i < 3; d_i++) { if (global.flag[51 + d_i] != 0) _amt_add += 1; if (global.flag[51 + d_i] == 1) _violenced += 1; if (global.flag[51 + d_i] == 2) _spared += 1; if (global.flag[51 + d_i] == 3) _pacified += 1; if (global.flag[51 + d_i] == 6) _frozened += 1; } if (_frozened > 0) global.flag[50 last_encounter_end] = 6; if (_pacified > 0) global.flag[50 last_encounter_end] = 3; if (_spared > 0) global.flag[50 last_encounter_end] = 2; if (_violenced > 0) global.flag[50 last_encounter_end] = 1; if (global.flag[50 last_encounter_end] == 6) global.flag[926 iceshocked_encounters]++; if (global.flag[54 encounter_pointer] != 0) { global.flag[global.flag[54 encounter_pointer]] = global.flag[50 last_encounter_end]; debug_message("encounter flag: global.flag[" + string(global.flag[54 encounter_pointer]) + "]=" + string(global.flag[50 last_encounter_end])); global.flag[54 encounter_pointer] = 0; } } event_user(11); debug_message("======="); } }
();
349
                        }
350
                    }
351
                    else
352
                    {
353
                        with (global.monsterinstance[star])
354
                            sparecon = 1;
355
                    }
356
                }
357
                else
358
                {
359
                    
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; return __mercydmgwriter; }
(star, global.sparepoint[star]);
360
                    _pspell = instance_create(0, 0, obj_pacifyspell);
361
                    _pspell.target = global.monsterinstance[star];
362
                    _pspell.fail = 1;
363
                    _pspell.flashcolor = c_yellow;
364
                }
365
            }
366
            global.spelldelay = 0;
367
            break;
368
        case 200:
369
            break;
370
        case 201:
371
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(120));
372
            break;
373
        case 202:
374
            reviveamt = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(global.maxhp[global.char[star]] / 2));
375
            if (global.hp[global.char[star]] <= 0)
376
                reviveamt = ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]]);
377
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(reviveamt);
378
            break;
379
        case 203:
380
            break;
381
        case 204:
382
            break;
383
        case 205:
384
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(20));
385
            break;
386
        case 206:
387
            
scr_healallitemspell
scr_healallitemspell

function
scr_healallitemspell(arg0)
{ var __healAmount = arg0;
scr_healall(__healAmount);
for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(160));
388
            break;
389
        case 207:
390
            var healamount = (global.chapter == 1) ? 80 : 140;
391
            if (global.chapter == 5)
392
                healamount = 180;
393
            
scr_healallitemspell
scr_healallitemspell

function
scr_healallitemspell(arg0)
{ var __healAmount = arg0;
scr_healall(__healAmount);
for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(healamount));
394
            break;
395
        case 208:
396
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(70));
397
            break;
398
        case 209:
399
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(50));
400
            break;
401
        case 210:
402
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(4));
403
            break;
404
        case 211:
405
            
scr_healallitemspell
scr_healallitemspell

function
scr_healallitemspell(arg0)
{ var __healAmount = arg0;
scr_healall(__healAmount);
for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(70));
406
            break;
407
        case 212:
408
            if (global.char[star] == 1)
409
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(20));
410
            if (global.char[star] == 2)
411
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(80));
412
            if (global.char[star] == 3)
413
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(50));
414
            if (global.char[star] == 4)
415
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(30));
416
            break;
417
        case 213:
418
            if (global.char[star] == 1)
419
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(80));
420
            if (global.char[star] == 2)
421
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(20));
422
            if (global.char[star] == 3)
423
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(50));
424
            if (global.char[star] == 4)
425
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(70));
426
            break;
427
        case 214:
428
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(500));
429
            break;
430
        case 215:
431
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(50));
432
            break;
433
        case 216:
434
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(80));
435
            break;
436
        case 217:
437
            break;
438
        case 218:
439
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(10));
440
            break;
441
        case 219:
442
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(10));
443
            break;
444
        case 220:
445
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(10));
446
            break;
447
        case 221:
448
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(10));
449
            break;
450
        case 222:
451
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(60));
452
            break;
453
        case 223:
454
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(120));
455
            break;
456
        case 224:
457
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(100));
458
            break;
459
        case 225:
460
            
scr_healallitemspell
scr_healallitemspell

function
scr_healallitemspell(arg0)
{ var __healAmount = arg0;
scr_healall(__healAmount);
for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(30));
461
            break;
462
        case 226:
463
            var healamount = (global.char[star] == 1) ? 100 : 90;
464
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(healamount));
465
            break;
466
        case 227:
467
            break;
468
        case 228:
469
            break;
470
        case 229:
471
            break;
472
        case 230:
473
            var healamount = 10;
474
            for (var __j = 0; __j < 3; __j++)
475
            {
476
                if (global.char[__j] > 0)
477
                {
478
                    healamount = 10;
479
                    star = __j;
480
                    if (global.hp[global.char[star]] <= 0)
481
                        healamount = ceil(global.maxhp[global.char[star]] / 4) + abs(global.hp[global.char[star]]);
482
                    
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(healamount));
483
                }
484
            }
485
            break;
486
        case 231:
487
            var healamount = 50;
488
            for (var __j = 0; __j < 3; __j++)
489
            {
490
                if (global.char[__j] > 0)
491
                {
492
                    healamount = 50;
493
                    star = __j;
494
                    if (global.hp[global.char[star]] <= 0)
495
                        healamount = 999;
496
                    
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(healamount));
497
                }
498
            }
499
            break;
500
        case 232:
501
            if (i_ex(global.charinstance[star]))
502
                global.charinstance[star].poisonamount = 60;
503
            snd_play(snd_hurt1);
504
            var healanim = 
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(40));
505
            healanim.particlecolor = c_fuchsia;
506
            break;
507
        case 233:
508
            break;
509
        case 234:
510
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(100));
511
            break;
512
        case 235:
513
            break;
514
        case 236:
515
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(20));
516
            break;
517
        case 237:
518
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(80));
519
            break;
520
        case 238:
521
            
scr_healallitemspell
scr_healallitemspell

function
scr_healallitemspell(arg0)
{ var __healAmount = arg0;
scr_healall(__healAmount);
for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(100));
522
            break;
523
        case 239:
524
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(140));
525
            break;
526
        case 240:
527
            
scr_healallitemspell
scr_healallitemspell

function
scr_healallitemspell(arg0)
{ var __healAmount = arg0;
scr_healall(__healAmount);
for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(200));
528
            break;
529
        case 241:
530
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(130));
531
            break;
532
        case 242:
533
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(180));
534
            break;
535
        case 243:
536
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(80));
537
            break;
538
        case 260:
539
            if (global.char[star] == 1)
540
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(400));
541
            if (global.char[star] == 2)
542
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(40));
543
            if (global.char[star] == 3)
544
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(40));
545
            if (global.char[star] == 4)
546
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(40));
547
            break;
548
        case 261:
549
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(115));
550
            break;
551
        case 262:
552
            if (global.char[star] == 1)
553
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(160));
554
            if (global.char[star] == 2)
555
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(160));
556
            if (global.char[star] == 3)
557
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(160));
558
            if (global.char[star] == 4)
559
            {
560
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(155));
561
                
scr_heal
scr_heal

function
scr_heal(arg0, arg1, arg2 = true)
{ abovemaxhp = 0; belowzero = 0; hltarget = global.char[arg0]; _curhp = global.hp[hltarget]; if (global.hp[hltarget] <= 0) belowzero = 1; if (global.hp[hltarget] > global.maxhp[hltarget]) abovemaxhp = 1; if (abovemaxhp == 0) { global.hp[hltarget] += arg1; if (global.hp[hltarget] > global.maxhp[hltarget]) global.hp[hltarget] = global.maxhp[hltarget]; } if (belowzero == 1 && global.hp[hltarget] >= 0 && arg2) { if (global.hp[hltarget] < ceil(global.maxhp[hltarget] / 6)) global.hp[hltarget] = ceil(global.maxhp[hltarget] / 6);
scr_revive(arg0);
} snd_stop(snd_power); snd_play(snd_power); return global.hp[hltarget] - _curhp; }
(0,
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(5));
562
                with (global.charinstance[0])
563
                {
564
                    ha = instance_create(x, y, obj_healanim);
565
                    ha.target = id;
566
                    dmgwr = 
scr_dmgwriter_selfchar
scr_dmgwriter_selfchar

function
scr_dmgwriter_selfchar()
{ if (tu < -1) tu = -1; return instance_create(x, (y + myheight) - 40 - 24 - (tu * 20), obj_dmgwriter); }
();
567
                    with (dmgwr)
568
                    {
569
                        delay = 8;
570
                        type = 3;
571
                        damage = 5;
572
                    }
573
                    if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
574
                    {
575
                        with (dmgwr)
576
                            specialmessage = 3;
577
                    }
578
                    tu += 1;
579
                }
580
            }
581
            break;
582
        case 263:
583
            reviveamt = ceil(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]]));
584
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(reviveamt);
585
            break;
586
        case 264:
587
            
scr_healallitemspell
scr_healallitemspell

function
scr_healallitemspell(arg0)
{ var __healAmount = arg0;
scr_healall(__healAmount);
for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(200));
588
            break;
589
        case 265:
590
            
scr_healallitemspell
scr_healallitemspell

function
scr_healallitemspell(arg0)
{ var __healAmount = arg0;
scr_healall(__healAmount);
for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(160));
591
            break;
592
        case 266:
593
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(200));
594
            break;
595
        case 267:
596
            if (global.char[star] == 1)
597
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(200));
598
            else
599
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(100));
600
            break;
601
        case 268:
602
            if (global.char[star] == 2)
603
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(200));
604
            else
605
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(100));
606
            break;
607
        case 269:
608
            if (global.char[star] == 3)
609
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(200));
610
            else
611
                
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(50));
612
            break;
613
        case 270:
614
            
scr_healallitemspell
scr_healallitemspell

function
scr_healallitemspell(arg0)
{ var __healAmount = arg0;
scr_healall(__healAmount);
for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = __healAmount; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(
scr_heal_amount_modify_by_equipment
scr_heal_amount_modify_by_equipment

function
scr_heal_amount_modify_by_equipment(arg0)
{ var ___healAmount = arg0; var ___healAdd = 0; if (global.chararmor1[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 26) ___healAdd += ceil(___healAmount / 8); if (global.chararmor1[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); if (global.chararmor2[global.char[caster]] == 30) ___healAdd += ceil(___healAmount / 8); return ___healAmount + ___healAdd; }
(80));
615
            break;
616
    }
617
}