|
1
|
var _str1 = stringsetloc(* Guei looks TIRED. Perhaps Ralsei's MAGIC, PACIFY would be effective..."* Guei looks \\cBTIRED\\c0. Perhaps Ralsei's MAGIC, \\cBPACIFY\\c0 would be effective...", "obj_guei_enemy_slash_Step_0_gml_3_0" );
|
|
2
|
var _str2 = stringsetloc(* Guei looks TIRED. DEFEND to gain TP, then try Ralsei's MAGIC, PACIFY...!"* Guei looks \\cBTIRED\\c0. \\cYDEFEND\\c0 to gain \\cYTP\\c0, then try Ralsei's MAGIC, \\cBPACIFY\\c0...!", "obj_guei_enemy_slash_Step_0_gml_4_0" );
|
|
3
|
if (global.monster[myself] == 1)
|
|
4
|
{
|
|
5
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk") && talked == 0)
|
|
6
|
{
|
|
7
|
scr_randomtargetscr_randomtarget
function scr_randomtarget()
{
abletotarget = 1;
if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0)
abletotarget = 0;
mytarget = choose(0, 1, 2);
if (abletotarget == 1)
{
while (global.charcantarget[mytarget] == 0)
mytarget = choose(0, 1, 2);
}
else
{
mytarget = 3;
}
global.targeted[mytarget] = 1;
if (global.chapter >= 2 && mytarget != 3)
{
if (global.charcantarget[0])
global.targeted[0] = 1;
if (global.charcantarget[1])
global.targeted[1] = 1;
if (global.charcantarget[2])
global.targeted[2] = 1;
mytarget = 4;
}
} ();
|
|
8
|
myattackchoice = choose(0, 1);
|
|
9
|
myattackpriority = 1;
|
|
10
|
if (myattackchoice == 2)
|
|
11
|
myattackpriority = 50;
|
|
12
|
scr_attackpriorityscr_attackpriority
function scr_attackpriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.attackpriority < arg0)
{
obj_battlecontroller.attackpriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (myattackpriority - 1);
|
|
13
|
if (!instance_exists(obj_darkener))
|
|
14
|
instance_create(0, 0, obj_darkener);
|
|
15
|
balloon = instance_create(x, y + 60, obj_guei_balloon);
|
|
16
|
if (exercism == 1)
|
|
17
|
{
|
|
18
|
balloon.image_index = 6;
|
|
19
|
}
|
|
20
|
else
|
|
21
|
{
|
|
22
|
if (balloonorder == 0)
|
|
23
|
balloon.image_index = 0;
|
|
24
|
if (balloonorder == 1)
|
|
25
|
balloon.image_index = 1;
|
|
26
|
if (balloonorder == 2)
|
|
27
|
balloon.image_index = 2;
|
|
28
|
if (balloonorder == 3)
|
|
29
|
balloon.image_index = 3;
|
|
30
|
if (balloonorder == 4)
|
|
31
|
balloon.image_index = 4;
|
|
32
|
if (balloonorder == 5)
|
|
33
|
balloon.image_index = 5;
|
|
34
|
balloonorder++;
|
|
35
|
if (balloonorder == 6)
|
|
36
|
balloonorder = 0;
|
|
37
|
}
|
|
38
|
talked = 1;
|
|
39
|
talktimer = 0;
|
|
40
|
rtimer = 0;
|
|
41
|
}
|
|
42
|
if (talked == 1 && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk"))
|
|
43
|
scr_blconskipscr_blconskip
function scr_blconskip(arg0)
{
if (arg0 >= 0)
{
if (button1_p() && talktimer > arg0)
talktimer = talkmax;
talktimer += 1;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
with (obj_guei_balloon)
instance_destroy();
global.mnfight = 1.5;
}
}
else if (arg0 == -1)
{
if (instance_exists(obj_writer) == false)
global.mnfight = 1.5;
}
else if (arg0 == -2)
{
talktimer += 1;
if (talktimer > 15)
talktimer = talkmax;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
with (obj_guei_balloon)
instance_destroy();
global.mnfight = 1.5;
}
}
} (15);
|
|
44
|
if (global.mnfight == 1.5)
|
|
45
|
{
|
|
46
|
if (scr_attackpriorityscr_attackpriority
function scr_attackpriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.attackpriority < arg0)
{
obj_battlecontroller.attackpriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (myattackpriority))
|
|
47
|
{
|
|
48
|
if (!instance_exists(obj_growtangle))
|
|
49
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
50
|
if (myattackchoice == 2)
|
|
51
|
{
|
|
52
|
}
|
|
53
|
if (!instance_exists(obj_moveheart))
|
|
54
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
if (global.chapter == 4 && (i_ex(obj_hammer_of_justice_enemy) || i_ex(obj_sound_of_justice_enemy)))
return instance_create(obj_herosusie.x - 250, obj_herosusie.y + 40, obj_moveheart);
else
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
55
|
global.mnfight = 2;
|
|
56
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (90);
|
|
57
|
gothitthisturn = false;
|
|
58
|
}
|
|
59
|
}
|
|
60
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("bullets") && attacked == 0)
|
|
61
|
{
|
|
62
|
rtimer += 1;
|
|
63
|
if (rtimer == 12)
|
|
64
|
{
|
|
65
|
if (i_ex(obj_gerson_cane_bullet) && !i_ex(obj_dbulletcontroller))
|
|
66
|
{
|
|
67
|
global.monsterattackname[myself] = "gueigersoncane";
|
|
68
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
69
|
dc.type = 101.5;
|
|
70
|
}
|
|
71
|
else if (i_ex(obj_gerson_cane_bullet) && i_ex(obj_dbulletcontroller))
|
|
72
|
{
|
|
73
|
}
|
|
74
|
else if (myattackchoice == 0)
|
|
75
|
{
|
|
76
|
global.monsterattackname[myself] = "hauntedflames";
|
|
77
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
78
|
dc.type = 100;
|
|
79
|
}
|
|
80
|
else if (myattackchoice == 1)
|
|
81
|
{
|
|
82
|
global.monsterattackname[myself] = "clawdrop";
|
|
83
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
84
|
dc.type = 101;
|
|
85
|
}
|
|
86
|
exercism = 0;
|
|
87
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (200);
|
|
88
|
if (i_ex(obj_gerson_cane_bullet))
|
|
89
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (400);
|
|
90
|
turns += 1;
|
|
91
|
global.typer = 6;
|
|
92
|
global.fc = 0;
|
|
93
|
rr = choose(0, 1, 2, 3);
|
|
94
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (random(2)))
|
|
95
|
{
|
|
96
|
if (rr == 0)
|
|
97
|
global.battlemsg[0] = stringsetloc(* Guei turns its head like a bird."* Guei turns its head like a bird.", "obj_guei_enemy_slash_Step_0_gml_127_0" );
|
|
98
|
if (rr == 1)
|
|
99
|
global.battlemsg[0] = stringsetloc(* Guei rattles its claws."* Guei rattles its claws.", "obj_guei_enemy_slash_Step_0_gml_128_0" );
|
|
100
|
if (rr == 2)
|
|
101
|
global.battlemsg[0] = stringsetloc(* Guei wags its tail."* Guei wags its tail.", "obj_guei_enemy_slash_Step_0_gml_129_0" );
|
|
102
|
if (rr == 3)
|
|
103
|
global.battlemsg[0] = stringsetloc(* Guei howls hauntingly."* Guei howls hauntingly.", "obj_guei_enemy_slash_Step_0_gml_130_0" );
|
|
104
|
if (irandom(100) < 3)
|
|
105
|
global.battlemsg[0] = stringsetloc(* Smells like teens. * Smells like spirits."* Smells like teens.&* Smells like spirits.", "obj_guei_enemy_slash_Step_0_gml_131_0" );
|
|
106
|
}
|
|
107
|
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
|
|
108
|
{
|
|
109
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (100 + random(2)))
|
|
110
|
global.battlemsg[0] = stringsetloc(* Guei's flames flicker weakly."* Guei's flames flicker weakly.", "obj_guei_enemy_slash_Step_0_gml_137_0" );
|
|
111
|
}
|
|
112
|
if (global.mercymod[myself] >= 100)
|
|
113
|
{
|
|
114
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (100 + random(2)))
|
|
115
|
global.battlemsg[0] = stringsetloc(* Guei looks satisfied in some odd way."* Guei looks satisfied in some odd way.", "obj_guei_enemy_slash_Step_0_gml_142_0" );
|
|
116
|
}
|
|
117
|
if (global.monsterstatus[myself] == 1)
|
|
118
|
{
|
|
119
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (103 + random(2)))
|
|
120
|
{
|
|
121
|
global.battlemsg[0] = _str1;
|
|
122
|
if (global.tension < 40)
|
|
123
|
global.battlemsg[0] = _str2;
|
|
124
|
}
|
|
125
|
}
|
|
126
|
attacked = 1;
|
|
127
|
}
|
|
128
|
}
|
|
129
|
if (global.mnfight == 2 && global.turntimer <= 1)
|
|
130
|
gersonvar = 0;
|
|
131
|
if (global.mnfight == 2 && global.turntimer <= 1 && postenemyturnevent == 0)
|
|
132
|
{
|
|
133
|
postenemyturnevent = 1;
|
|
134
|
scr_monster_make_tiredscr_monster_make_tired
function scr_monster_make_tired(arg0)
{
if (global.monsterstatus[arg0] == 0)
{
__tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter);
__tiredwriter.type = 13;
global.hittarget[arg0] += 1;
snd_play_x(snd_spellcast, 0.5, 0.9);
}
global.monstercomment[arg0] = stringsetloc((Tired)"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0" );
global.monsterstatus[arg0] = 1;
} (myself);
|
|
135
|
if (global.monsterstatus[myself] == 1)
|
|
136
|
{
|
|
137
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (103 + random(2)))
|
|
138
|
{
|
|
139
|
global.battlemsg[0] = _str1;
|
|
140
|
if (global.tension < 40)
|
|
141
|
global.battlemsg[0] = _str2;
|
|
142
|
}
|
|
143
|
}
|
|
144
|
}
|
|
145
|
}
|
|
146
|
if (global.myfight == 3)
|
|
147
|
{
|
|
148
|
xx = __view_get(e__VW.XView, 0);
|
|
149
|
yy = __view_get(e__VW.YView, 0);
|
|
150
|
if (acting == 1 && actcon == 0)
|
|
151
|
{
|
|
152
|
actcon = 1;
|
|
153
|
msgsetloc(0, * GUEI - A strange spirit said to appear when the moon waxes.Wait for inputClose Message"* GUEI - A strange spirit said to appear when the moon waxes./%", "obj_guei_enemy_slash_Step_0_gml_189_0" );
|
|
154
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
155
|
}
|
|
156
|
if (acting == 2 && actcon == 0)
|
|
157
|
{
|
|
158
|
actcon = 1;
|
|
159
|
msgsetloc(0, * You started the exercism! * You encouraged Guei to exercise!Wait for inputClose Message"* You started the exercism!&* You encouraged Guei to exercise!/%", "obj_guei_enemy_slash_Step_0_gml_196_0" );
|
|
160
|
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]++;
} (myself, 20);
|
|
161
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
162
|
exercism = 1;
|
|
163
|
postenemyturnevent = 0;
|
|
164
|
}
|
|
165
|
if (acting == 3 && actcon == 0)
|
|
166
|
{
|
|
167
|
msgsetloc(0, * Everyone encouraged Guei to exercise!Wait for inputClose Message"* Everyone encouraged Guei to exercise!/%", "obj_guei_enemy_slash_Step_0_gml_206_0" );
|
|
168
|
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]++;
} (myself, 60);
|
|
169
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
170
|
actcon = 1;
|
|
171
|
exercism = 1;
|
|
172
|
postenemyturnevent = 0;
|
|
173
|
}
|
|
174
|
if (acting == 4 && actcon == 0)
|
|
175
|
{
|
|
176
|
if (gersonactcount == 0)
|
|
177
|
{
|
|
178
|
gersontimer++;
|
|
179
|
if (gersontimer == 1)
|
|
180
|
{
|
|
181
|
gerson = instance_create_depth(camerax() - 100, cameray() + 230, depth - 10, obj_marker);
|
|
182
|
gerson.sprite_index = spr_gerson_outfit_walk_cane;
|
|
183
|
gerson.image_speed = 0.16666666666666666;
|
|
184
|
gerson.image_xscale = -2;
|
|
185
|
gerson.image_yscale = 2;
|
|
186
|
createdgerson = true;
|
|
187
|
with (obj_guei_enemy)
|
|
188
|
gerson = other.gerson;
|
|
189
|
audio_pause_sound(global.batmusic[1]);
|
|
190
|
}
|
|
191
|
gerson.x = lerp(camerax() - 100, camerax() + 400, gersontimer / 120);
|
|
192
|
if (gerson.sprite_index == spr_gerson_outfit_walk_cane && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
|
|
193
|
{
|
|
194
|
snd_play_pitch(snd_bump, 0.9);
|
|
195
|
walkvar = 1;
|
|
196
|
}
|
|
197
|
if (gerson.sprite_index == spr_gerson_outfit_walk_cane && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
|
|
198
|
{
|
|
199
|
snd_play_pitch(snd_bump, 0.9);
|
|
200
|
walkvar = 0;
|
|
201
|
}
|
|
202
|
if (gersontimer == 120)
|
|
203
|
{
|
|
204
|
audio_resume_sound(global.batmusic[1]);
|
|
205
|
gerson.sprite_index = spr_gerson_outfit_walk_cane;
|
|
206
|
gerson.image_speed = 0;
|
|
207
|
gerson.image_xscale = 2;
|
|
208
|
gersontimer = 0;
|
|
209
|
acting = 35;
|
|
210
|
gerson.x -= 74;
|
|
211
|
global.typer = 86;
|
|
212
|
msgsetloc(0, How's it goin'?Wait for inputClose Message"How's it goin'?/%", "obj_guei_enemy_slash_Step_0_gml_251_0" );
|
|
213
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (gerson.x, gerson.y + 32, 10);
|
|
214
|
for (var i = 0; i < instance_number(obj_guei_enemy); i++)
|
|
215
|
{
|
|
216
|
guei[i] = instance_find(obj_guei_enemy, i);
|
|
217
|
guei[i].gersonactcount++;
|
|
218
|
}
|
|
219
|
}
|
|
220
|
}
|
|
221
|
else if (gersonactcount == 1)
|
|
222
|
{
|
|
223
|
var b = 0;
|
|
224
|
for (var i = 0; i < instance_number(obj_guei_enemy); i++)
|
|
225
|
{
|
|
226
|
guei[i] = instance_find(obj_guei_enemy, i);
|
|
227
|
if (global.monstermaxhp[guei[i].myself] != global.monsterhp[guei[i].myself])
|
|
228
|
b = 1;
|
|
229
|
}
|
|
230
|
if (b == 1)
|
|
231
|
{
|
|
232
|
msgsetloc(0, * Called the OldMan! Nothing happened!Wait for inputClose Message"* Called the OldMan! Nothing happened!/%", "obj_guei_enemy_slash_Step_0_gml_273_0" );
|
|
233
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
234
|
actcon = 1;
|
|
235
|
}
|
|
236
|
else
|
|
237
|
{
|
|
238
|
gersontimer++;
|
|
239
|
if (gersontimer == 1)
|
|
240
|
{
|
|
241
|
if (gerson == -1)
|
|
242
|
{
|
|
243
|
gerson = instance_create_depth(camerax() - 100, cameray() + 140, depth - 10, obj_marker);
|
|
244
|
gerson.sprite_index = spr_gerson_outfit_walk;
|
|
245
|
gerson.image_speed = 0.16666666666666666;
|
|
246
|
gerson.image_yscale = 2;
|
|
247
|
}
|
|
248
|
gerson.visible = true;
|
|
249
|
gerson.y = cameray() + 40;
|
|
250
|
gerson.depth = obj_herokris.depth + 10;
|
|
251
|
gerson.image_xscale = -2;
|
|
252
|
gerson.sprite_index = spr_gerson_outfit_walk;
|
|
253
|
gerson.image_speed = 0.16666666666666666;
|
|
254
|
audio_pause_sound(global.batmusic[1]);
|
|
255
|
}
|
|
256
|
gerson.x = lerp(camerax() - 100, camerax() + 450, gersontimer / 120);
|
|
257
|
if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
|
|
258
|
{
|
|
259
|
snd_play_pitch(snd_bump, 0.9);
|
|
260
|
walkvar = 1;
|
|
261
|
}
|
|
262
|
if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
|
|
263
|
{
|
|
264
|
snd_play_pitch(snd_bump, 0.9);
|
|
265
|
walkvar = 0;
|
|
266
|
}
|
|
267
|
if (gersontimer == 120)
|
|
268
|
{
|
|
269
|
audio_resume_sound(global.batmusic[1]);
|
|
270
|
gerson.sprite_index = spr_gerson_outfit_idle;
|
|
271
|
gerson.image_speed = 0;
|
|
272
|
gerson.image_xscale = 2;
|
|
273
|
gersontimer = 0;
|
|
274
|
acting = 41;
|
|
275
|
gerson.x -= 74;
|
|
276
|
global.typer = 86;
|
|
277
|
msgsetloc(0, Hmm, you called it a battle, but I don't see much fightin'.Wait for inputClose Message"Hmm, you called&it a battle,&but I don't&see much fightin'./%", "obj_guei_enemy_slash_Step_0_gml_314_0" );
|
|
278
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (gerson.x, gerson.y + 32, 10);
|
|
279
|
}
|
|
280
|
}
|
|
281
|
}
|
|
282
|
}
|
|
283
|
if (acting >= 35 && acting < 50)
|
|
284
|
talktimer++;
|
|
285
|
if (acting == 35 && actcon == 0)
|
|
286
|
{
|
|
287
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
288
|
{
|
|
289
|
with (obj_writer)
|
|
290
|
instance_destroy();
|
|
291
|
talktimer = 0;
|
|
292
|
global.typer = 75;
|
|
293
|
msgsetloc(0, Get out of here!! These guys are tough!!Wait for inputClose Message"Get out of here!!&These guys are tough!!/%", "obj_guei_enemy_slash_Step_0_gml_332_0" );
|
|
294
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
295
|
acting = 36;
|
|
296
|
}
|
|
297
|
}
|
|
298
|
if (acting == 36 && actcon == 0)
|
|
299
|
{
|
|
300
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
301
|
{
|
|
302
|
with (obj_writer)
|
|
303
|
instance_destroy();
|
|
304
|
talktimer = 0;
|
|
305
|
global.typer = 86;
|
|
306
|
msgsetloc(0, Alright, alright...Wait for inputClose Message"Alright,&alright.../%", "obj_guei_enemy_slash_Step_0_gml_347_0" );
|
|
307
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (gerson.x, gerson.y + 32, 10);
|
|
308
|
gersontimer = 0;
|
|
309
|
acting = 37;
|
|
310
|
}
|
|
311
|
}
|
|
312
|
if ((acting == 37 && actcon == 0 && gersontimer == 0 && ((button3_p() && talktimer > 15) || !i_ex(obj_writer))) || (acting == 37 && gersontimer > 0))
|
|
313
|
{
|
|
314
|
gersontimer++;
|
|
315
|
if (gersontimer == 1)
|
|
316
|
{
|
|
317
|
with (obj_writer)
|
|
318
|
instance_destroy();
|
|
319
|
talktimer = 0;
|
|
320
|
gerson.sprite_index = spr_gerson_outfit_walk_cane;
|
|
321
|
gerson.image_speed = 0.16666666666666666;
|
|
322
|
gerson.image_xscale = 2;
|
|
323
|
audio_pause_sound(global.batmusic[1]);
|
|
324
|
}
|
|
325
|
gerson.x = lerp((camerax() + 400) - 74, camerax() - 100, gersontimer / 120);
|
|
326
|
if (gerson.sprite_index == spr_gerson_outfit_walk_cane && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
|
|
327
|
{
|
|
328
|
snd_play_pitch(snd_bump, 0.9);
|
|
329
|
walkvar = 1;
|
|
330
|
}
|
|
331
|
if (gerson.sprite_index == spr_gerson_outfit_walk_cane && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
|
|
332
|
{
|
|
333
|
snd_play_pitch(snd_bump, 0.9);
|
|
334
|
walkvar = 0;
|
|
335
|
}
|
|
336
|
if (gersontimer == 40)
|
|
337
|
{
|
|
338
|
gerson.sprite_index = spr_gerson_outfit_idle;
|
|
339
|
gerson.image_speed = 0;
|
|
340
|
acting = 38;
|
|
341
|
}
|
|
342
|
}
|
|
343
|
if (acting == 38 && actcon == 0)
|
|
344
|
{
|
|
345
|
gerson.x += 74;
|
|
346
|
gerson.image_xscale = -2;
|
|
347
|
global.typer = 86;
|
|
348
|
msgsetloc(0, Whoops, dropped my cane.Wait for inputClose Message"Whoops,&dropped my cane./%", "obj_guei_enemy_slash_Step_0_gml_387_0" );
|
|
349
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (gerson.x + 37, gerson.y + 32, 10);
|
|
350
|
myblcon.side = -1;
|
|
351
|
with (gerson)
|
|
352
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
353
|
instance_create(gerson.x, gerson.y, obj_gerson_cane_bullet);
|
|
354
|
with (object_index)
|
|
355
|
gothitthisturn = false;
|
|
356
|
acting = 39;
|
|
357
|
}
|
|
358
|
if (acting == 39 && actcon == 0)
|
|
359
|
{
|
|
360
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
361
|
{
|
|
362
|
with (obj_writer)
|
|
363
|
instance_destroy();
|
|
364
|
talktimer = 0;
|
|
365
|
global.typer = 86;
|
|
366
|
msgsetloc(0, Ya mind getting that for me?Wait for inputClose Message"Ya mind getting&that for me?/%", "obj_guei_enemy_slash_Step_0_gml_406_0" );
|
|
367
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (gerson.x + 37, gerson.y + 32, 10);
|
|
368
|
myblcon.side = -1;
|
|
369
|
with (obj_guei_enemy)
|
|
370
|
gersonvar = 1;
|
|
371
|
acting = 40;
|
|
372
|
}
|
|
373
|
}
|
|
374
|
if ((acting == 40 && actcon == 0 && gersontimer == 40 && ((button3_p() && talktimer > 15) || !i_ex(obj_writer)) && !i_ex(obj_jump_to_point)) || (acting == 40 && gersontimer > 40))
|
|
375
|
{
|
|
376
|
gersontimer += 3;
|
|
377
|
if (gersontimer == 43)
|
|
378
|
{
|
|
379
|
with (obj_writer)
|
|
380
|
instance_destroy();
|
|
381
|
talktimer = 0;
|
|
382
|
gerson.sprite_index = spr_gerson_outfit_genki;
|
|
383
|
gerson.image_speed = 0.25;
|
|
384
|
gerson.x -= 74;
|
|
385
|
gerson.image_xscale = 2;
|
|
386
|
}
|
|
387
|
if (gerson.sprite_index == spr_gerson_outfit_genki && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
|
|
388
|
{
|
|
389
|
snd_play_pitch(snd_bump, 0.9);
|
|
390
|
walkvar = 1;
|
|
391
|
}
|
|
392
|
if (gerson.sprite_index == spr_gerson_outfit_genki && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
|
|
393
|
{
|
|
394
|
snd_play_pitch(snd_bump, 0.9);
|
|
395
|
walkvar = 0;
|
|
396
|
}
|
|
397
|
gerson.x = lerp((camerax() + 400) - 74, camerax() - 100, gersontimer / 120);
|
|
398
|
if (gersontimer >= 120)
|
|
399
|
{
|
|
400
|
audio_resume_sound(global.batmusic[1]);
|
|
401
|
gerson.sprite_index = spr_gerson_outfit_idle;
|
|
402
|
gerson.image_speed = 0;
|
|
403
|
gersontimer = 0;
|
|
404
|
gerson.visible = false;
|
|
405
|
actcon = 1;
|
|
406
|
}
|
|
407
|
}
|
|
408
|
if (acting == 41 && actcon == 0)
|
|
409
|
{
|
|
410
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
411
|
{
|
|
412
|
with (obj_writer)
|
|
413
|
instance_destroy();
|
|
414
|
talktimer = 0;
|
|
415
|
global.typer = 74;
|
|
416
|
msgsetloc(0, We don't hurt the enemies, we SPARE them!Wait for inputClose Message"We don't hurt&the enemies,&we SPARE them!/%", "obj_guei_enemy_slash_Step_0_gml_451_0" );
|
|
417
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("ralsei");
|
|
418
|
acting = 42;
|
|
419
|
}
|
|
420
|
}
|
|
421
|
if (acting == 42 && actcon == 0)
|
|
422
|
{
|
|
423
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
424
|
{
|
|
425
|
with (obj_writer)
|
|
426
|
instance_destroy();
|
|
427
|
talktimer = 0;
|
|
428
|
global.typer = 86;
|
|
429
|
msgsetloc(0, Spare, huh? Like this?Wait for inputClose Message"Spare, huh?&Like this?/%", "obj_guei_enemy_slash_Step_0_gml_466_0" );
|
|
430
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (gerson.x, gerson.y + 32, 10);
|
|
431
|
acting = 43;
|
|
432
|
}
|
|
433
|
}
|
|
434
|
if ((acting == 43 && actcon == 0 && gersontimer == 0 && ((button3_p() && talktimer > 15) || !i_ex(obj_writer))) || (acting == 43 && gersontimer > 0))
|
|
435
|
{
|
|
436
|
global.flag[868] = 1;
|
|
437
|
gersontimer++;
|
|
438
|
if (gersontimer == 1)
|
|
439
|
{
|
|
440
|
gerson.sprite_index = spr_gerson_spare;
|
|
441
|
gerson.image_speed = 0.5;
|
|
442
|
with (obj_writer)
|
|
443
|
instance_destroy();
|
|
444
|
talktimer = 0;
|
|
445
|
gerson.x += 74;
|
|
446
|
gerson.image_xscale = -2;
|
|
447
|
with (obj_guei_enemy)
|
|
448
|
{
|
|
449
|
visible = false;
|
|
450
|
snd_play(snd_sparkle_gem);
|
|
451
|
spareanim = instance_create(x, y, obj_spareanim);
|
|
452
|
spareanim.sprite_index = sprite_index;
|
|
453
|
spareanim.sprite_index = sparedsprite;
|
|
454
|
spareanim.image_index = 0;
|
|
455
|
spareanim.image_xscale = image_xscale;
|
|
456
|
spareanim.image_yscale = image_yscale;
|
|
457
|
_recruitanim = instance_create(global.monsterx[myself] + 20, global.monstery[myself] - 40, obj_recruitanim);
|
|
458
|
_recruitanim.sprite_index = spr_recruited_by_oldman;
|
|
459
|
if (global.lang == "ja")
|
|
460
|
_recruitanim.sprite_index = spr_recruited_by_oldman_ja;
|
|
461
|
}
|
|
462
|
}
|
|
463
|
if (gersontimer == 28)
|
|
464
|
{
|
|
465
|
gerson.sprite_index = spr_gerson_outfit_idle;
|
|
466
|
gerson.image_speed = 0;
|
|
467
|
}
|
|
468
|
if (gersontimer == 60)
|
|
469
|
{
|
|
470
|
acting = 44;
|
|
471
|
gersontimer = 0;
|
|
472
|
}
|
|
473
|
}
|
|
474
|
if (acting == 44 && actcon == 0)
|
|
475
|
{
|
|
476
|
with (obj_writer)
|
|
477
|
instance_destroy();
|
|
478
|
talktimer = 0;
|
|
479
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_shock_r, 0, 1);
|
|
480
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("ralsei", spr_ralsei_shocked_right, 0, 1);
|
|
481
|
with (obj_herosusie)
|
|
482
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
483
|
with (obj_heroralsei)
|
|
484
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
485
|
global.typer = 74;
|
|
486
|
msgsetloc(0, Y... you recruited them!?Wait for inputClose Message"Y... you&recruited them!?/%", "obj_guei_enemy_slash_Step_0_gml_530_0" );
|
|
487
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("ralsei");
|
|
488
|
acting = 45;
|
|
489
|
}
|
|
490
|
if (acting == 45 && actcon == 0)
|
|
491
|
{
|
|
492
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
493
|
{
|
|
494
|
with (obj_writer)
|
|
495
|
instance_destroy();
|
|
496
|
talktimer = 0;
|
|
497
|
global.typer = 86;
|
|
498
|
msgsetloc(0, Huh, whaddya know, it works!Wait for inputClose Message"Huh,&whaddya know,&it works!/%", "obj_guei_enemy_slash_Step_0_gml_544_0" );
|
|
499
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (gerson.x + 22, gerson.y + 32, 10);
|
|
500
|
myblcon.side = -1;
|
|
501
|
acting = 46;
|
|
502
|
}
|
|
503
|
}
|
|
504
|
if (acting == 46 && actcon == 0)
|
|
505
|
{
|
|
506
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
507
|
{
|
|
508
|
with (obj_writer)
|
|
509
|
instance_destroy();
|
|
510
|
talktimer = 0;
|
|
511
|
global.typer = 86;
|
|
512
|
msgsetloc(0, I'll let you kids finish your battle! Geh heh heh!Wait for inputClose Message"I'll let you&kids finish&your battle!&Geh heh heh!/%", "obj_guei_enemy_slash_Step_0_gml_560_0" );
|
|
513
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (gerson.x + 22, gerson.y + 32, 10);
|
|
514
|
myblcon.side = -1;
|
|
515
|
acting = 47;
|
|
516
|
}
|
|
517
|
}
|
|
518
|
if ((acting == 47 && actcon == 0 && gersontimer == 0 && ((button3_p() && talktimer > 15) || !i_ex(obj_writer))) || (acting == 47 && gersontimer > 0))
|
|
519
|
{
|
|
520
|
gersontimer++;
|
|
521
|
if (gersontimer == 1)
|
|
522
|
{
|
|
523
|
with (obj_writer)
|
|
524
|
instance_destroy();
|
|
525
|
talktimer = 0;
|
|
526
|
gerson.sprite_index = spr_gerson_outfit_walk;
|
|
527
|
gerson.image_speed = 0.16666666666666666;
|
|
528
|
gerson.image_xscale = 2;
|
|
529
|
audio_pause_sound(global.batmusic[1]);
|
|
530
|
}
|
|
531
|
gerson.x = lerp((camerax() + 450) - 74, camerax() - 100, gersontimer / 120);
|
|
532
|
if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
|
|
533
|
{
|
|
534
|
snd_play_pitch(snd_bump, 0.9);
|
|
535
|
walkvar = 1;
|
|
536
|
}
|
|
537
|
if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
|
|
538
|
{
|
|
539
|
snd_play_pitch(snd_bump, 0.9);
|
|
540
|
walkvar = 0;
|
|
541
|
}
|
|
542
|
if (gersontimer == 120)
|
|
543
|
{
|
|
544
|
gerson.sprite_index = spr_gerson_outfit_idle;
|
|
545
|
gerson.image_speed = 0;
|
|
546
|
gersontimer = 0;
|
|
547
|
acting = 48;
|
|
548
|
}
|
|
549
|
}
|
|
550
|
if (acting == 48 && actcon == 0)
|
|
551
|
{
|
|
552
|
scr_battle_sprite_resetscr_battle_sprite_reset
function scr_battle_sprite_reset(arg0)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 0;
hurt = 0;
attacktimer = 0;
attacked = 0;
global.faceaction[myself] = 0;
}
}
} ("susie");
|
|
553
|
scr_battle_sprite_resetscr_battle_sprite_reset
function scr_battle_sprite_reset(arg0)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 0;
hurt = 0;
attacktimer = 0;
attacked = 0;
global.faceaction[myself] = 0;
}
}
} ("ralsei");
|
|
554
|
gerson.visible = false;
|
|
555
|
msgsetloc(0, * (But, the battle was already over.)Wait for inputClose Message"* (But, the battle was already over.)/%", "obj_guei_enemy_slash_Step_0_gml_603_0" );
|
|
556
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
557
|
acting = 49;
|
|
558
|
}
|
|
559
|
if (acting == 49 && actcon == 0 && !i_ex(obj_writer))
|
|
560
|
{
|
|
561
|
msgsetloc(0, * (The Old Man received 438 Dark Dollars.)Wait for inputClose Message"* (The Old Man received 438 Dark Dollars.)/%", "obj_guei_enemy_slash_Step_0_gml_611_0" );
|
|
562
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
563
|
acting = 50;
|
|
564
|
}
|
|
565
|
if (acting == 50 && actcon == 0 && !i_ex(obj_writer))
|
|
566
|
{
|
|
567
|
obj_battlecontroller.skipvictory = 1;
|
|
568
|
scr_wincombatscr_wincombat
function scr_wincombat()
{
if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1)
{
global.myfight = 7;
global.mnfight = -1;
with (obj_battlecontroller)
victory = 1;
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
}
else
{
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0;
for (__j = 0; __j < 3; __j++)
{
if (global.monstertype[__j] != 0(None))
{
_newmonster = scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800;
global.monsterinstance[_newmonster].y = global.monstermakey[__j];
with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
}
}
global.myfight = 5;
myfightreturntimer = 15;
global.mnfight = -1;
}
} ();
|
|
569
|
}
|
|
570
|
if (actingsus == 1 && actconsus == 1)
|
|
571
|
{
|
|
572
|
if (simultotal == 1)
|
|
573
|
msgsetloc(0, * Susie told a story about the living dead!Wait for inputClose Message"* Susie told a story about the living dead!/%", "obj_guei_enemy_slash_Step_0_gml_626_0" );
|
|
574
|
else
|
|
575
|
msgsetloc(0, * Susie told a ghost story!Wait for inputClose Message"* Susie told a ghost story!/%", "obj_guei_enemy_slash_Step_0_gml_627_0" );
|
|
576
|
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]++;
} (myself, 40);
|
|
577
|
scr_simultextscr_simultext
function scr_simultext(arg0)
{
__simulorder = 0;
if (arg0 == "kris")
__simulorder = simulorderkri;
if (arg0 == "susie")
__simulorder = simulordersus;
if (arg0 == "ralsei")
__simulorder = simulorderral;
if (arg0 == "noelle")
__simulorder = simulordernoe;
__yoffset = __simulorder * 30;
global.typer = 4;
battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer);
} ("susie");
|
|
578
|
if (simulordersus == 0)
|
|
579
|
actconsus = 20;
|
|
580
|
else
|
|
581
|
actconsus = 0;
|
|
582
|
if (room == room_dw_church_intro_guei)
|
|
583
|
global.flag[1639] = 1;
|
|
584
|
}
|
|
585
|
if (actingral == 1 && actconral == 1)
|
|
586
|
{
|
|
587
|
if (simultotal == 1)
|
|
588
|
msgsetloc(0, * Ralsei told a family-friendly story about a lovable yet lonely ghost!Wait for inputClose Message"* Ralsei told a family-friendly story about a lovable yet lonely ghost!/%", "obj_guei_enemy_slash_Step_0_gml_638_0" );
|
|
589
|
else
|
|
590
|
msgsetloc(0, * Ralsei quoted a holy book!Wait for inputClose Message"* Ralsei quoted a holy book!/%", "obj_guei_enemy_slash_Step_0_gml_639_0" );
|
|
591
|
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]++;
} (myself, 40);
|
|
592
|
scr_simultextscr_simultext
function scr_simultext(arg0)
{
__simulorder = 0;
if (arg0 == "kris")
__simulorder = simulorderkri;
if (arg0 == "susie")
__simulorder = simulordersus;
if (arg0 == "ralsei")
__simulorder = simulorderral;
if (arg0 == "noelle")
__simulorder = simulordernoe;
__yoffset = __simulorder * 30;
global.typer = 4;
battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer);
} ("ralsei");
|
|
593
|
if (simulorderral == 0)
|
|
594
|
actconral = 20;
|
|
595
|
else
|
|
596
|
actconral = 0;
|
|
597
|
if (room == room_dw_church_intro_guei)
|
|
598
|
global.flag[1639] = 1;
|
|
599
|
}
|
|
600
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
601
|
{
|
|
602
|
if (scr_terminate_writerscr_terminate_writer
function scr_terminate_writer()
{
__writerkilled = 0;
__writerkillable = 0;
__writerended = 0;
if (instance_exists(obj_writer))
{
obj_writer.__endcheckid = id;
with (obj_writer)
{
if (reachedend == 1)
{
with (__endcheckid)
__writerended++;
}
}
if (__writerended == instance_number(obj_writer))
__writerkillable = 1;
}
else
{
__writerkilled = 1;
}
if (button1_p() && __writerkillable == 1)
{
with (obj_writer)
instance_destroy();
__writerkilled = 1;
}
return __writerkilled;
} ())
|
|
603
|
{
|
|
604
|
actconsus = -1;
|
|
605
|
actconral = -1;
|
|
606
|
actcon = 1;
|
|
607
|
}
|
|
608
|
}
|
|
609
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
610
|
scr_nextactscr_nextact
function scr_nextact()
{
global.acting[0] = 0;
global.acting[1] = 0;
global.acting[2] = 0;
global.actingsingle[global.currentactingchar] = 0;
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
with (__minstance)
{
acting = 0;
actcon = 0;
actconsus = 0;
actconral = 0;
actconnoe = 0;
}
var singleactcomplete = 0;
while (global.currentactingchar < 3)
{
global.currentactingchar++;
if (global.currentactingchar < 3)
{
if (global.actingsingle[global.currentactingchar] == 1)
{
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
if (global.char[global.currentactingchar] == 2)
{
with (__minstance)
actconsus = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 3)
{
with (__minstance)
actconral = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 4)
{
with (__minstance)
actconnoe = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
}
}
}
if (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 1)
{
global.charturn = 3;
global.myfight = 3;
global.currentactingchar = 0;
if (global.acting[0] == 0)
scr_nextact();
if (global.acting[0] == 1 && global.actingsimul[0] == 1)
scr_act_simul();
exit;
}
if (global.currentactingchar >= 3)
{
with (obj_monsterparent)
{
acting = 0;
actingsus = 0;
actingral = 0;
actingnoe = 0;
}
global.currentactingchar = 0;
scr_attackphase();
}
else if (!singleactcomplete)
{
scr_act_simul();
}
} ();
|
|
611
|
}
|
|
612
|
if (state == 3)
|
|
613
|
{
|
|
614
|
scr_enemyhurt_tired_after_damagescr_enemyhurt_tired_after_damage
function scr_enemyhurt_tired_after_damage(arg0)
{
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] * arg0))
scr_monster_make_tired(myself);
} (0.5);
|
|
615
|
scr_enemy_hurtscr_enemy_hurt
function scr_enemy_hurt()
{
hurttimer -= 1;
if (hurttimer < 0)
{
state = 0;
}
else
{
if (global.monster[myself] == 0)
scr_defeatrun();
hurtshake += 1;
if (hurtshake > 1)
{
if (shakex > 0)
shakex -= 1;
if (shakex < 0)
shakex += 1;
shakex = -shakex;
hurtshake = 0;
}
}
} ();
|
|
616
|
}
|
|
617
|
if (gersonevent == true)
|
|
618
|
{
|
|
619
|
with (obj_battlecontroller)
|
|
620
|
gueigersoncon = 1;
|
|
621
|
}
|
|
622
|
if (gersonvar == 1 && gothitthisturn)
|
|
623
|
{
|
|
624
|
global.battlemsg[0] = stringsetloc(* Damn, that stupid cane made us get hit!"* Damn, that stupid cane made us get hit!", "obj_guei_enemy_slash_Step_0_gml_677_0" );
|
|
625
|
with (obj_battlecontroller)
|
|
626
|
facevar = 2;
|
|
627
|
global.fe = 5;
|
|
628
|
}
|
|
629
|
|
|
630
|
enum e__VW
|
|
631
|
{
|
|
632
|
XView,
|
|
633
|
YView,
|
|
634
|
WView,
|
|
635
|
HView,
|
|
636
|
Angle,
|
|
637
|
HBorder,
|
|
638
|
VBorder,
|
|
639
|
HSpeed,
|
|
640
|
VSpeed,
|
|
641
|
Object,
|
|
642
|
Visible,
|
|
643
|
XPort,
|
|
644
|
YPort,
|
|
645
|
WPort,
|
|
646
|
HPort,
|
|
647
|
Camera,
|
|
648
|
SurfaceID
|
|
649
|
}
|