|
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] != 3Dummy)
{
global.flag[51 + myself] = 3;
event_user(10);
scr_monsterdefeat();
}
else
{
pacifycon = 1;
global.spelldelay = 999;
}
}
}
else
{
_pspell = instance_create(0, 0, obj_pacifyspell);
_pspell.target = global.monsterinstance[star];
_pspell.fail = 1;
}
}
global.spelldelay = 20;
break;
case 4:
cancelattack = 0;
global.spelldelay = 30;
if (global.monster[star] == 0)
scr_retarget_spell();
if (cancelattack == 0)
{
global.spelldelay = 70;
damage = ceil(((global.battlemag[arg1] * 5) + (global.battleat[arg1] * 11)) - (global.monsterdf[star] * 3));
if (global.automiss[star] == 1)
damage = 0;
attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
attack.damage = damage;
attack.star = star;
attack.caster = caster;
attack.target = global.monsterinstance[star];
}
break;
case 5:
... (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);
dm.type = global.char[caster] - 1;
dm.damage = arg1;
global.monsterhp[arg0] -= arg1;
if (arg1 > 0)
{
with (global.monsterinstance[arg0])
{
shakex = 9;
state = 3;
hurttimer = 30;
}
if (instance_exists(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.monsterhp[arg0] <= 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
|
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] != 3Dummy)
|
|
62
|
{
|
|
63
|
global.flag[51 + myself] = 3;
|
|
64
|
event_user(10);
|
|
65
|
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 (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 (scr_monsterpop() == 0)
{
_amt_add = 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 (_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;
}
event_user(11);
}
} ();
|
|
66
|
}
|
|
67
|
else
|
|
68
|
{
|
|
69
|
pacifycon = 1;
|
|
70
|
global.spelldelay = 999;
|
|
71
|
}
|
|
72
|
}
|
|
73
|
}
|
|
74
|
else
|
|
75
|
{
|
|
76
|
_pspell = instance_create(0, 0, obj_pacifyspell);
|
|
77
|
_pspell.target = global.monsterinstance[star];
|
|
78
|
_pspell.fail = 1;
|
|
79
|
}
|
|
80
|
}
|
|
81
|
global.spelldelay = 20;
|
|
82
|
break;
|
|
83
|
case 4:
|
|
84
|
cancelattack = 0;
|
|
85
|
global.spelldelay = 30;
|
|
86
|
if (global.monster[star] == 0)
|
|
87
|
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;
}
} ();
|
|
88
|
if (cancelattack == 0)
|
|
89
|
{
|
|
90
|
global.spelldelay = 70;
|
|
91
|
damage = ceil(((global.battlemag[arg1] * 5) + (global.battleat[arg1] * 11)) - (global.monsterdf[star] * 3));
|
|
92
|
if (global.automiss[star] == 1)
|
|
93
|
damage = 0;
|
|
94
|
attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
|
|
95
|
attack.damage = damage;
|
|
96
|
attack.star = star;
|
|
97
|
attack.caster = caster;
|
|
98
|
attack.target = global.monsterinstance[star];
|
|
99
|
}
|
|
100
|
break;
|
|
101
|
case 5:
|
|
102
|
cancelattack = 0;
|
|
103
|
global.spelldelay = 30;
|
|
104
|
if (global.monster[star] == 0)
|
|
105
|
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;
}
} ();
|
|
106
|
if (cancelattack == 0)
|
|
107
|
{
|
|
108
|
global.spelldelay = 70;
|
|
109
|
damage = ceil(((global.battlemag[arg1] * 6) + (global.battleat[arg1] * 13)) - (global.monsterdf[star] * 6));
|
|
110
|
if (global.automiss[star] == 1)
|
|
111
|
damage = 0;
|
|
112
|
attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
|
|
113
|
attack.damage = damage;
|
|
114
|
attack.star = star;
|
|
115
|
attack.caster = caster;
|
|
116
|
attack.target = global.monsterinstance[star];
|
|
117
|
attack.red = 1;
|
|
118
|
}
|
|
119
|
break;
|
|
120
|
case 6:
|
|
121
|
healnum = global.battlemag[arg1] * 4;
|
|
122
|
for (i = 0; i < 3; i += 1)
|
|
123
|
{
|
|
124
|
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);
|
|
125
|
global.charinstance[i].healnum = healnum;
|
|
126
|
with (global.charinstance[i])
|
|
127
|
{
|
|
128
|
ha = instance_create(x, y, obj_healanim);
|
|
129
|
ha.target = id;
|
|
130
|
dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
131
|
with (dmgwr)
|
|
132
|
{
|
|
133
|
delay = 8;
|
|
134
|
type = 3;
|
|
135
|
}
|
|
136
|
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
|
|
137
|
{
|
|
138
|
with (dmgwr)
|
|
139
|
specialmessage = 3;
|
|
140
|
}
|
|
141
|
dmgwr.damage = healnum;
|
|
142
|
tu += 1;
|
|
143
|
}
|
|
144
|
}
|
|
145
|
global.spelldelay = 15;
|
|
146
|
break;
|
|
147
|
case 100:
|
|
148
|
if (global.monster[star] == 0)
|
|
149
|
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;
}
} ();
|
|
150
|
if (global.monster[star] == 1)
|
|
151
|
{
|
|
152
|
if (global.mercymod[star] >= 100)
|
|
153
|
{
|
|
154
|
if (global.monstertype[star] != 3Dummy)
|
|
155
|
{
|
|
156
|
with (global.monsterinstance[star])
|
|
157
|
{
|
|
158
|
global.flag[51 + myself] = 2;
|
|
159
|
event_user(10);
|
|
160
|
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 (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 (scr_monsterpop() == 0)
{
_amt_add = 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 (_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;
}
event_user(11);
}
} ();
|
|
161
|
}
|
|
162
|
}
|
|
163
|
else
|
|
164
|
{
|
|
165
|
with (global.monsterinstance[star])
|
|
166
|
sparecon = 1;
|
|
167
|
}
|
|
168
|
}
|
|
169
|
else
|
|
170
|
{
|
|
171
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (star, global.sparepoint[star]);
|
|
172
|
_pspell = instance_create(0, 0, obj_pacifyspell);
|
|
173
|
_pspell.target = global.monsterinstance[star];
|
|
174
|
_pspell.fail = 1;
|
|
175
|
_pspell.flashcolor = c_yellow;
|
|
176
|
}
|
|
177
|
}
|
|
178
|
global.spelldelay = 0;
|
|
179
|
break;
|
|
180
|
case 200:
|
|
181
|
break;
|
|
182
|
case 201:
|
|
183
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (40);
|
|
184
|
item_use = true;
|
|
185
|
break;
|
|
186
|
case 202:
|
|
187
|
reviveamt = ceil(global.maxhp[global.char[star]] / 2);
|
|
188
|
if (global.hp[global.char[star]] <= 0)
|
|
189
|
reviveamt = ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]]);
|
|
190
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (reviveamt);
|
|
191
|
item_use = true;
|
|
192
|
break;
|
|
193
|
case 203:
|
|
194
|
break;
|
|
195
|
case 204:
|
|
196
|
break;
|
|
197
|
case 205:
|
|
198
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (20);
|
|
199
|
item_use = true;
|
|
200
|
break;
|
|
201
|
case 206:
|
|
202
|
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);
|
|
203
|
item_use = true;
|
|
204
|
break;
|
|
205
|
case 207:
|
|
206
|
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;
} (80);
|
|
207
|
item_use = true;
|
|
208
|
break;
|
|
209
|
case 208:
|
|
210
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (70);
|
|
211
|
item_use = true;
|
|
212
|
break;
|
|
213
|
case 209:
|
|
214
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (50);
|
|
215
|
item_use = true;
|
|
216
|
break;
|
|
217
|
case 210:
|
|
218
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (4);
|
|
219
|
item_use = true;
|
|
220
|
break;
|
|
221
|
case 211:
|
|
222
|
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);
|
|
223
|
item_use = true;
|
|
224
|
break;
|
|
225
|
case 212:
|
|
226
|
if (global.char[star] == 1)
|
|
227
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (10);
|
|
228
|
if (global.char[star] == 2)
|
|
229
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (90);
|
|
230
|
if (global.char[star] == 3)
|
|
231
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (60);
|
|
232
|
item_use = true;
|
|
233
|
break;
|
|
234
|
case 213:
|
|
235
|
if (global.char[star] == 1)
|
|
236
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (80);
|
|
237
|
if (global.char[star] == 2)
|
|
238
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (30);
|
|
239
|
if (global.char[star] == 3)
|
|
240
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (30);
|
|
241
|
item_use = true;
|
|
242
|
break;
|
|
243
|
case 214:
|
|
244
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (500);
|
|
245
|
item_use = true;
|
|
246
|
break;
|
|
247
|
case 215:
|
|
248
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (60);
|
|
249
|
item_use = true;
|
|
250
|
break;
|
|
251
|
}
|
|
252
|
if (item_use == true)
|
|
253
|
{
|
|
254
|
with (obj_event_manager)
|
|
255
|
trigger_event(UnknownEnum.Value_0, get_consumer_trophy());
|
|
256
|
}
|
|
257
|
}
|
|
258
|
|
|
259
|
enum UnknownEnum
|
|
260
|
{
|
|
261
|
Value_0
|
|
262
|
}
|