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