|
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;
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 = 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;
}
if (global.monstertype[myself] == 43Berdly (coaster))
{
_pspell = instance_create(global.monsterx[myself], global.monstery[myself], obj_pacifyspell);
_pspell.con = 20;
_pspell.target = id;
global.flag[51 + myself] = 3;
with (obj_berdlyb_enemy)
endcon = 1;
exit;
}
pacifycon = 1;
global.spelldelay = 999;
}
}
}
else
{
if (global.monstertype[myself] == 52Jigsaw Joe)
pacifycon = -2;
... (arg0, arg1)
|
|
2
|
{
|
|
3
|
spell = arg0;
|
|
4
|
caster = arg1;
|
|
5
|
star = global.chartarget[arg1];
|
|
6
|
global.spelldelay = 10;
|
|
7
|
var item_use = false;
|
|
8
|
switch (spell)
|
|
9
|
{
|
|
10
|
case 0:
|
|
11
|
break;
|
|
12
|
case 1:
|
|
13
|
cancelattack = 0;
|
|
14
|
if (global.monster[star] == 0)
|
|
15
|
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;
}
} ();
|
|
16
|
if (cancelattack == 0)
|
|
17
|
{
|
|
18
|
damage = ceil((global.battleat[arg1] * 10) - (global.monsterdf[star] * 3));
|
|
19
|
if (global.automiss[star] == 1)
|
|
20
|
damage = 0;
|
|
21
|
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;
}
}
}
if (global.chapter == 2 && i_ex(obj_sweet_enemy) && global.monsterhp[arg0] <= 0)
global.monsterhp[arg0] = 1;
var a = 0;
if (global.chapter == 2 && i_ex(obj_queen_enemy))
a = 1;
if (global.chapter == 2 && i_ex(obj_spamton_neo_enemy))
a = 2;
if (global.chapter == 2 && i_ex(obj_berdlyb_enemy))
a = 3;
if (global.monsterhp[arg0] <= 0 && a == 0)
{
with (global.monsterinstance[arg0])
scr_monsterdefeat();
}
if (global.chapter == 2 && global.monsterhp[arg0] <= 0 && a == 3)
{
with (global.monsterinstance[arg0])
endcon = 1;
}
} (star, damage);
|
|
22
|
attack = instance_create(global.monsterx[star] + random(6), global.monstery[star] + random(6), obj_basicattack);
|
|
23
|
attack.sprite_index = spr_attack_mash1;
|
|
24
|
dm.delay = 8;
|
|
25
|
}
|
|
26
|
global.spelldelay = 30;
|
|
27
|
break;
|
|
28
|
case 2:
|
|
29
|
healnum = global.battlemag[arg1] * 5;
|
|
30
|
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);
|
|
31
|
global.charinstance[star].healnum = healnum;
|
|
32
|
with (global.charinstance[star])
|
|
33
|
{
|
|
34
|
ha = instance_create(x, y, obj_healanim);
|
|
35
|
ha.target = id;
|
|
36
|
dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
37
|
with (dmgwr)
|
|
38
|
{
|
|
39
|
delay = 8;
|
|
40
|
type = 3;
|
|
41
|
}
|
|
42
|
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
|
|
43
|
{
|
|
44
|
with (dmgwr)
|
|
45
|
specialmessage = 3;
|
|
46
|
}
|
|
47
|
dmgwr.damage = healnum;
|
|
48
|
tu += 1;
|
|
49
|
}
|
|
50
|
global.spelldelay = 15;
|
|
51
|
break;
|
|
52
|
case 3:
|
|
53
|
if (global.monster[star] == 0)
|
|
54
|
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;
}
} ();
|
|
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 && global.monstertype[myself] != 3 && global.monstertype[myself] != 52 && 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_monsterdefeatscr_monsterdefeat
function scr_monsterdefeat()
{
if (global.monster[myself] == 1)
{
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 (_frozened > 0)
{
if (_pacified > 0 || _violenced > 0 || _spared > 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];
global.flag[54 encounter_pointer] = 0;
}
}
event_user(11);
}
} ();
|
|
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
|
if (global.monstertype[myself] == 43Berdly (coaster))
|
|
84
|
{
|
|
85
|
_pspell = instance_create(global.monsterx[myself], global.monstery[myself], obj_pacifyspell);
|
|
86
|
_pspell.con = 20;
|
|
87
|
_pspell.target = id;
|
|
88
|
global.flag[51 + myself] = 3;
|
|
89
|
with (obj_berdlyb_enemy)
|
|
90
|
endcon = 1;
|
|
91
|
exit;
|
|
92
|
}
|
|
93
|
pacifycon = 1;
|
|
94
|
global.spelldelay = 999;
|
|
95
|
}
|
|
96
|
}
|
|
97
|
}
|
|
98
|
else
|
|
99
|
{
|
|
100
|
if (global.monstertype[myself] == 52Jigsaw Joe)
|
|
101
|
pacifycon = -2;
|
|
102
|
_pspell = instance_create(0, 0, obj_pacifyspell);
|
|
103
|
_pspell.target = global.monsterinstance[star];
|
|
104
|
_pspell.fail = 1;
|
|
105
|
}
|
|
106
|
}
|
|
107
|
global.spelldelay = 20;
|
|
108
|
break;
|
|
109
|
case 4:
|
|
110
|
cancelattack = 0;
|
|
111
|
global.spelldelay = 30;
|
|
112
|
if (global.monster[star] == 0)
|
|
113
|
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;
}
} ();
|
|
114
|
if (cancelattack == 0)
|
|
115
|
{
|
|
116
|
global.spelldelay = 70;
|
|
117
|
damage = ceil(((global.battlemag[arg1] * 5) + (global.battleat[arg1] * 11)) - (global.monsterdf[star] * 3));
|
|
118
|
if (global.automiss[star] == 1)
|
|
119
|
damage = 0;
|
|
120
|
attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
|
|
121
|
attack.damage = damage;
|
|
122
|
attack.star = star;
|
|
123
|
attack.caster = caster;
|
|
124
|
attack.target = global.monsterinstance[star];
|
|
125
|
}
|
|
126
|
break;
|
|
127
|
case 5:
|
|
128
|
cancelattack = 0;
|
|
129
|
global.spelldelay = 30;
|
|
130
|
if (global.monster[star] == 0)
|
|
131
|
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;
}
} ();
|
|
132
|
if (cancelattack == 0)
|
|
133
|
{
|
|
134
|
global.spelldelay = 70;
|
|
135
|
damage = ceil(((global.battlemag[arg1] * 6) + (global.battleat[arg1] * 13)) - (global.monsterdf[star] * 6));
|
|
136
|
if (global.automiss[star] == 1)
|
|
137
|
damage = 0;
|
|
138
|
attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
|
|
139
|
attack.damage = damage;
|
|
140
|
attack.star = star;
|
|
141
|
attack.caster = caster;
|
|
142
|
attack.target = global.monsterinstance[star];
|
|
143
|
attack.red = 1;
|
|
144
|
}
|
|
145
|
break;
|
|
146
|
case 6:
|
|
147
|
healnum = ceil(global.battlemag[arg1] * 5.5);
|
|
148
|
for (i = 0; i < 3; i += 1)
|
|
149
|
{
|
|
150
|
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);
|
|
151
|
global.charinstance[i].healnum = healnum;
|
|
152
|
with (global.charinstance[i])
|
|
153
|
{
|
|
154
|
ha = instance_create(x, y, obj_healanim);
|
|
155
|
ha.target = id;
|
|
156
|
dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
157
|
with (dmgwr)
|
|
158
|
{
|
|
159
|
delay = 8;
|
|
160
|
type = 3;
|
|
161
|
}
|
|
162
|
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
|
|
163
|
{
|
|
164
|
with (dmgwr)
|
|
165
|
specialmessage = 3;
|
|
166
|
}
|
|
167
|
dmgwr.damage = healnum;
|
|
168
|
tu += 1;
|
|
169
|
}
|
|
170
|
}
|
|
171
|
global.spelldelay = 15;
|
|
172
|
break;
|
|
173
|
case 8:
|
|
174
|
var _mistcount = 0;
|
|
175
|
for (_spelli = 0; _spelli < 3; _spelli++)
|
|
176
|
{
|
|
177
|
if (global.monster[_spelli] == 1)
|
|
178
|
{
|
|
179
|
with (global.monsterinstance[_spelli])
|
|
180
|
{
|
|
181
|
_icemist = instance_create(global.monsterx[myself], global.monstery[myself], obj_spell_mist);
|
|
182
|
_icemist.target = id;
|
|
183
|
_icemist.myself = myself;
|
|
184
|
_icemist.initdelay = _mistcount * 10;
|
|
185
|
_mistcount++;
|
|
186
|
}
|
|
187
|
}
|
|
188
|
}
|
|
189
|
global.spelldelay = 20 + (_mistcount * 10);
|
|
190
|
break;
|
|
191
|
case 9:
|
|
192
|
cancelattack = 0;
|
|
193
|
global.spelldelay = 30;
|
|
194
|
if (global.monster[star] == 0)
|
|
195
|
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;
}
} ();
|
|
196
|
if (cancelattack == 0)
|
|
197
|
{
|
|
198
|
global.flag[925 iceshocks]++;
|
|
199
|
var minbattlemag = clamp(global.battlemag[arg1] - 10, 1, 999);
|
|
200
|
global.spelldelay = 40;
|
|
201
|
damage = ceil((minbattlemag * 30) + 90 + random(10));
|
|
202
|
attack = instance_create(global.monsterx[star], global.monstery[star], obj_icespell);
|
|
203
|
attack.damage = damage;
|
|
204
|
attack.star = star;
|
|
205
|
attack.caster = caster;
|
|
206
|
attack.target = global.monsterinstance[star];
|
|
207
|
}
|
|
208
|
break;
|
|
209
|
case 10:
|
|
210
|
cancelattack = 0;
|
|
211
|
global.spelldelay = 30;
|
|
212
|
if (scr_monsterpopscr_monsterpop
function scr_monsterpop()
{
return global.monster[0] + global.monster[1] + global.monster[2];
} () == 0)
|
|
213
|
cancelattack = 1;
|
|
214
|
if (cancelattack == 0)
|
|
215
|
{
|
|
216
|
global.spelldelay = 30;
|
|
217
|
damage = ceil((global.battlemag[arg1] * 40) + 600);
|
|
218
|
attack = instance_create(x, y, obj_spell_snowgrave);
|
|
219
|
attack.caster = caster;
|
|
220
|
attack.damage = damage;
|
|
221
|
global.spelldelay = 140;
|
|
222
|
if (instance_exists(obj_berdlyb2_enemy))
|
|
223
|
{
|
|
224
|
global.spelldelay = 999999;
|
|
225
|
attack.textwait = 1;
|
|
226
|
}
|
|
227
|
}
|
|
228
|
break;
|
|
229
|
case 11:
|
|
230
|
healnum = global.battlemag[arg1] + 1;
|
|
231
|
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);
|
|
232
|
global.charinstance[star].healnum = healnum;
|
|
233
|
with (global.charinstance[star])
|
|
234
|
{
|
|
235
|
ha = instance_create(x, y, obj_healanim);
|
|
236
|
ha.target = id;
|
|
237
|
dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
238
|
with (dmgwr)
|
|
239
|
{
|
|
240
|
delay = 8;
|
|
241
|
type = 3;
|
|
242
|
}
|
|
243
|
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
|
|
244
|
{
|
|
245
|
with (dmgwr)
|
|
246
|
specialmessage = 3;
|
|
247
|
}
|
|
248
|
dmgwr.damage = healnum;
|
|
249
|
tu += 1;
|
|
250
|
}
|
|
251
|
global.spelldelay = 15;
|
|
252
|
if (global.encounterno == 50)
|
|
253
|
{
|
|
254
|
if (i_ex(obj_omawaroid_enemy))
|
|
255
|
obj_omawaroid_enemy.ultimatehealprompt = 1;
|
|
256
|
}
|
|
257
|
break;
|
|
258
|
case 100:
|
|
259
|
if (global.monster[star] == 0)
|
|
260
|
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;
}
} ();
|
|
261
|
if (global.monster[star] == 1)
|
|
262
|
{
|
|
263
|
if (global.mercymod[star] >= 100)
|
|
264
|
{
|
|
265
|
if (global.monstertype[star] != 3 && global.monstertype[star] != 52Jigsaw Joe)
|
|
266
|
{
|
|
267
|
with (global.monsterinstance[star])
|
|
268
|
{
|
|
269
|
global.flag[51 + myself] = 2;
|
|
270
|
event_user(10);
|
|
271
|
scr_monsterdefeatscr_monsterdefeat
function scr_monsterdefeat()
{
if (global.monster[myself] == 1)
{
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 (_frozened > 0)
{
if (_pacified > 0 || _violenced > 0 || _spared > 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];
global.flag[54 encounter_pointer] = 0;
}
}
event_user(11);
}
} ();
|
|
272
|
}
|
|
273
|
}
|
|
274
|
else
|
|
275
|
{
|
|
276
|
with (global.monsterinstance[star])
|
|
277
|
sparecon = 1;
|
|
278
|
}
|
|
279
|
}
|
|
280
|
else
|
|
281
|
{
|
|
282
|
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;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_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]);
|
|
283
|
_pspell = instance_create(0, 0, obj_pacifyspell);
|
|
284
|
_pspell.target = global.monsterinstance[star];
|
|
285
|
_pspell.fail = 1;
|
|
286
|
_pspell.flashcolor = c_yellow;
|
|
287
|
}
|
|
288
|
}
|
|
289
|
global.spelldelay = 0;
|
|
290
|
break;
|
|
291
|
case 200:
|
|
292
|
break;
|
|
293
|
case 201:
|
|
294
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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);
|
|
295
|
item_use = true;
|
|
296
|
break;
|
|
297
|
case 202:
|
|
298
|
reviveamt = ceil(global.maxhp[global.char[star]] / 2);
|
|
299
|
if (global.hp[global.char[star]] <= 0)
|
|
300
|
reviveamt = ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]]);
|
|
301
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (reviveamt);
|
|
302
|
item_use = true;
|
|
303
|
break;
|
|
304
|
case 203:
|
|
305
|
break;
|
|
306
|
case 204:
|
|
307
|
break;
|
|
308
|
case 205:
|
|
309
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (20);
|
|
310
|
item_use = true;
|
|
311
|
break;
|
|
312
|
case 206:
|
|
313
|
scr_healallitemspellscr_healallitemspell
function scr_healallitemspell(arg0)
{
scr_healall(arg0);
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;
} (160);
|
|
314
|
item_use = true;
|
|
315
|
break;
|
|
316
|
case 207:
|
|
317
|
var healamount = (global.chapter == 1) ? 80 : 140;
|
|
318
|
scr_healallitemspellscr_healallitemspell
function scr_healallitemspell(arg0)
{
scr_healall(arg0);
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;
} (healamount);
|
|
319
|
item_use = true;
|
|
320
|
break;
|
|
321
|
case 208:
|
|
322
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (70);
|
|
323
|
item_use = true;
|
|
324
|
break;
|
|
325
|
case 209:
|
|
326
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (50);
|
|
327
|
item_use = true;
|
|
328
|
break;
|
|
329
|
case 210:
|
|
330
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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);
|
|
331
|
item_use = true;
|
|
332
|
break;
|
|
333
|
case 211:
|
|
334
|
scr_healallitemspellscr_healallitemspell
function scr_healallitemspell(arg0)
{
scr_healall(arg0);
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;
} (70);
|
|
335
|
item_use = true;
|
|
336
|
break;
|
|
337
|
case 212:
|
|
338
|
if (global.char[star] == 1)
|
|
339
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (20);
|
|
340
|
if (global.char[star] == 2)
|
|
341
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (80);
|
|
342
|
if (global.char[star] == 3)
|
|
343
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (50);
|
|
344
|
if (global.char[star] == 4)
|
|
345
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (30);
|
|
346
|
item_use = true;
|
|
347
|
break;
|
|
348
|
case 213:
|
|
349
|
if (global.char[star] == 1)
|
|
350
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (80);
|
|
351
|
if (global.char[star] == 2)
|
|
352
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (20);
|
|
353
|
if (global.char[star] == 3)
|
|
354
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (50);
|
|
355
|
if (global.char[star] == 4)
|
|
356
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (70);
|
|
357
|
item_use = true;
|
|
358
|
break;
|
|
359
|
case 214:
|
|
360
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (500);
|
|
361
|
item_use = true;
|
|
362
|
break;
|
|
363
|
case 215:
|
|
364
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (50);
|
|
365
|
item_use = true;
|
|
366
|
break;
|
|
367
|
case 216:
|
|
368
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (80);
|
|
369
|
item_use = true;
|
|
370
|
break;
|
|
371
|
case 217:
|
|
372
|
break;
|
|
373
|
case 218:
|
|
374
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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_teaamountscr_teaamount
function scr_teaamount(arg0, arg1)
{
var __healamt = 10;
if (arg0 == 1)
{
if (arg1 == 1)
__healamt = 10;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 120;
if (arg1 == 4)
__healamt = 70;
}
if (arg0 == 2)
{
if (arg1 == 1)
__healamt = 120;
if (arg1 == 2)
__healamt = 10;
if (arg1 == 3)
__healamt = 120;
if (arg1 == 4)
__healamt = 400;
}
if (arg0 == 3)
{
if (arg1 == 1)
__healamt = 60;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 10;
if (arg1 == 4)
__healamt = 50;
}
if (arg0 == 4)
{
if (arg1 == 1)
__healamt = 70;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 50;
if (arg1 == 4)
__healamt = 10;
}
if (global.fighting == 1 && __healamt < 40)
__healamt = 40;
if (global.chapter == 2)
{
if (i_ex(o_boxingcontroller))
__healamt = 100;
}
return __healamt;
} (1, global.char[star]));
|
|
375
|
item_use = true;
|
|
376
|
break;
|
|
377
|
case 219:
|
|
378
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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_teaamountscr_teaamount
function scr_teaamount(arg0, arg1)
{
var __healamt = 10;
if (arg0 == 1)
{
if (arg1 == 1)
__healamt = 10;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 120;
if (arg1 == 4)
__healamt = 70;
}
if (arg0 == 2)
{
if (arg1 == 1)
__healamt = 120;
if (arg1 == 2)
__healamt = 10;
if (arg1 == 3)
__healamt = 120;
if (arg1 == 4)
__healamt = 400;
}
if (arg0 == 3)
{
if (arg1 == 1)
__healamt = 60;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 10;
if (arg1 == 4)
__healamt = 50;
}
if (arg0 == 4)
{
if (arg1 == 1)
__healamt = 70;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 50;
if (arg1 == 4)
__healamt = 10;
}
if (global.fighting == 1 && __healamt < 40)
__healamt = 40;
if (global.chapter == 2)
{
if (i_ex(o_boxingcontroller))
__healamt = 100;
}
return __healamt;
} (4, global.char[star]));
|
|
379
|
item_use = true;
|
|
380
|
break;
|
|
381
|
case 220:
|
|
382
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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_teaamountscr_teaamount
function scr_teaamount(arg0, arg1)
{
var __healamt = 10;
if (arg0 == 1)
{
if (arg1 == 1)
__healamt = 10;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 120;
if (arg1 == 4)
__healamt = 70;
}
if (arg0 == 2)
{
if (arg1 == 1)
__healamt = 120;
if (arg1 == 2)
__healamt = 10;
if (arg1 == 3)
__healamt = 120;
if (arg1 == 4)
__healamt = 400;
}
if (arg0 == 3)
{
if (arg1 == 1)
__healamt = 60;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 10;
if (arg1 == 4)
__healamt = 50;
}
if (arg0 == 4)
{
if (arg1 == 1)
__healamt = 70;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 50;
if (arg1 == 4)
__healamt = 10;
}
if (global.fighting == 1 && __healamt < 40)
__healamt = 40;
if (global.chapter == 2)
{
if (i_ex(o_boxingcontroller))
__healamt = 100;
}
return __healamt;
} (3, global.char[star]));
|
|
383
|
item_use = true;
|
|
384
|
break;
|
|
385
|
case 221:
|
|
386
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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_teaamountscr_teaamount
function scr_teaamount(arg0, arg1)
{
var __healamt = 10;
if (arg0 == 1)
{
if (arg1 == 1)
__healamt = 10;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 120;
if (arg1 == 4)
__healamt = 70;
}
if (arg0 == 2)
{
if (arg1 == 1)
__healamt = 120;
if (arg1 == 2)
__healamt = 10;
if (arg1 == 3)
__healamt = 120;
if (arg1 == 4)
__healamt = 400;
}
if (arg0 == 3)
{
if (arg1 == 1)
__healamt = 60;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 10;
if (arg1 == 4)
__healamt = 50;
}
if (arg0 == 4)
{
if (arg1 == 1)
__healamt = 70;
if (arg1 == 2)
__healamt = 120;
if (arg1 == 3)
__healamt = 50;
if (arg1 == 4)
__healamt = 10;
}
if (global.fighting == 1 && __healamt < 40)
__healamt = 40;
if (global.chapter == 2)
{
if (i_ex(o_boxingcontroller))
__healamt = 100;
}
return __healamt;
} (2, global.char[star]));
|
|
387
|
item_use = true;
|
|
388
|
break;
|
|
389
|
case 222:
|
|
390
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (60);
|
|
391
|
item_use = true;
|
|
392
|
break;
|
|
393
|
case 223:
|
|
394
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (120);
|
|
395
|
item_use = true;
|
|
396
|
break;
|
|
397
|
case 224:
|
|
398
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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;
}
} (100);
|
|
399
|
item_use = true;
|
|
400
|
break;
|
|
401
|
case 225:
|
|
402
|
scr_healallitemspellscr_healallitemspell
function scr_healallitemspell(arg0)
{
scr_healall(arg0);
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;
} (30);
|
|
403
|
item_use = true;
|
|
404
|
break;
|
|
405
|
case 226:
|
|
406
|
var healamount = (global.char[star] == 1) ? 100 : 90;
|
|
407
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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);
|
|
408
|
item_use = true;
|
|
409
|
break;
|
|
410
|
case 227:
|
|
411
|
break;
|
|
412
|
case 228:
|
|
413
|
break;
|
|
414
|
case 229:
|
|
415
|
break;
|
|
416
|
case 230:
|
|
417
|
var healamount = 10;
|
|
418
|
for (var __j = 0; __j < 3; __j++)
|
|
419
|
{
|
|
420
|
if (global.char[__j] > 0)
|
|
421
|
{
|
|
422
|
healamount = 10;
|
|
423
|
star = __j;
|
|
424
|
if (global.hp[global.char[star]] <= 0)
|
|
425
|
healamount = ceil(global.maxhp[global.char[star]] / 4) + abs(global.hp[global.char[star]]);
|
|
426
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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);
|
|
427
|
}
|
|
428
|
}
|
|
429
|
item_use = true;
|
|
430
|
break;
|
|
431
|
case 231:
|
|
432
|
var healamount = 50;
|
|
433
|
for (var __j = 0; __j < 3; __j++)
|
|
434
|
{
|
|
435
|
if (global.char[__j] > 0)
|
|
436
|
{
|
|
437
|
healamount = 50;
|
|
438
|
star = __j;
|
|
439
|
if (global.hp[global.char[star]] <= 0)
|
|
440
|
healamount = 999;
|
|
441
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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);
|
|
442
|
}
|
|
443
|
}
|
|
444
|
item_use = true;
|
|
445
|
break;
|
|
446
|
case 232:
|
|
447
|
if (i_ex(global.charinstance[star]))
|
|
448
|
global.charinstance[star].poisonamount = 60;
|
|
449
|
snd_play(snd_hurt1);
|
|
450
|
var healanim = scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.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);
|
|
451
|
healanim.particlecolor = c_fuchsia;
|
|
452
|
item_use = true;
|
|
453
|
break;
|
|
454
|
case 233:
|
|
455
|
break;
|
|
456
|
}
|
|
457
|
if (item_use == true)
|
|
458
|
{
|
|
459
|
with (obj_event_manager)
|
|
460
|
trigger_event(UnknownEnum.Value_0, get_consumer_trophy());
|
|
461
|
}
|
|
462
|
}
|
|
463
|
|
|
464
|
enum UnknownEnum
|
|
465
|
{
|
|
466
|
Value_0
|
|
467
|
}
|