|
1
|
function scr_spellscr_spell
function scr_spell(arg0, arg1)
{
spell = arg0;
caster = arg1;
star = global.chartarget[arg1];
global.spelldelay = 10;
var item_use = false;
if (global.chapter == 4 && i_ex(obj_hammer_of_justice_enemy) && spell != 4 && spell != 5 && spell != 11 && spell != 100)
{
if (obj_hammer_of_justice_enemy.justice_item < 1)
obj_hammer_of_justice_enemy.justice_item++;
global.spelldelay = 300;
exit;
}
switch (spell)
{
case 0:
break;
case 1:
cancelattack = 0;
if (global.monster[star] == 0)
scr_retarget_spell();
if (cancelattack == 0)
{
damage = ceil(scr_heal_amount_modify_by_equipment((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));
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;
tu += 1;
}
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;
... (arg0, arg1)
|
|
2
|
{
|
|
3
|
spell = arg0;
|
|
4
|
caster = arg1;
|
|
5
|
star = global.chartarget[arg1];
|
|
6
|
global.spelldelay = 10;
|
|
7
|
var item_use = false;
|
|
8
|
if (global.chapter == 4 && i_ex(obj_hammer_of_justice_enemy) && spell != 4 && spell != 5 && spell != 11 && spell != 100)
|
|
9
|
{
|
|
10
|
if (obj_hammer_of_justice_enemy.justice_item < 1)
|
|
11
|
obj_hammer_of_justice_enemy.justice_item++;
|
|
12
|
global.spelldelay = 300;
|
|
13
|
exit;
|
|
14
|
}
|
|
15
|
switch (spell)
|
|
16
|
{
|
|
17
|
case 0:
|
|
18
|
break;
|
|
19
|
case 1:
|
|
20
|
cancelattack = 0;
|
|
21
|
if (global.monster[star] == 0)
|
|
22
|
scr_retarget_spellscr_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;
}
} ();
|
|
23
|
if (cancelattack == 0)
|
|
24
|
{
|
|
25
|
damage = ceil(scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} ((global.battleat[arg1] * 10) - (global.monsterdf[star] * 3)));
|
|
26
|
if (global.automiss[star] == 1)
|
|
27
|
damage = 0;
|
|
28
|
scr_damage_enemyscr_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;
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.chapter == 4 && i_ex(obj_titan_enemy))
{
if (global.monsterhp[arg0] < 1)
global.monsterhp[arg0] = 1;
}
if (global.monsterhp[arg0] <= 0 && a == 0)
{
with (global.monsterinstance[arg0])
scr_monsterdefeat();
}
} (star, damage);
|
|
29
|
attack = instance_create(global.monsterx[star] + random(6), global.monstery[star] + random(6), obj_basicattack);
|
|
30
|
attack.sprite_index = spr_attack_mash1;
|
|
31
|
dm.delay = 8;
|
|
32
|
}
|
|
33
|
global.spelldelay = 30;
|
|
34
|
break;
|
|
35
|
case 2:
|
|
36
|
healnum = ceil(scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (global.battlemag[arg1] * 5));
|
|
37
|
scr_healscr_heal
function scr_heal(arg0, arg1)
{
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)
{
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);
|
|
38
|
global.charinstance[star].healnum = healnum;
|
|
39
|
with (global.charinstance[star])
|
|
40
|
{
|
|
41
|
ha = instance_create(x, y, obj_healanim);
|
|
42
|
ha.target = id;
|
|
43
|
dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
44
|
with (dmgwr)
|
|
45
|
{
|
|
46
|
delay = 8;
|
|
47
|
type = 3;
|
|
48
|
}
|
|
49
|
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
|
|
50
|
{
|
|
51
|
with (dmgwr)
|
|
52
|
specialmessage = 3;
|
|
53
|
}
|
|
54
|
dmgwr.damage = healnum;
|
|
55
|
tu += 1;
|
|
56
|
}
|
|
57
|
global.spelldelay = 15;
|
|
58
|
break;
|
|
59
|
case 3:
|
|
60
|
if (global.monster[star] == 0)
|
|
61
|
scr_retarget_spellscr_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;
}
} ();
|
|
62
|
if (global.monster[star] == 1)
|
|
63
|
{
|
|
64
|
if (global.monsterstatus[star] == 1)
|
|
65
|
{
|
|
66
|
with (global.monsterinstance[star])
|
|
67
|
{
|
|
68
|
if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3 && global.monstertype[myself] != 52 && global.monstertype[myself] != 43Berdly (coaster))
|
|
69
|
{
|
|
70
|
var yoffy;
|
|
71
|
if (global.monstertype[myself] == 33Werewire)
|
|
72
|
yoffy = -60;
|
|
73
|
else
|
|
74
|
yoffy = 0;
|
|
75
|
_pspell = instance_create(global.monsterx[myself], global.monstery[myself] + yoffy, obj_pacifyspell);
|
|
76
|
_pspell.con = 20;
|
|
77
|
_pspell.target = id;
|
|
78
|
global.flag[51 + myself] = 3;
|
|
79
|
event_user(10);
|
|
80
|
scr_monsterdefeatscr_monsterdefeat
function scr_monsterdefeat()
{
if (global.monster[myself] == 1)
{
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)
{
_amt_add = 0;
_frozened = 0;
_violenced = 0;
_spared = 0;
_pacified = 0;
for (d_i = 0; d_i < 3; d_i += 1)
{
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 Results=====");
debug_message("encounter flag: global.flag[" + string(global.flag[54 encounter_pointer]) + "]=" + string(global.flag[50 last_encounter_end]));
debug_message("=======");
global.flag[54 encounter_pointer] = 0;
}
}
event_user(11);
debug_message("=======");
}
} ();
|
|
81
|
}
|
|
82
|
else
|
|
83
|
{
|
|
84
|
if (global.monstertype[myself] == 52Jigsaw Joe)
|
|
85
|
{
|
|
86
|
_pspell = instance_create(global.monsterx[myself], global.monstery[myself], obj_pacifyspell);
|
|
87
|
_pspell.con = 20;
|
|
88
|
_pspell.target = id;
|
|
89
|
}
|
|
90
|
pacifycon = 1;
|
|
91
|
global.spelldelay = 999;
|
|
92
|
}
|
|
93
|
}
|
|
94
|
}
|
|
95
|
else
|
|
96
|
{
|
|
97
|
if (global.monstertype[myself] == 52Jigsaw Joe)
|
|
98
|
pacifycon = -2;
|
|
99
|
_pspell = instance_create(0, 0, obj_pacifyspell);
|
|
100
|
_pspell.target = global.monsterinstance[star];
|
|
101
|
_pspell.fail = 1;
|
|
102
|
}
|
|
103
|
}
|
|
104
|
global.spelldelay = 20;
|
|
105
|
break;
|
|
106
|
case 4:
|
|
107
|
cancelattack = 0;
|
|
108
|
global.spelldelay = 30;
|
|
109
|
if (global.monster[star] == 0)
|
|
110
|
scr_retarget_spellscr_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;
}
} ();
|
|
111
|
if (cancelattack == 0)
|
|
112
|
{
|
|
113
|
global.spelldelay = 70;
|
|
114
|
damage = ceil(((global.battlemag[arg1] * 5) + (global.battleat[arg1] * 11)) - (global.monsterdf[star] * 3));
|
|
115
|
if (global.chapter == 4)
|
|
116
|
{
|
|
117
|
if (i_ex(obj_titan_enemy))
|
|
118
|
{
|
|
119
|
if ((obj_titan_enemy.unleashed && obj_titan_enemy.drawstate != "defense end" && obj_titan_enemy.drawstate != "defense" && obj_titan_enemy.starshootcon > 0) || obj_titan_enemy.drawstate == "crack")
|
|
120
|
damage = ceil(damage * 5 * obj_titan_enemy.unleashmultiplier);
|
|
121
|
else if (obj_titan_enemy.drawstate == "defense end" || obj_titan_enemy.drawstate == "defense")
|
|
122
|
damage = ceil(damage * 0.1);
|
|
123
|
else
|
|
124
|
damage = ceil(damage * 0.5);
|
|
125
|
}
|
|
126
|
else if (i_ex(obj_titan_spawn_enemy))
|
|
127
|
{
|
|
128
|
damage = ceil(damage * 0.5);
|
|
129
|
}
|
|
130
|
}
|
|
131
|
if (global.automiss[star] == 1)
|
|
132
|
damage = 0;
|
|
133
|
attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
|
|
134
|
attack.damage = damage;
|
|
135
|
attack.star = star;
|
|
136
|
attack.caster = caster;
|
|
137
|
attack.target = global.monsterinstance[star];
|
|
138
|
if (i_ex(obj_hammer_of_justice_enemy) && obj_hammer_of_justice_enemy.justice_rudebuster < 1)
|
|
139
|
obj_hammer_of_justice_enemy.justice_rudebuster++;
|
|
140
|
}
|
|
141
|
break;
|
|
142
|
case 5:
|
|
143
|
cancelattack = 0;
|
|
144
|
global.spelldelay = 30;
|
|
145
|
if (global.monster[star] == 0)
|
|
146
|
scr_retarget_spellscr_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;
}
} ();
|
|
147
|
if (cancelattack == 0)
|
|
148
|
{
|
|
149
|
global.spelldelay = 70;
|
|
150
|
damage = ceil(((global.battlemag[arg1] * 6) + (global.battleat[arg1] * 13)) - (global.monsterdf[star] * 6));
|
|
151
|
if (global.automiss[star] == 1)
|
|
152
|
damage = 0;
|
|
153
|
attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
|
|
154
|
attack.damage = damage;
|
|
155
|
attack.star = star;
|
|
156
|
attack.caster = caster;
|
|
157
|
attack.target = global.monsterinstance[star];
|
|
158
|
attack.red = 1;
|
|
159
|
}
|
|
160
|
break;
|
|
161
|
case 6:
|
|
162
|
healnum = round(scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} ((global.battlemag[1] + global.battlemag[2]) * 3.5));
|
|
163
|
if (global.flag[1569] == 1)
|
|
164
|
healnum = round((global.battlemag[1] + global.battlemag[2]) * 6);
|
|
165
|
if (global.chapter == 4 && i_ex(obj_titan_enemy))
|
|
166
|
{
|
|
167
|
obj_titan_enemy.dualhealcount++;
|
|
168
|
if (obj_titan_enemy.dualhealcount == 1)
|
|
169
|
healnum = round(healnum * 1.5);
|
|
170
|
if (obj_titan_enemy.dualhealcount == 2)
|
|
171
|
healnum = round(healnum * 1);
|
|
172
|
if (obj_titan_enemy.dualhealcount == 3)
|
|
173
|
healnum = round(healnum * 0.8);
|
|
174
|
if (obj_titan_enemy.dualhealcount == 4)
|
|
175
|
healnum = round(healnum * 0.3);
|
|
176
|
if (obj_titan_enemy.dualhealcount > 4)
|
|
177
|
healnum = round(healnum * 0.2);
|
|
178
|
}
|
|
179
|
if (global.chapter == 4 && i_ex(obj_titan_spawn_enemy))
|
|
180
|
{
|
|
181
|
obj_titan_spawn_enemy.dualhealcount++;
|
|
182
|
if (obj_titan_spawn_enemy.dualhealcount == 1)
|
|
183
|
healnum = round(healnum * 1.5);
|
|
184
|
if (obj_titan_spawn_enemy.dualhealcount == 2)
|
|
185
|
healnum = round(healnum * 1);
|
|
186
|
if (obj_titan_spawn_enemy.dualhealcount == 3)
|
|
187
|
healnum = round(healnum * 0.8);
|
|
188
|
if (obj_titan_spawn_enemy.dualhealcount == 4)
|
|
189
|
healnum = round(healnum * 0.3);
|
|
190
|
if (obj_titan_spawn_enemy.dualhealcount > 4)
|
|
191
|
healnum = round(healnum * 0.2);
|
|
192
|
}
|
|
193
|
for (i = 0; i < 3; i += 1)
|
|
194
|
{
|
|
195
|
scr_healscr_heal
function scr_heal(arg0, arg1)
{
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)
{
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);
|
|
196
|
global.charinstance[i].healnum = healnum;
|
|
197
|
with (global.charinstance[i])
|
|
198
|
{
|
|
199
|
ha = instance_create(x, y, obj_healanim);
|
|
200
|
ha.target = id;
|
|
201
|
dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
202
|
with (dmgwr)
|
|
203
|
{
|
|
204
|
delay = 8;
|
|
205
|
type = 3;
|
|
206
|
}
|
|
207
|
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
|
|
208
|
{
|
|
209
|
with (dmgwr)
|
|
210
|
specialmessage = 3;
|
|
211
|
}
|
|
212
|
dmgwr.damage = healnum;
|
|
213
|
tu += 1;
|
|
214
|
}
|
|
215
|
}
|
|
216
|
global.spelldelay = 15;
|
|
217
|
break;
|
|
218
|
case 8:
|
|
219
|
var _mistcount = 0;
|
|
220
|
for (_spelli = 0; _spelli < 3; _spelli++)
|
|
221
|
{
|
|
222
|
if (global.monster[_spelli] == 1)
|
|
223
|
{
|
|
224
|
with (global.monsterinstance[_spelli])
|
|
225
|
{
|
|
226
|
_icemist = instance_create(global.monsterx[myself], global.monstery[myself], obj_spell_mist);
|
|
227
|
_icemist.target = id;
|
|
228
|
_icemist.myself = myself;
|
|
229
|
_icemist.initdelay = _mistcount * 10;
|
|
230
|
_mistcount++;
|
|
231
|
}
|
|
232
|
}
|
|
233
|
}
|
|
234
|
global.spelldelay = 20 + (_mistcount * 10);
|
|
235
|
break;
|
|
236
|
case 9:
|
|
237
|
cancelattack = 0;
|
|
238
|
global.spelldelay = 30;
|
|
239
|
if (global.monster[star] == 0)
|
|
240
|
scr_retarget_spellscr_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;
}
} ();
|
|
241
|
if (cancelattack == 0)
|
|
242
|
{
|
|
243
|
global.flag[925 iceshocks]++;
|
|
244
|
var minbattlemag = clamp(global.battlemag[arg1] - 10, 1, 999);
|
|
245
|
global.spelldelay = 40;
|
|
246
|
damage = ceil((minbattlemag * 30) + 90 + random(10));
|
|
247
|
attack = instance_create(global.monsterx[star], global.monstery[star], obj_icespell);
|
|
248
|
attack.damage = damage;
|
|
249
|
attack.star = star;
|
|
250
|
attack.caster = caster;
|
|
251
|
attack.target = global.monsterinstance[star];
|
|
252
|
}
|
|
253
|
break;
|
|
254
|
case 10:
|
|
255
|
cancelattack = 0;
|
|
256
|
global.spelldelay = 30;
|
|
257
|
if (scr_monsterpopscr_monsterpop
function scr_monsterpop()
{
return global.monster[0] + global.monster[1] + global.monster[2];
} () == 0)
|
|
258
|
cancelattack = 1;
|
|
259
|
if (cancelattack == 0)
|
|
260
|
{
|
|
261
|
global.spelldelay = 30;
|
|
262
|
damage = ceil((global.battlemag[arg1] * 40) + 600);
|
|
263
|
attack = instance_create(x, y, obj_spell_snowgrave);
|
|
264
|
attack.caster = caster;
|
|
265
|
attack.damage = damage;
|
|
266
|
global.spelldelay = 140;
|
|
267
|
}
|
|
268
|
break;
|
|
269
|
case 11:
|
|
270
|
if (i_ex(obj_sound_of_justice_enemy))
|
|
271
|
{
|
|
272
|
endingcon = 1;
|
|
273
|
exit;
|
|
274
|
}
|
|
275
|
global.flag[20 other_text_command] = 1;
|
|
276
|
global.flag[1045 susie_heal_practice]++;
|
|
277
|
if (global.flag[1045 susie_heal_practice] > 15)
|
|
278
|
global.flag[1045 susie_heal_practice] = 15;
|
|
279
|
healnum = ceil(scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} ((global.battlemag[arg1] * 5) + 15 + (2 * global.flag[1045 susie_heal_practice])));
|
|
280
|
if (global.flag[1569] == 1)
|
|
281
|
healnum = ceil(scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} ((global.battlemag[arg1] * 7) + 15 + (2 * global.flag[1045 susie_heal_practice])));
|
|
282
|
if (i_ex(obj_hammer_of_justice_enemy))
|
|
283
|
{
|
|
284
|
healnum = ceil(scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} ((global.battlemag[arg1] * 2) + 22 + (2 * global.flag[1045 susie_heal_practice])));
|
|
285
|
if (obj_hammer_of_justice_enemy.justice_healed < 1)
|
|
286
|
obj_hammer_of_justice_enemy.justice_healed++;
|
|
287
|
obj_hammer_of_justice_enemy.progress += 9;
|
|
288
|
obj_hammer_of_justice_enemy.mercylaughcon = 1;
|
|
289
|
obj_hammer_of_justice_enemy.mercylaughcount = 9;
|
|
290
|
if (obj_hammer_of_justice_enemy.susieusedultimateheal == 0)
|
|
291
|
obj_hammer_of_justice_enemy.susieusedultimateheal = 1;
|
|
292
|
}
|
|
293
|
scr_healscr_heal
function scr_heal(arg0, arg1)
{
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)
{
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);
|
|
294
|
global.charinstance[star].healnum = healnum;
|
|
295
|
with (global.charinstance[star])
|
|
296
|
{
|
|
297
|
ha = instance_create(x, y, obj_healanim);
|
|
298
|
ha.target = id;
|
|
299
|
dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
300
|
with (dmgwr)
|
|
301
|
{
|
|
302
|
delay = 8;
|
|
303
|
type = 3;
|
|
304
|
}
|
|
305
|
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
|
|
306
|
{
|
|
307
|
with (dmgwr)
|
|
308
|
specialmessage = 3;
|
|
309
|
}
|
|
310
|
dmgwr.damage = healnum;
|
|
311
|
tu += 1;
|
|
312
|
}
|
|
313
|
global.spelldelay = 15;
|
|
314
|
if (i_ex(obj_hammer_of_justice_enemy))
|
|
315
|
global.spelldelay = 70;
|
|
316
|
scr_spellmenu_setupscr_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)
__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];
}
}
} ();
|
|
317
|
break;
|
|
318
|
case 100:
|
|
319
|
if (global.monster[star] == 0)
|
|
320
|
scr_retarget_spellscr_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;
}
} ();
|
|
321
|
if (global.monster[star] == 1)
|
|
322
|
{
|
|
323
|
if (global.mercymod[star] >= 100)
|
|
324
|
{
|
|
325
|
if (global.monstertype[star] != 3 && global.monstertype[star] != 52Jigsaw Joe)
|
|
326
|
{
|
|
327
|
with (global.monsterinstance[star])
|
|
328
|
{
|
|
329
|
global.flag[51 + myself] = 2;
|
|
330
|
event_user(10);
|
|
331
|
scr_monsterdefeatscr_monsterdefeat
function scr_monsterdefeat()
{
if (global.monster[myself] == 1)
{
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)
{
_amt_add = 0;
_frozened = 0;
_violenced = 0;
_spared = 0;
_pacified = 0;
for (d_i = 0; d_i < 3; d_i += 1)
{
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 Results=====");
debug_message("encounter flag: global.flag[" + string(global.flag[54 encounter_pointer]) + "]=" + string(global.flag[50 last_encounter_end]));
debug_message("=======");
global.flag[54 encounter_pointer] = 0;
}
}
event_user(11);
debug_message("=======");
}
} ();
|
|
332
|
}
|
|
333
|
}
|
|
334
|
else
|
|
335
|
{
|
|
336
|
with (global.monsterinstance[star])
|
|
337
|
sparecon = 1;
|
|
338
|
}
|
|
339
|
}
|
|
340
|
else if (global.chapter == 4 && i_ex(obj_sound_of_justice_enemy))
|
|
341
|
{
|
|
342
|
}
|
|
343
|
else
|
|
344
|
{
|
|
345
|
scr_mercyaddscr_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]++;
} (star, global.sparepoint[star]);
|
|
346
|
_pspell = instance_create(0, 0, obj_pacifyspell);
|
|
347
|
_pspell.target = global.monsterinstance[star];
|
|
348
|
_pspell.fail = 1;
|
|
349
|
_pspell.flashcolor = c_yellow;
|
|
350
|
}
|
|
351
|
}
|
|
352
|
global.spelldelay = 0;
|
|
353
|
break;
|
|
354
|
case 200:
|
|
355
|
break;
|
|
356
|
case 201:
|
|
357
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (120));
|
|
358
|
item_use = true;
|
|
359
|
break;
|
|
360
|
case 202:
|
|
361
|
reviveamt = ceil(global.maxhp[global.char[star]] / 2);
|
|
362
|
if (global.hp[global.char[star]] <= 0)
|
|
363
|
reviveamt = ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]]);
|
|
364
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (reviveamt));
|
|
365
|
item_use = true;
|
|
366
|
break;
|
|
367
|
case 203:
|
|
368
|
break;
|
|
369
|
case 204:
|
|
370
|
break;
|
|
371
|
case 205:
|
|
372
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (20));
|
|
373
|
item_use = true;
|
|
374
|
break;
|
|
375
|
case 206:
|
|
376
|
scr_healallitemspellscr_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 = arg0;
}
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_equipmentscr_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);
return ___healAmount + ___healAdd;
} (160));
|
|
377
|
item_use = true;
|
|
378
|
break;
|
|
379
|
case 207:
|
|
380
|
var healamount = 80;
|
|
381
|
if (global.chapter == 2)
|
|
382
|
healamount = 140;
|
|
383
|
if (global.chapter == 3)
|
|
384
|
healamount = 150;
|
|
385
|
if (global.chapter == 4)
|
|
386
|
healamount = 160;
|
|
387
|
scr_healallitemspellscr_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 = arg0;
}
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_equipmentscr_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);
return ___healAmount + ___healAdd;
} (healamount));
|
|
388
|
item_use = true;
|
|
389
|
break;
|
|
390
|
case 208:
|
|
391
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (70));
|
|
392
|
item_use = true;
|
|
393
|
break;
|
|
394
|
case 209:
|
|
395
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (50));
|
|
396
|
item_use = true;
|
|
397
|
break;
|
|
398
|
case 210:
|
|
399
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (4);
|
|
400
|
item_use = true;
|
|
401
|
break;
|
|
402
|
case 211:
|
|
403
|
scr_healallitemspellscr_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 = arg0;
}
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_equipmentscr_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);
return ___healAmount + ___healAdd;
} (70));
|
|
404
|
item_use = true;
|
|
405
|
break;
|
|
406
|
case 212:
|
|
407
|
if (global.char[star] == 1)
|
|
408
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (20));
|
|
409
|
if (global.char[star] == 2)
|
|
410
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (80));
|
|
411
|
if (global.char[star] == 3)
|
|
412
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (50));
|
|
413
|
if (global.char[star] == 4)
|
|
414
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (30));
|
|
415
|
item_use = true;
|
|
416
|
break;
|
|
417
|
case 213:
|
|
418
|
if (global.char[star] == 1)
|
|
419
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (80));
|
|
420
|
if (global.char[star] == 2)
|
|
421
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (20));
|
|
422
|
if (global.char[star] == 3)
|
|
423
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (50));
|
|
424
|
if (global.char[star] == 4)
|
|
425
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (70));
|
|
426
|
item_use = true;
|
|
427
|
break;
|
|
428
|
case 214:
|
|
429
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (500));
|
|
430
|
item_use = true;
|
|
431
|
break;
|
|
432
|
case 215:
|
|
433
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (50));
|
|
434
|
item_use = true;
|
|
435
|
break;
|
|
436
|
case 216:
|
|
437
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (80));
|
|
438
|
item_use = true;
|
|
439
|
break;
|
|
440
|
case 217:
|
|
441
|
break;
|
|
442
|
case 218:
|
|
443
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (10));
|
|
444
|
item_use = true;
|
|
445
|
break;
|
|
446
|
case 219:
|
|
447
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (10));
|
|
448
|
item_use = true;
|
|
449
|
break;
|
|
450
|
case 220:
|
|
451
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (10));
|
|
452
|
item_use = true;
|
|
453
|
break;
|
|
454
|
case 221:
|
|
455
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (10));
|
|
456
|
item_use = true;
|
|
457
|
break;
|
|
458
|
case 222:
|
|
459
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (60));
|
|
460
|
item_use = true;
|
|
461
|
break;
|
|
462
|
case 223:
|
|
463
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (120));
|
|
464
|
item_use = true;
|
|
465
|
break;
|
|
466
|
case 224:
|
|
467
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (100));
|
|
468
|
item_use = true;
|
|
469
|
break;
|
|
470
|
case 225:
|
|
471
|
scr_healallitemspellscr_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 = arg0;
}
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_equipmentscr_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);
return ___healAmount + ___healAdd;
} (30));
|
|
472
|
item_use = true;
|
|
473
|
break;
|
|
474
|
case 226:
|
|
475
|
var healamount = (global.char[star] == 1) ? 100 : 90;
|
|
476
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (healamount));
|
|
477
|
item_use = true;
|
|
478
|
break;
|
|
479
|
case 227:
|
|
480
|
break;
|
|
481
|
case 228:
|
|
482
|
break;
|
|
483
|
case 229:
|
|
484
|
break;
|
|
485
|
case 230:
|
|
486
|
var healamount = 10;
|
|
487
|
for (var __j = 0; __j < 3; __j++)
|
|
488
|
{
|
|
489
|
if (global.char[__j] > 0)
|
|
490
|
{
|
|
491
|
healamount = 10;
|
|
492
|
star = __j;
|
|
493
|
if (global.hp[global.char[star]] <= 0)
|
|
494
|
healamount = ceil(global.maxhp[global.char[star]] / 4) + abs(global.hp[global.char[star]]);
|
|
495
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (healamount));
|
|
496
|
}
|
|
497
|
}
|
|
498
|
item_use = true;
|
|
499
|
break;
|
|
500
|
case 231:
|
|
501
|
var healamount = 50;
|
|
502
|
for (var __j = 0; __j < 3; __j++)
|
|
503
|
{
|
|
504
|
if (global.char[__j] > 0)
|
|
505
|
{
|
|
506
|
healamount = scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (50);
|
|
507
|
star = __j;
|
|
508
|
if (global.hp[global.char[star]] <= 0)
|
|
509
|
healamount = 999;
|
|
510
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (healamount);
|
|
511
|
}
|
|
512
|
}
|
|
513
|
item_use = true;
|
|
514
|
break;
|
|
515
|
case 232:
|
|
516
|
if (i_ex(global.charinstance[star]))
|
|
517
|
global.charinstance[star].poisonamount = 60;
|
|
518
|
snd_play(snd_hurt1);
|
|
519
|
var healanim = scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (40);
|
|
520
|
healanim.particlecolor = c_fuchsia;
|
|
521
|
item_use = true;
|
|
522
|
break;
|
|
523
|
case 233:
|
|
524
|
break;
|
|
525
|
case 234:
|
|
526
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (100));
|
|
527
|
item_use = true;
|
|
528
|
break;
|
|
529
|
case 235:
|
|
530
|
break;
|
|
531
|
case 236:
|
|
532
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (20));
|
|
533
|
item_use = true;
|
|
534
|
break;
|
|
535
|
case 237:
|
|
536
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (80));
|
|
537
|
item_use = true;
|
|
538
|
break;
|
|
539
|
case 238:
|
|
540
|
scr_healallitemspellscr_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 = arg0;
}
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_equipmentscr_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);
return ___healAmount + ___healAdd;
} (100));
|
|
541
|
item_use = true;
|
|
542
|
break;
|
|
543
|
case 239:
|
|
544
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (140));
|
|
545
|
item_use = true;
|
|
546
|
break;
|
|
547
|
case 260:
|
|
548
|
if (global.char[star] == 1)
|
|
549
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (400));
|
|
550
|
if (global.char[star] == 2)
|
|
551
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (40));
|
|
552
|
if (global.char[star] == 3)
|
|
553
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (40));
|
|
554
|
if (global.char[star] == 4)
|
|
555
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (40));
|
|
556
|
item_use = true;
|
|
557
|
break;
|
|
558
|
case 261:
|
|
559
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (115));
|
|
560
|
item_use = true;
|
|
561
|
break;
|
|
562
|
case 262:
|
|
563
|
if (global.char[star] == 1)
|
|
564
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (160);
|
|
565
|
if (global.char[star] == 2)
|
|
566
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (160);
|
|
567
|
if (global.char[star] == 3)
|
|
568
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (160);
|
|
569
|
if (global.char[star] == 4)
|
|
570
|
{
|
|
571
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (155));
|
|
572
|
scr_healscr_heal
function scr_heal(arg0, arg1)
{
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)
{
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, 5);
|
|
573
|
with (global.charinstance[0])
|
|
574
|
{
|
|
575
|
ha = instance_create(x, y, obj_healanim);
|
|
576
|
ha.target = id;
|
|
577
|
dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
578
|
with (dmgwr)
|
|
579
|
{
|
|
580
|
delay = 8;
|
|
581
|
type = 3;
|
|
582
|
damage = 5;
|
|
583
|
}
|
|
584
|
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
|
|
585
|
{
|
|
586
|
with (dmgwr)
|
|
587
|
specialmessage = 3;
|
|
588
|
}
|
|
589
|
tu += 1;
|
|
590
|
}
|
|
591
|
}
|
|
592
|
item_use = true;
|
|
593
|
break;
|
|
594
|
case 263:
|
|
595
|
reviveamt = ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]]);
|
|
596
|
scr_healitemspellscr_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 = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (scr_heal_amount_modify_by_equipmentscr_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);
return ___healAmount + ___healAdd;
} (reviveamt));
|
|
597
|
item_use = true;
|
|
598
|
break;
|
|
599
|
}
|
|
600
|
if (item_use == true)
|
|
601
|
{
|
|
602
|
with (obj_event_manager)
|
|
603
|
trigger_event(UnknownEnum.Value_0, get_consumer_trophy());
|
|
604
|
}
|
|
605
|
}
|
|
606
|
|
|
607
|
enum UnknownEnum
|
|
608
|
{
|
|
609
|
Value_0
|
|
610
|
}
|