1 |
function scr_spell_ch1scr_spell_ch1function scr_spell_ch1(arg0, arg1)
{
spell = arg0;
caster = arg1;
star = global.chartarget[arg1];
global.spelldelay = 10;
switch (spell)
{
case 0:
break;
case 1:
cancelattack = 0;
if (global.monster[star] == 0)
scr_retarget_spell_ch1();
if (cancelattack == 0)
{
damage = ceil((global.battleat[arg1] * 10) - (global.monsterdf[star] * 3));
if (global.automiss[star] == 1)
damage = 0;
scr_damage_enemy_ch1(star, damage);
attack = instance_create_ch1(global.monsterx[star] + random(6), global.monstery[star] + random(6), obj_basicattack_ch1);
attack.sprite_index = spr_attack_mash1_ch1;
dm.delay = 8;
}
global.spelldelay = 30;
break;
case 2:
healnum = global.battlemag[arg1] * 5;
scr_heal_ch1(star, healnum);
global.charinstance[star].healnum = healnum;
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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_ch1();
if (global.monster[star] == 1)
{
if (global.monsterstatus[star] == 1)
{
with (global.monsterinstance[star])
{
if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3 Dummy)
{
global.flag[51 + myself] = 3;
event_user(10);
scr_monsterdefeat_ch1();
}
else
{
pacifycon = 1;
global.spelldelay = 999;
}
}
}
else
{
_pspell = instance_create_ch1(0, 0, obj_pacifyspell_ch1);
_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_ch1();
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_ch1(obj_herosusie_ch1.x, obj_herosusie_ch1.y, obj_rudebuster_anim_ch1);
attack.damage = damage;
attack.star = star;
attack.caster = caster;
attack.target = global.monsterinstance[star];
}
break;
case 5:
cancelattack = 0;
... (arg0, arg1) |
2 |
{ |
3 |
spell = arg0; |
4 |
caster = arg1; |
5 |
star = global.chartarget[arg1]; |
6 |
global.spelldelay = 10; |
7 |
switch (spell) |
8 |
{ |
9 |
case 0: |
10 |
break; |
11 |
case 1: |
12 |
cancelattack = 0; |
13 |
if (global.monster[star] == 0) |
14 |
scr_retarget_spell_ch1scr_retarget_spell_ch1function scr_retarget_spell_ch1()
{
cancelattack = 0;
if (star == 0)
{
if (global.monster[0] == 0)
star = 1;
}
if (star == 1)
{
if (global.monster[1] == 0)
star = 2;
}
if (star == 2)
{
if (global.monster[2] == 0)
star = 3;
if (star == 3 && global.monster[0] == 1)
star = 0;
if (star == 3 && global.monster[1] == 1)
star = 1;
if (star == 3)
cancelattack = 1;
}
} (); |
15 |
if (cancelattack == 0) |
16 |
{ |
17 |
damage = ceil((global.battleat[arg1] * 10) - (global.monsterdf[star] * 3)); |
18 |
if (global.automiss[star] == 1) |
19 |
damage = 0; |
20 |
scr_damage_enemy_ch1scr_damage_enemy_ch1function scr_damage_enemy_ch1(arg0, arg1)
{
dm = instance_create_ch1(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter_ch1);
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_ch1();
}
} (star, damage); |
21 |
attack = instance_create_ch1(global.monsterx[star] + random(6), global.monstery[star] + random(6), obj_basicattack_ch1); |
22 |
attack.sprite_index = spr_attack_mash1_ch1; |
23 |
dm.delay = 8; |
24 |
} |
25 |
global.spelldelay = 30; |
26 |
break; |
27 |
case 2: |
28 |
healnum = global.battlemag[arg1] * 5; |
29 |
scr_heal_ch1scr_heal_ch1function scr_heal_ch1(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_ch1(arg0);
}
snd_stop_ch1(snd_power_ch1);
snd_play_ch1(snd_power_ch1);
return global.hp[hltarget] - _curhp;
} (star, healnum); |
30 |
global.charinstance[star].healnum = healnum; |
31 |
with (global.charinstance[star]) |
32 |
{ |
33 |
ha = instance_create_ch1(x, y, obj_healanim_ch1); |
34 |
ha.target = id; |
35 |
dmgwr = scr_dmgwriter_selfchar_ch1(); |
36 |
with (dmgwr) |
37 |
{ |
38 |
delay = 8; |
39 |
type = 3; |
40 |
} |
41 |
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) |
42 |
{ |
43 |
with (dmgwr) |
44 |
specialmessage = 3; |
45 |
} |
46 |
dmgwr.damage = healnum; |
47 |
tu += 1; |
48 |
} |
49 |
global.spelldelay = 15; |
50 |
break; |
51 |
case 3: |
52 |
if (global.monster[star] == 0) |
53 |
scr_retarget_spell_ch1scr_retarget_spell_ch1function scr_retarget_spell_ch1()
{
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;
}
} (); |
54 |
if (global.monster[star] == 1) |
55 |
{ |
56 |
if (global.monsterstatus[star] == 1) |
57 |
{ |
58 |
with (global.monsterinstance[star]) |
59 |
{ |
60 |
if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3Dummy) |
61 |
{ |
62 |
global.flag[51 + myself] = 3; |
63 |
event_user(10); |
64 |
scr_monsterdefeat_ch1scr_monsterdefeat_ch1function scr_monsterdefeat_ch1()
{
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_ch1() == 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);
}
} (); |
65 |
} |
66 |
else |
67 |
{ |
68 |
pacifycon = 1; |
69 |
global.spelldelay = 999; |
70 |
} |
71 |
} |
72 |
} |
73 |
else |
74 |
{ |
75 |
_pspell = instance_create_ch1(0, 0, obj_pacifyspell_ch1); |
76 |
_pspell.target = global.monsterinstance[star]; |
77 |
_pspell.fail = 1; |
78 |
} |
79 |
} |
80 |
global.spelldelay = 20; |
81 |
break; |
82 |
case 4: |
83 |
cancelattack = 0; |
84 |
global.spelldelay = 30; |
85 |
if (global.monster[star] == 0) |
86 |
scr_retarget_spell_ch1scr_retarget_spell_ch1function scr_retarget_spell_ch1()
{
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;
}
} (); |
87 |
if (cancelattack == 0) |
88 |
{ |
89 |
global.spelldelay = 70; |
90 |
damage = ceil(((global.battlemag[arg1] * 5) + (global.battleat[arg1] * 11)) - (global.monsterdf[star] * 3)); |
91 |
if (global.automiss[star] == 1) |
92 |
damage = 0; |
93 |
attack = instance_create_ch1(obj_herosusie_ch1.x, obj_herosusie_ch1.y, obj_rudebuster_anim_ch1); |
94 |
attack.damage = damage; |
95 |
attack.star = star; |
96 |
attack.caster = caster; |
97 |
attack.target = global.monsterinstance[star]; |
98 |
} |
99 |
break; |
100 |
case 5: |
101 |
cancelattack = 0; |
102 |
global.spelldelay = 30; |
103 |
if (global.monster[star] == 0) |
104 |
scr_retarget_spell_ch1scr_retarget_spell_ch1function scr_retarget_spell_ch1()
{
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] * 6) + (global.battleat[arg1] * 13)) - (global.monsterdf[star] * 6)); |
109 |
if (global.automiss[star] == 1) |
110 |
damage = 0; |
111 |
attack = instance_create_ch1(obj_herosusie_ch1.x, obj_herosusie_ch1.y, obj_rudebuster_anim_ch1); |
112 |
attack.damage = damage; |
113 |
attack.star = star; |
114 |
attack.caster = caster; |
115 |
attack.target = global.monsterinstance[star]; |
116 |
attack.red = 1; |
117 |
} |
118 |
break; |
119 |
case 6: |
120 |
healnum = global.battlemag[arg1] * 4; |
121 |
for (i = 0; i < 3; i += 1) |
122 |
{ |
123 |
scr_heal_ch1scr_heal_ch1function scr_heal_ch1(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_ch1(arg0);
}
snd_stop_ch1(snd_power_ch1);
snd_play_ch1(snd_power_ch1);
return global.hp[hltarget] - _curhp;
} (i, healnum); |
124 |
global.charinstance[i].healnum = healnum; |
125 |
with (global.charinstance[i]) |
126 |
{ |
127 |
ha = instance_create_ch1(x, y, obj_healanim_ch1); |
128 |
ha.target = id; |
129 |
dmgwr = scr_dmgwriter_selfchar_ch1(); |
130 |
with (dmgwr) |
131 |
{ |
132 |
delay = 8; |
133 |
type = 3; |
134 |
} |
135 |
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) |
136 |
{ |
137 |
with (dmgwr) |
138 |
specialmessage = 3; |
139 |
} |
140 |
dmgwr.damage = healnum; |
141 |
tu += 1; |
142 |
} |
143 |
} |
144 |
global.spelldelay = 15; |
145 |
break; |
146 |
case 100: |
147 |
if (global.monster[star] == 0) |
148 |
scr_retarget_spell_ch1scr_retarget_spell_ch1function scr_retarget_spell_ch1()
{
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;
}
} (); |
149 |
if (global.monster[star] == 1) |
150 |
{ |
151 |
if (global.mercymod[star] >= 100) |
152 |
{ |
153 |
if (global.monstertype[star] != 3Dummy) |
154 |
{ |
155 |
with (global.monsterinstance[star]) |
156 |
{ |
157 |
global.flag[51 + myself] = 2; |
158 |
event_user(10); |
159 |
scr_monsterdefeat_ch1scr_monsterdefeat_ch1function scr_monsterdefeat_ch1()
{
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_ch1() == 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);
}
} (); |
160 |
} |
161 |
} |
162 |
else |
163 |
{ |
164 |
with (global.monsterinstance[star]) |
165 |
sparecon = 1; |
166 |
} |
167 |
} |
168 |
else |
169 |
{ |
170 |
scr_mercyadd_ch1(star, global.sparepoint[star]); |
171 |
_pspell = instance_create_ch1(0, 0, obj_pacifyspell_ch1); |
172 |
_pspell.target = global.monsterinstance[star]; |
173 |
_pspell.fail = 1; |
174 |
_pspell.flashcolor = c_yellow; |
175 |
} |
176 |
} |
177 |
global.spelldelay = 0; |
178 |
break; |
179 |
case 200: |
180 |
break; |
181 |
case 201: |
182 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
183 |
break; |
184 |
case 202: |
185 |
reviveamt = ceil(global.maxhp[global.char[star]] / 2); |
186 |
if (global.hp[global.char[star]] <= 0) |
187 |
reviveamt = ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]]); |
188 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
189 |
break; |
190 |
case 203: |
191 |
break; |
192 |
case 204: |
193 |
break; |
194 |
case 205: |
195 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
196 |
break; |
197 |
case 206: |
198 |
scr_healallitemspell_ch1scr_healallitemspell_ch1function scr_healallitemspell_ch1(arg0)
{
scr_healall_ch1(arg0);
for (i = 0; i < 3; i += 1)
{
with (global.charinstance[i])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
199 |
break; |
200 |
case 207: |
201 |
scr_healallitemspell_ch1scr_healallitemspell_ch1function scr_healallitemspell_ch1(arg0)
{
scr_healall_ch1(arg0);
for (i = 0; i < 3; i += 1)
{
with (global.charinstance[i])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
202 |
break; |
203 |
case 208: |
204 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
205 |
break; |
206 |
case 209: |
207 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
208 |
break; |
209 |
case 210: |
210 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
211 |
break; |
212 |
case 211: |
213 |
scr_healallitemspell_ch1scr_healallitemspell_ch1function scr_healallitemspell_ch1(arg0)
{
scr_healall_ch1(arg0);
for (i = 0; i < 3; i += 1)
{
with (global.charinstance[i])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
214 |
break; |
215 |
case 212: |
216 |
if (global.char[star] == 1) |
217 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
218 |
if (global.char[star] == 2) |
219 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
220 |
if (global.char[star] == 3) |
221 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
222 |
break; |
223 |
case 213: |
224 |
if (global.char[star] == 1) |
225 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
226 |
if (global.char[star] == 2) |
227 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
228 |
if (global.char[star] == 3) |
229 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
230 |
break; |
231 |
case 214: |
232 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
233 |
break; |
234 |
case 215: |
235 |
scr_healitemspell_ch1scr_healitemspell_ch1function scr_healitemspell_ch1(arg0)
{
scr_heal_ch1(star, arg0);
with (global.charinstance[star])
{
ha = instance_create_ch1(x, y, obj_healanim_ch1);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar_ch1();
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); |
236 |
break; |
237 |
} |
238 |
} |