Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_titan_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_titan_enemy))
2
{
3
    if (global.monsterhp[myself] < 1)
4
        global.monsterhp[myself] = 1;
5
}
6
hpprev = global.monsterhp[myself];
7
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
() && keyboard_check(vk_numpad4))
8
{
9
    var _exp = instance_create(x + 200, y + 440, obj_titan_fight_explosion);
10
    _exp.depth = 1000310;
11
    _exp.minh = -8;
12
    _exp.maxh = -2;
13
}
14
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
() && keyboard_check(vk_numpad6))
15
{
16
    var _exp = instance_create(x + 400, y + 440, obj_titan_fight_explosion);
17
    _exp.depth = 1000310;
18
    _exp.minh = 0;
19
    _exp.maxh = 6;
20
}
21
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] * 0.5) && finalunleashphasedone == false)
22
{
23
    finalunleashphasedone = true;
24
    with (obj_spellphase)
25
    {
26
        
scr_attackphase
scr_attackphase

function
scr_attackphase()
{ with (obj_battlecontroller) { techwon = 0; if (
scr_monsterpop() == 0)
techwon = 1; if (techwon == 1)
scr_wincombat();
if (techwon == 0) { for (__hiti = 0; __hiti < 3; __hiti++) global.hittarget[__hiti] = 0; fightphase = 1; global.charturn = 3; if (global.charaction[0] == 4 || global.charaction[0] == 2) fightphase = 0; if (global.charaction[1] == 4 || global.charaction[1] == 2) fightphase = 0; if (global.charaction[2] == 4 || global.charaction[2] == 2) fightphase = 0; if (global.myfight == 4) fightphase = 1; if (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 2) { if (global.charaction[0] == 1 && global.charaction[1] != 1) { if (obj_sound_of_justice_enemy.krisattackcount > 0) { global.myfight = -1; global.mnfight = 1; exit; } } if (global.charaction[0] == 1 && global.charaction[1] == 1) { if (obj_sound_of_justice_enemy.krisattackcount > 1) { global.myfight = -1; global.mnfight = 1; exit; } global.charaction[1] = 0; } if (global.charaction[0] != 1 && global.charaction[1] == 1) { global.myfight = -1; global.mnfight = 1; exit; } } if (fightphase == 1) { global.myfight = 1; instance_create(xx + 2, yy + 365, obj_attackpress); } else { global.myfight = 4; instance_create(0, 0, obj_spellphase); } } } }
();
27
        with (spellwriter)
28
            instance_destroy();
29
        with (obj_face)
30
            instance_destroy();
31
        instance_destroy();
32
    }
33
    endingcon = 1;
34
    endingtimer = -50;
35
    myattackchoice = 20;
36
    talked = 0.1;
37
    talktimer = 0;
38
    phaseturn = 1;
39
    global.battlemsg[0] = stringsetloc(
* ...
"* ...", "obj_titan_enemy_slash_Step_0_gml_70_0"
);
40
}
41
if (global.monster[myself] == 1)
42
{
43
    if (
scr_isphase
scr_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)
44
    {
45
        if (phase == 8 && global.monsterhp[myself] <= (global.monstermaxhp[myself] * 0.4))
46
        {
47
            myattackchoice = 20;
48
            difficulty = 0;
49
        }
50
        if (!instance_exists(obj_darkener) && myattackchoice != 20)
51
        {
52
            instance_create(0, 0, obj_darkener);
53
            with (obj_darkener)
54
                depth = other.depth - 1;
55
        }
56
        rtimer = 0;
57
        con = 0;
58
        setbattlemsg = false;
59
        turnswithoutunleash++;
60
        if (turnswithoutunleash == 4)
61
            tensionscaling = 1.5;
62
        if (turnswithoutunleash == 5)
63
            tensionscaling = 2;
64
        if (turnswithoutunleash == 7)
65
            tensionscaling = 3;
66
        var createballoon = false;
67
        if (finalunleashphasedone || phase == 7 || phase == 8)
68
            createballoon = true;
69
        if (!createballoon)
70
        {
71
            global.mnfight = 1.5;
72
        }
73
        else if (afterdualbusterused == true && susiesideaenabled == false)
74
        {
75
            with (obj_darkener)
76
                instance_destroy();
77
            endingcon = 29;
78
            endingtimer = 0;
79
            talked = 0.1;
80
            talktimer = 0;
81
        }
82
        else if (dualbusterused == true && susiesideaenabled == false)
83
        {
84
            with (obj_darkener)
85
                instance_destroy();
86
            endingcon = 23;
87
            endingtimer = 0;
88
            talked = 0.1;
89
            talktimer = 0;
90
        }
91
        else if (phase == 7 && phaseturn == 2)
92
        {
93
            with (obj_darkener)
94
                instance_destroy();
95
            endingcon = 4;
96
            endingtimer = 0;
97
            talked = 0.1;
98
            talktimer = 0;
99
        }
100
        else if (phase == 7 && phaseturn == 3)
101
        {
102
            with (obj_darkener)
103
                instance_destroy();
104
            endingcon = 8;
105
            endingtimer = 0;
106
            talked = 0.1;
107
            talktimer = 0;
108
        }
109
        else
110
        {
111
            global.mnfight = 1.5;
112
        }
113
    }
114
    phase8attack = false;
115
    if (talked == 1 && 
scr_isphase
scr_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"))
116
        
scr_blconskip
scr_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);
117
    if (global.mnfight == 1.5)
118
    {
119
        if (instance_exists(obj_darkshape_blast) || instance_exists(obj_darkshape_star))
120
            exit;
121
        if (myattackchoice == 20)
122
        {
123
        }
124
        else
125
        {
126
            if (!instance_exists(obj_growtangle))
127
            {
128
                if (myattackchoice == 2 || myattackchoice == 3 || myattackchoice == 4)
129
                    instance_create(__view_get(e__VW.XView, 0) + 250, __view_get(e__VW.YView, 0) + 200, obj_growtangle);
130
                else
131
                    instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
132
            }
133
            if (!instance_exists(obj_moveheart))
134
                
scr_moveheart
scr_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); }
();
135
        }
136
        global.mnfight = 2;
137
        
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
138
    }
139
    if (
scr_isphase
scr_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)
140
    {
141
        rtimer += 1;
142
        if (rtimer == 12)
143
        {
144
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(360);
145
            if (myattackchoice == 2)
146
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(270);
147
            if (myattackchoice == 0)
148
            {
149
                global.monsterattackname[myself] = "darkshapeswithred";
150
                dc = 
scr_bulletspawner
scr_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);
151
                dc.type = 461;
152
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(420);
153
            }
154
            if (myattackchoice == 1)
155
            {
156
                global.monsterattackname[myself] = "darkshapescentipedeharder";
157
                dc = 
scr_bulletspawner
scr_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);
158
                dc.type = 451;
159
            }
160
            if (myattackchoice == 2)
161
            {
162
                global.monsterattackname[myself] = "darkshapesbigshot";
163
                dc = 
scr_bulletspawner
scr_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);
164
                dc.type = 452;
165
            }
166
            if (myattackchoice == 3)
167
            {
168
                global.monsterattackname[myself] = "darkshapesbigshotdesperation";
169
                dc = 
scr_bulletspawner
scr_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);
170
                dc.type = 453;
171
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(430);
172
            }
173
            if (myattackchoice == 4)
174
            {
175
                global.monsterattackname[myself] = "darkshapesbigshotaimed";
176
                dc = 
scr_bulletspawner
scr_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);
177
                dc.type = 454;
178
            }
179
            if (myattackchoice == 5)
180
            {
181
                global.monsterattackname[myself] = "darkshapescentipedehardest";
182
                dc = 
scr_bulletspawner
scr_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);
183
                dc.type = 470;
184
            }
185
            if (myattackchoice == 6)
186
            {
187
                global.monsterattackname[myself] = "darkshapesintro";
188
                dc = 
scr_bulletspawner
scr_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);
189
                dc.type = 456;
190
            }
191
            if (myattackchoice == 7)
192
            {
193
                global.monsterattackname[myself] = "darkshapescentipedeintro";
194
                dc = 
scr_bulletspawner
scr_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);
195
                dc.type = 457;
196
            }
197
            if (myattackchoice == 8)
198
            {
199
                global.monsterattackname[myself] = "darkshapesmine";
200
                dc = 
scr_bulletspawner
scr_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);
201
                dc.type = 458;
202
            }
203
            if (myattackchoice == 9)
204
            {
205
                global.monsterattackname[myself] = "thehands";
206
                dc = 
scr_bulletspawner
scr_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);
207
                dc.type = 459;
208
            }
209
            if (myattackchoice == 10)
210
            {
211
                global.monsterattackname[myself] = "thehandsfast";
212
                dc = 
scr_bulletspawner
scr_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);
213
                dc.type = 462;
214
            }
215
            if (myattackchoice == 11)
216
            {
217
                global.monsterattackname[myself] = "thehandsfastest";
218
                dc = 
scr_bulletspawner
scr_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);
219
                dc.type = 463;
220
            }
221
            if (myattackchoice == 12)
222
            {
223
                global.monsterattackname[myself] = "darkshapescentipedenoshapes";
224
                dc = 
scr_bulletspawner
scr_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);
225
                dc.type = 464;
226
            }
227
            if (myattackchoice == 13)
228
            {
229
                global.monsterattackname[myself] = "darkshapesbigshotdesperationshort";
230
                dc = 
scr_bulletspawner
scr_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);
231
                dc.type = 465;
232
                global.turntimer = 240;
233
            }
234
            if (myattackchoice == 14)
235
            {
236
                global.monsterattackname[myself] = "darkshapeharder";
237
                dc = 
scr_bulletspawner
scr_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);
238
                dc.type = 468;
239
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(420);
240
            }
241
            if (myattackchoice == 15)
242
            {
243
                global.monsterattackname[myself] = "darkshapehardest";
244
                dc = 
scr_bulletspawner
scr_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);
245
                dc.type = 469;
246
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(420);
247
            }
248
            if (myattackchoice == 16)
249
            {
250
                global.monsterattackname[myself] = "darkshapefinal";
251
                dc = 
scr_bulletspawner
scr_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);
252
                dc.type = 472;
253
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(900);
254
            }
255
            if (myattackchoice == 20)
256
            {
257
                heal = instance_create(x, y, obj_titan_heal);
258
                if (phase == 8)
259
                {
260
                    heal.strongerheal = true;
261
                    heal.healamt = global.monstermaxhp[obj_titan_enemy.myself] * 0.5;
262
                }
263
            }
264
            turns += 1;
265
            attacked = 1;
266
            if (myattackchoice == 4 && phase == 8)
267
                global.turntimer = 240;
268
        }
269
    }
270
    if (global.mnfight == 2 && global.turntimer <= 1)
271
    {
272
        if (setbattlemsg == false)
273
        {
274
            global.typer = 6;
275
            global.fc = 0;
276
            
scr_randomtarget
scr_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; } }
();
277
            phaseturn++;
278
            event_user(0);
279
            light_radius = 48;
280
            brighten = 0;
281
            juststoppedbeingunleashed = 0;
282
            setbattlemsg = true;
283
            if (deunleash == true)
284
            {
285
                unleashed = false;
286
                if (finalunleashphasedone == true)
287
                    drawstate = "defense";
288
                else
289
                    starshootcon = 3;
290
            }
291
            deunleash = false;
292
            if ((phase == 1 || phase == 3 || phase == 5) && global.tension >= 200)
293
            {
294
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
295
                global.battlemsg[0] = stringsetloc(
* The atmosphere feels tense... (You can use UNLEASH!)
"* The atmosphere feels tense... (You can use \\cYUNLEASH\\c0!)", "obj_jackenstein_enemy_slash_Step_0_gml_340_0"
);
296
            }
297
            if (phase == 8 && (global.hp[1] < 1 || global.hp[2] < 1 || global.hp[3] < 1))
298
            {
299
                var _str = "";
300
                if (global.hp[1] < 1)
301
                    _str = stringsetloc(
Kris
"Kris", "obj_initializer_slash_Create_0_gml_48_0"
);
302
                if (global.hp[2] < 1)
303
                    _str = stringsetloc(
Susie
"Susie", "obj_initializer_slash_Create_0_gml_49_0"
);
304
                if (global.hp[3] < 1)
305
                    _str = stringsetloc(
Ralsei
"Ralsei", "obj_initializer_slash_Create_0_gml_50_0"
);
306
                var _andstr = " and ";
307
                if (global.lang == "ja")
308
                    _andstr = " と ";
309
                if (global.hp[1] < 1 && global.hp[2] < 1)
310
                    _str = stringsetloc(
Kris
"Kris", "obj_initializer_slash_Create_0_gml_48_0"
) + _andstr + stringsetloc(
Susie
"Susie", "obj_initializer_slash_Create_0_gml_49_0"
);
311
                if (global.hp[1] < 1 && global.hp[3] < 1)
312
                    _str = stringsetloc(
Kris
"Kris", "obj_initializer_slash_Create_0_gml_48_0"
) + _andstr + stringsetloc(
Ralsei
"Ralsei", "obj_initializer_slash_Create_0_gml_50_0"
);
313
                if (global.hp[2] < 1 && global.hp[3] < 1)
314
                    _str = stringsetloc(
Susie
"Susie", "obj_initializer_slash_Create_0_gml_49_0"
) + _andstr + stringsetloc(
Ralsei
"Ralsei", "obj_initializer_slash_Create_0_gml_50_0"
);
315
                global.battlemsg[0] = stringsetsubloc("* Old Man gave ~1 candy!", _str, "obj_titan_enemy_slash_Step_0_gml_395_0");
316
                gerson.sprite_index = spr_gerson_item;
317
                gerson.image_index = 0;
318
                gerson.image_speed = 1/3;
319
                global.charturn = 3;
320
            }
321
        }
322
    }
323
    if (endingcon == 1)
324
    {
325
        endingtimer++;
326
        if (endingtimer == -49)
327
            mus_fade(global.batmusic[1], 60);
328
        if (endingtimer == 41)
329
        {
330
            
scr_fadein
scr_fadein

function
scr_fadein(arg0)
{ __fadeouter = instance_create(0, 0, obj_fadein); __fadeouter.fadespeed = -1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(10);
331
            with (obj_fadein)
332
            {
333
                image_blend = c_white;
334
                image_alpha = 0.6;
335
                depth = -99999;
336
                x = camerax();
337
                y = cameray();
338
            }
339
            var _exp = instance_create(x + 200, y + 440, obj_titan_fight_explosion);
340
            _exp.depth = 1000310;
341
            _exp.minh = -8;
342
            _exp.maxh = -2;
343
            pre_rumble = true;
344
            rumbler = 0;
345
            snd_play_x(snd_punchheavythunder, 1, 1.3);
346
        }
347
        if (endingtimer == 89)
348
        {
349
            shakepow = 0;
350
            rumble = true;
351
            pre_rumble = false;
352
        }
353
        if (endingtimer == 91)
354
        {
355
            rumble_sound = snd_loop(snd_rumble);
356
            rumble = true;
357
            rumbler = 3;
358
            shakepow = 2;
359
            hurttimer = random_range(30, 50);
360
            if (starshootcon == 0)
361
                starshootcon = 2;
362
            
scr_fadein
scr_fadein

function
scr_fadein(arg0)
{ __fadeouter = instance_create(0, 0, obj_fadein); __fadeouter.fadespeed = -1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(10);
363
            with (obj_fadein)
364
            {
365
                image_blend = c_white;
366
                image_alpha = 0.7;
367
                depth = -99999;
368
                x = camerax();
369
                y = cameray();
370
            }
371
            snd_play_x(snd_punchheavythunder, 1, 1.3);
372
            var _exp = instance_create(x + 400, y + 440, obj_titan_fight_explosion);
373
            _exp.depth = 1000310;
374
            _exp.minh = 0;
375
            _exp.maxh = 6;
376
            bg_fade = instance_create(screenx(), screeny(), obj_screen_color);
377
            bg_fade.blend_mode = 3;
378
            bg_fade.image_blend = c_black;
379
            bg_fade.depth = obj_herokris.depth + 10;
380
            
scr_lerp_imageblend
scr_lerp_imageblend

function
scr_lerp_imageblend()
{ var lerpblend = instance_create(x, y, obj_lerpimageblend); lerpblend.target = argument0; lerpblend.color1 = argument1; lerpblend.color2 = argument2; var ___time = argument3; if (argument_count > 4) { var _style = argument4; var _ease = argument5; lerpblend.mylerp = scr_lerp_var_instance(lerpblend, "blendindex", 0, 1, ___time, _style, _ease); } else { lerpblend.mylerp = scr_lerp_var_instance(lerpblend, "blendindex", 0, 1, ___time); } with (lerpblend) alarm_set(0, ___time + 1); return lerpblend; }
(bg_fade, c_black, #AAAAAA, 90);
381
        }
382
        if (endingtimer >= 91)
383
        {
384
            if (hurt_index < 2)
385
                hurt_index += (1/3);
386
        }
387
        if (endingtimer == 180)
388
        {
389
            with (obj_dmgwriter)
390
            {
391
                if (delaytimer >= 1)
392
                    killactive = 1;
393
            }
394
            for (i = 0; i < 3; i++)
395
            {
396
                if (global.hp[i + 1] <= 0)
397
                {
398
                    var _hltarget = global.char[i];
399
                    var _curhp = global.hp[_hltarget];
400
                    var _healpower;
401
                    if (_curhp <= 0)
402
                        _healpower = -_curhp + 5;
403
                    else
404
                        _healpower = 1;
405
                    
scr_heal
scr_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, _healpower);
406
                    with (global.charinstance[i])
407
                    {
408
                        ha = instance_create(x, y, obj_healanim);
409
                        ha.target = id;
410
                        dmgwr = 
scr_dmgwriter_selfchar
scr_dmgwriter_selfchar

function
scr_dmgwriter_selfchar()
{ return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter); }
();
411
                        with (dmgwr)
412
                        {
413
                            delay = 8;
414
                            type = 3;
415
                            damage = _healpower;
416
                        }
417
                        if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
418
                        {
419
                            with (dmgwr)
420
                                specialmessage = 3;
421
                        }
422
                        tu += 1;
423
                    }
424
                }
425
            }
426
            for (i = 0; i < 3; i++)
427
            {
428
                with (global.charinstance[i])
429
                    tu--;
430
            }
431
            msgsetloc(0, 
Did... Did
we do it...?Wait for inputClose Message
"Did... Did&we do it...?/%", "obj_titan_enemy_slash_Step_0_gml_515_0"
);
432
            global.typer = 75;
433
            
scr_heroblcon
scr_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");
434
            with (obj_herosusie)
435
                
scr_shakeobj
scr_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); }
();
436
            
scr_battle_sprite_set
scr_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_surprised_step_back2, 0, 1);
437
            global.canact[myself][3] = 0;
438
            global.actname[myself][3] = "";
439
            global.actactor[myself][3] = 0;
440
            
scr_spellmenu_setup
scr_spellmenu_setup

function
scr_spellmenu_setup()
{ var __actnamecheck = 0; var __monstertype = global.monstertype[0]; for (__i = 1; __i < 3; __i++) { if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype) __actnamecheck = 1; } for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 6; __fj++) { global.battlespell[__i][__fj] = 0; if (global.char[__i] == 1) { if (global.canact[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcost[0][__fj]; global.battlespellname[__i][__fj] = global.actname[0][__fj]; global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj]; global.battlespelltarget[__i][__fj] = 0; global.battlespellspecial[__i][__fj] = 1; } } if (global.char[__i] == 2) { if (global.canactsus[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj]; global.battlespellname[__i][__fj] = global.actnamesus[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
S-Action
"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0"
);
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 2; } } if (global.char[__i] == 3) { if (global.canactral[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostral[0][__fj]; global.battlespellname[__i][__fj] = global.actnameral[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
R-Action
"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0"
);
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 3; } } if (global.char[__i] == 4) { if (global.canactnoe[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj]; global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
N-Action
"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0"
);
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 4; } } } }
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 12; __fj++) { __ib = global.battleactcount[__i] + __fj; global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj]; global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj]; global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj]; global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj]; global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj]; } } }
();
441
        }
442
        if ((button3_p() && endingtimer > 195) || (!i_ex(obj_writer) && endingtimer >= 180))
443
        {
444
            with (obj_writer)
445
                instance_destroy();
446
            endingcon = 2;
447
            endingtimer = -80;
448
        }
449
    }
450
    if (endingcon == 2)
451
    {
452
        endingtimer++;
453
        if (endingtimer > -10)
454
        {
455
            if (hurt_index < 5)
456
                hurt_index += (1/3);
457
        }
458
        if (endingtimer == -70)
459
        {
460
            snd_volume(rumble_sound, 0, 30);
461
            with (obj_titan_fight_explosion)
462
                endless = false;
463
        }
464
        if (endingtimer == -55)
465
        {
466
            shakepow = 1;
467
            rumbler = 2;
468
        }
469
        if (endingtimer == -40)
470
        {
471
            shakepow = 0;
472
            rumbler = 1;
473
        }
474
        if (endingtimer == -25)
475
            rumbler = 0;
476
        if (endingtimer == -10)
477
        {
478
            snd_stop(rumble_sound);
479
            snd_free(rumble_sound);
480
            drawstate = "defense";
481
        }
482
        if (endingtimer == 20)
483
        {
484
            knightmus[0] = snd_init("mus_knightthought.ogg");
485
            knightmus[1] = mus_loop(knightmus[0]);
486
            mus_volume(knightmus[1], 0, 0);
487
            mus_volume(knightmus[1], 0.5, 150);
488
        }
489
        if (endingtimer == 70)
490
        {
491
            msgsetloc(0, 
H-hey, wait!
What is it...
doing...?Wait for inputClose Message
"H-hey, wait!&What is it...&doing...?/%", "obj_titan_enemy_slash_Step_0_gml_593_0"
);
492
            global.typer = 75;
493
            
scr_heroblcon
scr_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");
494
            with (obj_herosusie)
495
                
scr_shakeobj
scr_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); }
();
496
            
scr_battle_sprite_set
scr_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_hurt_lookright, 0, 1);
497
        }
498
        if ((button3_p() && endingtimer > 85) || (!i_ex(obj_writer) && endingtimer >= 70))
499
        {
500
            with (obj_writer)
501
                instance_destroy();
502
            endingcon = 3;
503
            endingtimer = 0;
504
        }
505
    }
506
    if (endingcon == 3)
507
    {
508
        endingtimer++;
509
        if (endingtimer == 1)
510
            instance_create(x, y, obj_titan_heal);
511
        if (endingtimer == 160)
512
        {
513
            msgsetloc(0, 
It's...
regenerating.Wait for inputClose Message
"It's...&regenerating./%", "obj_titan_enemy_slash_Step_0_gml_617_0"
);
514
            global.typer = 74;
515
            
scr_heroblcon
scr_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");
516
            with (obj_heroralsei)
517
                
scr_shakeobj
scr_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); }
();
518
            
scr_battle_sprite_set
scr_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_looks_down, 0.16666666666666666, 1);
519
        }
520
        if ((button3_p() && endingtimer > 185) || (!i_ex(obj_writer) && endingtimer >= 170))
521
        {
522
            
scr_battle_sprite_reset
scr_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");
523
            
scr_battle_sprite_reset
scr_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");
524
            with (obj_writer)
525
                instance_destroy();
526
            endingcon = 0;
527
            endingtimer = 0;
528
            talked = 1;
529
            talktimer = 0;
530
            phaseturn = 1;
531
            phase = 7;
532
            with (obj_battlecontroller)
533
                
scr_mnendturn
scr_mnendturn

function
scr_mnendturn()
{ if (global.char[0] == 2) sus = 0; if (global.char[1] == 2) sus = 1; if (global.char[2] == 2) sus = 2; techwon = 0; if (
scr_monsterpop() == 0)
techwon = 1; if (global.flag[39 dojo_abort?] == 1) techwon = 1; if (techwon == 1)
scr_wincombat();
if (techwon == 0) { with (obj_battlecontroller) { messagepriority = -1; attackpriority = -1; }
scr_battlecursor_memory_reset();
global.mnfight = 0; global.myfight = 0; global.bmenuno = 0; global.charturn = 0; skip = 0; for (i = 0; i < 3; i += 1) { global.hittarget[i] = 0; with (global.charinstance[i]) tu = 0; hptarget = global.char[i]; if (global.chapter == 4 && i_ex(obj_titan_enemy) && obj_titan_enemy.gerson.sprite_index == spr_gerson_item) continue; if (global.char[i] != 0 && global.hp[hptarget] <= 0) { healamt = ceil(global.maxhp[hptarget] / 8); dmgwr = instance_create(global.charinstance[i].x, (global.charinstance[i].y + global.charinstance[i].myheight) - 24, obj_dmgwriter); with (dmgwr) { delay = 1; type = 3; } dmgwr.damage =
scr_heal(i, healamt);
if (global.hp[hptarget] >= 1) { with (dmgwr) specialmessage = 4; } } } if (global.charmove[0] == 0 || global.charauto[global.char[0]] == 1) global.charturn = 1; if (global.charturn == 1) { if (global.charmove[1] == 0 || global.charauto[global.char[1]] == 1) global.charturn = 2; } if (global.charturn == 2) { if (global.charmove[2] == 0 || global.charauto[global.char[2]] == 1) skip = 1; } for (i = 0; i < 3; i += 1) { global.acting[i] = 0; global.actingsingle[i] = 0; global.actingsimul[i] = 0; global.actingtarget[i] = 0; global.temptension[i] = global.tension; global.charspecial[i] = 0; global.targeted[i] = 0; global.charaction[i] = 0; global.faceaction[i] = 0; global.monsterattackname[i] = " "; } global.currentactingchar = 0; with (obj_monsterparent) { attacked = 0; talked = 0; acting = 0; actingsus = 0; actingral = 0; actingnoe = 0; } if (skip == 1) { if (global.char[0] == 2 && global.charauto[2] == 1) { global.acting[0] = 1; global.myfight = 3; }
scr_endturn();
} if (disablesusieattack == 1 && global.charturn == 1) global.bmenucoord[0][global.charturn] = 1; for (i = 0; i < 12; i += 1) { ...
();
534
        }
535
    }
536
    if (endingcon == 4)
537
    {
538
        endingtimer++;
539
        if (endingtimer == 1)
540
        {
541
            msgsetloc(0, 
Hey, Ralsei,
how do we
stop it!?Wait for inputClose Message
"Hey, Ralsei,&how do we&stop it!?/%", "obj_titan_enemy_slash_Step_0_gml_649_0"
);
542
            global.typer = 75;
543
            
scr_heroblcon
scr_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");
544
            with (obj_herosusie)
545
                
scr_shakeobj
scr_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); }
();
546
            
scr_battle_sprite_set
scr_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_hurt_lookright, 0, 1);
547
        }
548
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
549
        {
550
            with (obj_writer)
551
                instance_destroy();
552
            endingcon = 6;
553
            endingtimer = 0;
554
        }
555
    }
556
    if (endingcon == 6)
557
    {
558
        endingtimer++;
559
        if (endingtimer == 1)
560
        {
561
            msgsetloc(0, 
I...Wait for inputClose Message
"I.../%", "obj_titan_enemy_slash_Step_0_gml_671_0"
);
562
            global.typer = 74;
563
            
scr_heroblcon
scr_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");
564
            with (obj_heroralsei)
565
                
scr_shakeobj
scr_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); }
();
566
            
scr_battle_sprite_set
scr_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_looks_down, 0.16666666666666666, 1);
567
        }
568
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
569
        {
570
            with (obj_writer)
571
                instance_destroy();
572
            endingcon = 7;
573
            endingtimer = 0;
574
        }
575
    }
576
    if (endingcon == 7)
577
    {
578
        endingtimer++;
579
        if (endingtimer == 1)
580
        {
581
            msgsetloc(0, 
I don't
know...Wait for inputClose Message
"I don't&know.../%", "obj_titan_enemy_slash_Step_0_gml_693_0"
);
582
            global.typer = 74;
583
            
scr_heroblcon
scr_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");
584
        }
585
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
586
        {
587
            
scr_battle_sprite_reset
scr_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");
588
            
scr_battle_sprite_reset
scr_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");
589
            instance_create(x, y, obj_titan_heal);
590
            endingcon = 7.5;
591
            endingtimer = 0;
592
        }
593
    }
594
    if (endingcon == 7.5)
595
    {
596
        endingtimer++;
597
        if (endingtimer >= 160 && !i_ex(obj_writer))
598
        {
599
            phaseturn = 3;
600
            endingcon = 0;
601
            endingtimer = 0;
602
            talked = 1;
603
            talktimer = 0;
604
            with (obj_battlecontroller)
605
                
scr_mnendturn
scr_mnendturn

function
scr_mnendturn()
{ if (global.char[0] == 2) sus = 0; if (global.char[1] == 2) sus = 1; if (global.char[2] == 2) sus = 2; techwon = 0; if (
scr_monsterpop() == 0)
techwon = 1; if (global.flag[39 dojo_abort?] == 1) techwon = 1; if (techwon == 1)
scr_wincombat();
if (techwon == 0) { with (obj_battlecontroller) { messagepriority = -1; attackpriority = -1; }
scr_battlecursor_memory_reset();
global.mnfight = 0; global.myfight = 0; global.bmenuno = 0; global.charturn = 0; skip = 0; for (i = 0; i < 3; i += 1) { global.hittarget[i] = 0; with (global.charinstance[i]) tu = 0; hptarget = global.char[i]; if (global.chapter == 4 && i_ex(obj_titan_enemy) && obj_titan_enemy.gerson.sprite_index == spr_gerson_item) continue; if (global.char[i] != 0 && global.hp[hptarget] <= 0) { healamt = ceil(global.maxhp[hptarget] / 8); dmgwr = instance_create(global.charinstance[i].x, (global.charinstance[i].y + global.charinstance[i].myheight) - 24, obj_dmgwriter); with (dmgwr) { delay = 1; type = 3; } dmgwr.damage =
scr_heal(i, healamt);
if (global.hp[hptarget] >= 1) { with (dmgwr) specialmessage = 4; } } } if (global.charmove[0] == 0 || global.charauto[global.char[0]] == 1) global.charturn = 1; if (global.charturn == 1) { if (global.charmove[1] == 0 || global.charauto[global.char[1]] == 1) global.charturn = 2; } if (global.charturn == 2) { if (global.charmove[2] == 0 || global.charauto[global.char[2]] == 1) skip = 1; } for (i = 0; i < 3; i += 1) { global.acting[i] = 0; global.actingsingle[i] = 0; global.actingsimul[i] = 0; global.actingtarget[i] = 0; global.temptension[i] = global.tension; global.charspecial[i] = 0; global.targeted[i] = 0; global.charaction[i] = 0; global.faceaction[i] = 0; global.monsterattackname[i] = " "; } global.currentactingchar = 0; with (obj_monsterparent) { attacked = 0; talked = 0; acting = 0; actingsus = 0; actingral = 0; actingnoe = 0; } if (skip == 1) { if (global.char[0] == 2 && global.charauto[2] == 1) { global.acting[0] = 1; global.myfight = 3; }
scr_endturn();
} if (disablesusieattack == 1 && global.charturn == 1) global.bmenucoord[0][global.charturn] = 1; for (i = 0; i < 12; i += 1) { ...
();
606
        }
607
    }
608
    if (endingcon == 8)
609
    {
610
        endingtimer++;
611
        if (endingtimer == 1)
612
        {
613
            msgsetloc(0, 
It seems...
it seems we
were only...Wait for inputClose Message
"It seems...&it seems we&were only.../%", "obj_titan_enemy_slash_Step_0_gml_735_0"
);
614
            global.typer = 74;
615
            
scr_heroblcon
scr_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");
616
            with (obj_heroralsei)
617
                
scr_shakeobj
scr_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); }
();
618
            
scr_battle_sprite_set
scr_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_looks_down, 0.16666666666666666, 1);
619
        }
620
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
621
        {
622
            with (obj_writer)
623
                instance_destroy();
624
            endingcon = 9;
625
            endingtimer = 0;
626
        }
627
    }
628
    if (endingcon == 9)
629
    {
630
        endingtimer++;
631
        if (endingtimer == 1)
632
        {
633
            msgsetloc(0, 
... damaging its
outer shell.Wait for inputClose Message
"... damaging its&outer shell./%", "obj_titan_enemy_slash_Step_0_gml_758_0"
);
634
            global.typer = 74;
635
            
scr_heroblcon
scr_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");
636
        }
637
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
638
        {
639
            with (obj_writer)
640
                instance_destroy();
641
            endingcon = 10;
642
            endingtimer = 0;
643
        }
644
    }
645
    if (endingcon == 10)
646
    {
647
        endingtimer++;
648
        if (endingtimer == 1)
649
        {
650
            msgsetloc(0, 
As long as
the inside is
intact...Wait for inputClose Message
"As long as&the inside is&intact.../%", "obj_titan_enemy_slash_Step_0_gml_777_0"
);
651
            global.typer = 74;
652
            
scr_heroblcon
scr_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");
653
        }
654
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
655
        {
656
            with (obj_writer)
657
                instance_destroy();
658
            endingcon = 11;
659
            endingtimer = 0;
660
        }
661
    }
662
    if (endingcon == 11)
663
    {
664
        endingtimer++;
665
        if (endingtimer == 1)
666
        {
667
            msgsetloc(0, 
This battle...
will just keep...Wait for inputClose Message
"This battle...&will just keep.../%", "obj_titan_enemy_slash_Step_0_gml_796_0"
);
668
            global.typer = 74;
669
            
scr_heroblcon
scr_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");
670
        }
671
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
672
        {
673
            with (obj_writer)
674
                instance_destroy();
675
            endingcon = 12;
676
            endingtimer = 0;
677
        }
678
    }
679
    if (endingcon == 12)
680
    {
681
        endingtimer++;
682
        if (endingtimer == 1)
683
        {
684
            msgsetloc(0, 
...Wait for inputClose Message
".../%", "obj_titan_enemy_slash_Step_0_gml_815_0"
);
685
            global.typer = 75;
686
            
scr_heroblcon
scr_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");
687
        }
688
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
689
        {
690
            with (obj_writer)
691
                instance_destroy();
692
            endingcon = 13;
693
            endingtimer = 0;
694
        }
695
    }
696
    if (endingcon == 13)
697
    {
698
        endingtimer++;
699
        if (endingtimer == 1)
700
        {
701
            heal = instance_create(x, y, obj_titan_heal);
702
            heal.notext = true;
703
            heal.strongerheal = true;
704
            heal.healamt = global.monstermaxhp[obj_titan_enemy.myself] * 0.5;
705
            snd_pitch_time(knightmus[1], 0.9, 60);
706
        }
707
        if (endingtimer == 140)
708
        {
709
            drawstate = "undefense";
710
            drawstatetimer = 6;
711
            snd_play(snd_wingflap3);
712
            feathercon = 2;
713
        }
714
        if (endingtimer == 180)
715
        {
716
            msgsetloc(0, 
I suppose...Wait for inputClose Message
"I suppose.../%", "obj_titan_enemy_slash_Step_0_gml_852_0"
);
717
            global.typer = 74;
718
            
scr_heroblcon
scr_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");
719
        }
720
        if ((button3_p() && endingtimer > 195) || (!i_ex(obj_writer) && endingtimer >= 180))
721
        {
722
            with (obj_writer)
723
                instance_destroy();
724
            endingcon = 14;
725
            endingtimer = 0;
726
        }
727
    }
728
    if (endingcon == 14)
729
    {
730
        endingtimer++;
731
        if (endingtimer == 1)
732
        {
733
            msgsetloc(0, 
We just have to...
keep on fighting.Wait for inputClose Message
"We just have to...&keep on fighting./%", "obj_titan_enemy_slash_Step_0_gml_871_0"
);
734
            global.typer = 74;
735
            
scr_heroblcon
scr_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");
736
        }
737
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
738
        {
739
            with (obj_writer)
740
                instance_destroy();
741
            endingcon = 15;
742
            endingtimer = 0;
743
        }
744
    }
745
    if (endingcon == 15)
746
    {
747
        endingtimer++;
748
        if (endingtimer > 59)
749
        {
750
            endingcon = 16;
751
            endingtimer = 0;
752
        }
753
    }
754
    if (endingcon == 16)
755
    {
756
        endingtimer++;
757
        if (endingtimer == 1)
758
        {
759
            hammer = instance_create(camerax() - 60, cameray() + 210, obj_titan_hammer);
760
            hammer.image_xscale = -2;
761
            hammer.image_yscale = 2;
762
            hammer.image_angle = 180;
763
            hammer.hspeed = 80;
764
        }
765
        if (endingtimer == 8)
766
        {
767
            snd_free_all();
768
            snd_play(snd_punchheavythunder);
769
            drawstate = "crack2";
770
            shakex = 9;
771
            state = 3;
772
            hurttimer = 30;
773
            hammer.hspeed = 0;
774
            
scr_fadein
scr_fadein

function
scr_fadein(arg0)
{ __fadeouter = instance_create(0, 0, obj_fadein); __fadeouter.fadespeed = -1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(10);
775
            with (obj_fadein)
776
            {
777
                image_blend = c_white;
778
                image_alpha = 0.6;
779
                depth = -99999;
780
                x = camerax();
781
                y = cameray();
782
            }
783
            with (bg_fade)
784
                instance_destroy();
785
            with (obj_herokris)
786
                
scr_shakeobj
scr_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); }
();
787
            with (obj_herosusie)
788
            {
789
                x += 25;
790
                
scr_shakeobj
scr_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); }
();
791
            }
792
            with (obj_heroralsei)
793
            {
794
                x += 16;
795
                y += 10;
796
                
scr_shakeobj
scr_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); }
();
797
            }
798
            
scr_battle_sprite_set
scr_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);
799
            
scr_battle_sprite_set
scr_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);
800
            instance_create(x, y, obj_shake);
801
            var _x = camerax() + 500;
802
            var _y = cameray() + 300;
803
            anim = instance_create(_x, _y - 110, obj_animation);
804
            anim.sprite_index = spr_titan_shockwave_bullet_explosion;
805
            anim.image_speed = 0.5;
806
            anim.image_index = 1;
807
            repeat (30)
808
            {
809
                mark = instance_create((_x - 40) + random(80), (_y - 40) + random(80), obj_marker);
810
                mark.sprite_index = spr_gerson_item_throw;
811
                mark.image_blend = merge_color(c_white, c_black, 0.3);
812
                mark.image_speed = 0;
813
                mark.image_index = 3;
814
                mark.gravity = 1;
815
                mark.gravity_direction = 270;
816
                mark.vspeed = -4 - random(18);
817
                mark.hspeed = -6 + random(12);
818
                mark.depth = 10;
819
            }
820
        }
821
        if (endingtimer == 9)
822
            hammer.hspeed = 80;
823
        if (endingtimer == 100)
824
        {
825
            gerson.depth = obj_heroralsei.depth - 2;
826
            msgsetloc(0, 
What're y'all
givin' up for?Wait for inputClose Message
"What're y'all&givin' up for?/%", "obj_titan_enemy_slash_Step_0_gml_966_0"
);
827
            global.typer = 86;
828
            balloon = 
scr_enemyblcon
scr_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; } }
(camerax() + 90, cameray() + 105, 10);
829
            balloon.side = -1;
830
        }
831
        if ((button3_p() && endingtimer > 115) || (!i_ex(obj_writer) && endingtimer > 100))
832
        {
833
            with (obj_writer)
834
                instance_destroy();
835
            endingcon = 17;
836
            endingtimer = 0;
837
            camera_x_original = camerax();
838
        }
839
    }
840
    if (endingcon == 17)
841
    {
842
        endingtimer++;
843
        if (endingtimer < 88)
844
        {
845
            var _ease = lerp(camera_x_original, camera_x_original - 258, 
scr_ease_in
scr_ease_in

function
scr_ease_in(arg0, arg1)
{ if (arg1 < -3 || arg1 > 7) return arg0; switch (arg1) { case -3: return ease_in_bounce(arg0, 0, 1, 1); case -2: return ease_in_elastic(arg0, 0, 1, 1); case -1: var _s = 1.70158; return arg0 * arg0 * (((_s + 1) * arg0) - _s); case 0: return arg0; case 1: return -cos(arg0 * 1.5707963267948966) + 1; case 6: return power(2, 10 * (arg0 - 1)); case 7: return -(sqrt(1 - sqr(arg0)) - 1); default: return power(arg0, arg1); } }
(endingtimer / 87, 5));
846
            camerax_set(_ease);
847
            with (obj_tensionbar)
848
                x = _ease + 38;
849
        }
850
        if (endingtimer == 89)
851
        {
852
            instance_create(x, y, obj_shake);
853
            snd_play(snd_closet_impact);
854
        }
855
        if (endingtimer == 90)
856
        {
857
            with (obj_herokris)
858
            {
859
                image_xscale = -2;
860
                x += 46;
861
            }
862
            with (obj_herosusie)
863
            {
864
                image_xscale = -2;
865
                x += 32;
866
            }
867
            with (obj_heroralsei)
868
            {
869
                image_xscale = -2;
870
                x += 46;
871
            }
872
            msgsetloc(0, 
You're not out
of ideas yet,
are ya?Wait for inputClose Message
"You're not out&of ideas yet,&are ya?/%", "obj_titan_enemy_slash_Step_0_gml_1002_0"
);
873
            global.typer = 86;
874
            balloon = 
scr_enemyblcon
scr_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; } }
(camerax() + 110, cameray() + 120, 10);
875
            balloon.side = 2;
876
            oldmus[0] = snd_init("oldman_helps_out.ogg");
877
            oldmus[1] = mus_loop(oldmus[0]);
878
            mus_volume(oldmus[1], 0, 0);
879
            mus_volume(oldmus[1], 0.8, 30);
880
        }
881
        if ((button3_p() && endingtimer > 105) || (!i_ex(obj_writer) && endingtimer > 90))
882
        {
883
            with (obj_writer)
884
                instance_destroy();
885
            endingcon = 18;
886
            endingtimer = 0;
887
        }
888
    }
889
    if (endingcon == 18)
890
    {
891
        endingtimer++;
892
        if (endingtimer == 1)
893
        {
894
            msgsetloc(0, 
Old... old man!
I thought you
were...Wait for inputClose Message
"Old... old man!&I thought you&were.../%", "obj_titan_enemy_slash_Step_0_gml_1027_0"
);
895
            global.typer = 75;
896
            var heroballoon = 
scr_enemyblcon
scr_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; } }
(obj_herosusie.x + 45, obj_herosusie.y + 40, 10);
897
            heroballoon.side = -1;
898
        }
899
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
900
        {
901
            with (obj_writer)
902
                instance_destroy();
903
            endingcon = 19;
904
            endingtimer = 0;
905
        }
906
    }
907
    if (endingcon == 19)
908
    {
909
        endingtimer++;
910
        if (endingtimer == 1)
911
        {
912
            msgsetloc(0, 
I was lookin'
for a change a'
scenery...Wait for inputClose Message
"I was lookin'&for a change a'&scenery.../%", "obj_titan_enemy_slash_Step_0_gml_1047_0"
);
913
            global.typer = 86;
914
            balloon = 
scr_enemyblcon
scr_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; } }
(camerax() + 110, cameray() + 120, 10);
915
            balloon.side = 2;
916
        }
917
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
918
        {
919
            with (obj_writer)
920
                instance_destroy();
921
            endingcon = 20;
922
            endingtimer = 0;
923
        }
924
    }
925
    if (endingcon == 20)
926
    {
927
        endingtimer++;
928
        if (endingtimer == 1)
929
        {
930
            msgsetloc(0, 
But this is a
bit ridiculous.Wait for inputClose Message
"But this is a&bit ridiculous./%", "obj_titan_enemy_slash_Step_0_gml_1067_0"
);
931
            global.typer = 86;
932
            balloon = 
scr_enemyblcon
scr_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; } }
(camerax() + 110, cameray() + 140, 10);
933
            balloon.side = 2;
934
        }
935
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
936
        {
937
            with (obj_writer)
938
                instance_destroy();
939
            endingcon = 21;
940
            endingtimer = 0;
941
        }
942
    }
943
    if (endingcon == 21)
944
    {
945
        endingtimer++;
946
        if (endingtimer == 1)
947
        {
948
            gerson.sprite_index = spr_gerson_pose2;
949
            gerson.image_speed = 1/3;
950
        }
951
        if (endingtimer == 16)
952
        {
953
            gerson.image_speed = 0;
954
            endingcon = 21.5;
955
            endingtimer = 0;
956
        }
957
    }
958
    if (endingcon == 21.5)
959
    {
960
        endingtimer++;
961
        if (endingtimer == 1)
962
        {
963
            msgsetloc(0, 
C'mon, let's
get this fellow!Wait for inputClose Message
"C'mon, let's&get this fellow!/%", "obj_titan_enemy_slash_Step_0_gml_1106_0"
);
964
            global.typer = 86;
965
            balloon = 
scr_enemyblcon
scr_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; } }
(camerax() + 110, cameray() + 140, 10);
966
            balloon.side = 2;
967
        }
968
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
969
        {
970
            with (obj_writer)
971
                instance_destroy();
972
            endingcon = 22;
973
            endingtimer = 0;
974
        }
975
    }
976
    if (endingcon == 22)
977
    {
978
        endingtimer++;
979
        if (endingtimer == 1)
980
        {
981
            msgsetloc(0, 
... yeah!Wait for inputClose Message
"... yeah!/%", "obj_titan_enemy_slash_Step_0_gml_1126_0"
);
982
            global.typer = 75;
983
            var heroballoon = 
scr_enemyblcon
scr_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; } }
(obj_herosusie.x + 65, obj_herosusie.y + 40, 10);
984
            heroballoon.side = -1;
985
            
scr_battle_sprite_reset
scr_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");
986
            
scr_battle_sprite_reset
scr_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");
987
        }
988
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
989
        {
990
            with (obj_writer)
991
                instance_destroy();
992
            endingcon = 22.5;
993
            endingtimer = 0;
994
        }
995
    }
996
    if (endingcon == 22.5)
997
    {
998
        if (endingtimer == 0)
999
        {
1000
            with (gerson)
1001
            {
1002
                sprite_index = spr_gerson_idle;
1003
                image_xscale = -2;
1004
                x += 100;
1005
                xstart += 100;
1006
            }
1007
        }
1008
        if (endingtimer < 30)
1009
        {
1010
            camerax_set(camerax() + 8.7);
1011
            with (obj_tensionbar)
1012
                x += 8.7;
1013
            gerson.x = lerp(gerson.xstart, gerson.xstart + 120 + 9, endingtimer / 30);
1014
            gerson.y = lerp(gerson.ystart, gerson.ystart + 55, endingtimer / 30);
1015
        }
1016
        if (endingtimer == 30)
1017
        {
1018
            gerson.sprite_index = spr_gerson_idle;
1019
            camerax_set(camerastartx);
1020
            with (obj_herokris)
1021
            {
1022
                image_xscale = 2;
1023
                x = xstart;
1024
                y = ystart;
1025
            }
1026
            with (obj_herosusie)
1027
            {
1028
                image_xscale = 2;
1029
                x = xstart;
1030
                y = ystart;
1031
            }
1032
            with (obj_heroralsei)
1033
            {
1034
                image_xscale = 2;
1035
                x = xstart;
1036
                y = ystart;
1037
            }
1038
            gerson.xstart = gerson.x;
1039
            gerson.ystart = gerson.y;
1040
            talked = 1;
1041
            talktimer = 0;
1042
            endingtimer = 0;
1043
            endingcon = 0;
1044
            global.canact[myself][0] = 1;
1045
            global.actname[myself][0] = stringsetloc(
DualBuster
"DualBuster", "obj_titan_enemy_slash_Step_0_gml_1207_0"
);
1046
            if (global.lang == "en")
1047
                global.actname[myself][0] = "        " + global.actname[myself][0];
1048
            if (global.lang == "ja")
1049
                global.actname[myself][0] = "    " + global.actname[myself][0];
1050
            global.actactor[myself][0] = 2;
1051
            global.actdesc[myself][0] = stringsetloc(
Double#magic
"Double#magic", "obj_titan_enemy_slash_Step_0_gml_1209_0"
);
1052
            global.canact[myself][1] = 0;
1053
            global.actname[myself][1] = "";
1054
            global.actactor[myself][1] = 0;
1055
            global.canact[myself][2] = 0;
1056
            global.actname[myself][2] = "";
1057
            global.actactor[myself][2] = 0;
1058
            global.canact[myself][3] = 0;
1059
            global.actname[myself][3] = "";
1060
            global.actactor[myself][3] = 0;
1061
            
scr_spellmenu_setup
scr_spellmenu_setup

function
scr_spellmenu_setup()
{ var __actnamecheck = 0; var __monstertype = global.monstertype[0]; for (__i = 1; __i < 3; __i++) { if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype) __actnamecheck = 1; } for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 6; __fj++) { global.battlespell[__i][__fj] = 0; if (global.char[__i] == 1) { if (global.canact[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcost[0][__fj]; global.battlespellname[__i][__fj] = global.actname[0][__fj]; global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj]; global.battlespelltarget[__i][__fj] = 0; global.battlespellspecial[__i][__fj] = 1; } } if (global.char[__i] == 2) { if (global.canactsus[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj]; global.battlespellname[__i][__fj] = global.actnamesus[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
S-Action
"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0"
);
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 2; } } if (global.char[__i] == 3) { if (global.canactral[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostral[0][__fj]; global.battlespellname[__i][__fj] = global.actnameral[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
R-Action
"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0"
);
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 3; } } if (global.char[__i] == 4) { if (global.canactnoe[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj]; global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
N-Action
"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0"
);
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 4; } } } }
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 12; __fj++) { __ib = global.battleactcount[__i] + __fj; global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj]; global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj]; global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj]; global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj]; global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj]; } } }
();
1062
            dualbusterenabled = true;
1063
            forcehitralsei = 1;
1064
            phase = 8;
1065
            with (obj_battlecontroller)
1066
                
scr_mnendturn
scr_mnendturn

function
scr_mnendturn()
{ if (global.char[0] == 2) sus = 0; if (global.char[1] == 2) sus = 1; if (global.char[2] == 2) sus = 2; techwon = 0; if (
scr_monsterpop() == 0)
techwon = 1; if (global.flag[39 dojo_abort?] == 1) techwon = 1; if (techwon == 1)
scr_wincombat();
if (techwon == 0) { with (obj_battlecontroller) { messagepriority = -1; attackpriority = -1; }
scr_battlecursor_memory_reset();
global.mnfight = 0; global.myfight = 0; global.bmenuno = 0; global.charturn = 0; skip = 0; for (i = 0; i < 3; i += 1) { global.hittarget[i] = 0; with (global.charinstance[i]) tu = 0; hptarget = global.char[i]; if (global.chapter == 4 && i_ex(obj_titan_enemy) && obj_titan_enemy.gerson.sprite_index == spr_gerson_item) continue; if (global.char[i] != 0 && global.hp[hptarget] <= 0) { healamt = ceil(global.maxhp[hptarget] / 8); dmgwr = instance_create(global.charinstance[i].x, (global.charinstance[i].y + global.charinstance[i].myheight) - 24, obj_dmgwriter); with (dmgwr) { delay = 1; type = 3; } dmgwr.damage =
scr_heal(i, healamt);
if (global.hp[hptarget] >= 1) { with (dmgwr) specialmessage = 4; } } } if (global.charmove[0] == 0 || global.charauto[global.char[0]] == 1) global.charturn = 1; if (global.charturn == 1) { if (global.charmove[1] == 0 || global.charauto[global.char[1]] == 1) global.charturn = 2; } if (global.charturn == 2) { if (global.charmove[2] == 0 || global.charauto[global.char[2]] == 1) skip = 1; } for (i = 0; i < 3; i += 1) { global.acting[i] = 0; global.actingsingle[i] = 0; global.actingsimul[i] = 0; global.actingtarget[i] = 0; global.temptension[i] = global.tension; global.charspecial[i] = 0; global.targeted[i] = 0; global.charaction[i] = 0; global.faceaction[i] = 0; global.monsterattackname[i] = " "; } global.currentactingchar = 0; with (obj_monsterparent) { attacked = 0; talked = 0; acting = 0; actingsus = 0; actingral = 0; actingnoe = 0; } if (skip == 1) { if (global.char[0] == 2 && global.charauto[2] == 1) { global.acting[0] = 1; global.myfight = 3; }
scr_endturn();
} if (disablesusieattack == 1 && global.charturn == 1) global.bmenucoord[0][global.charturn] = 1; for (i = 0; i < 12; i += 1) { ...
();
1067
            global.battlemsg[0] = newact_str;
1068
            myattackchoice = 15;
1069
            difficulty = 0;
1070
        }
1071
        endingtimer++;
1072
    }
1073
    if (endingcon == 23)
1074
    {
1075
        endingtimer++;
1076
        if (endingtimer == 20)
1077
        {
1078
            msgsetloc(0, 
Geheh,
not bad!Wait for inputClose Message
"Geheh,&not bad!/%", "obj_titan_enemy_slash_Step_0_gml_1244_0"
);
1079
            global.typer = 86;
1080
            balloon = 
scr_enemyblcon
scr_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; } }
(camerax() + 20, cameray() + 190, 10);
1081
            balloon.side = 2;
1082
            myattackchoice = 4;
1083
            difficulty = 0;
1084
        }
1085
        if ((button3_p() && endingtimer > 35) || (!i_ex(obj_writer) && endingtimer > 20))
1086
        {
1087
            with (obj_writer)
1088
                instance_destroy();
1089
            endingcon = 24;
1090
            endingtimer = 0;
1091
        }
1092
    }
1093
    if (endingcon == 24)
1094
    {
1095
        endingtimer++;
1096
        if (endingtimer == 1)
1097
        {
1098
            msgsetloc(0, 
Heheh,
right?Wait for inputClose Message
"Heheh,&right?/%", "obj_titan_enemy_slash_Step_0_gml_1264_0"
);
1099
            global.typer = 75;
1100
            
scr_heroblcon
scr_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");
1101
        }
1102
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1103
        {
1104
            with (obj_writer)
1105
                instance_destroy();
1106
            endingcon = 25;
1107
            endingtimer = 0;
1108
        }
1109
    }
1110
    if (endingcon == 25)
1111
    {
1112
        endingtimer++;
1113
        if (endingtimer == 1)
1114
        {
1115
            msgsetloc(0, 
... still, we've
only harmed
the outside..Wait for inputClose Message
"... still, we've&only harmed&the outside../%", "obj_titan_enemy_slash_Step_0_gml_1283_0"
);
1116
            global.typer = 75;
1117
            
scr_heroblcon
scr_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");
1118
        }
1119
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1120
        {
1121
            with (obj_writer)
1122
                instance_destroy();
1123
            endingcon = 26;
1124
            endingtimer = 0;
1125
        }
1126
    }
1127
    if (endingcon == 26)
1128
    {
1129
        endingtimer++;
1130
        if (endingtimer == 1)
1131
        {
1132
            msgsetloc(0, 
Then ya
know what
to do,
right?Wait for inputClose Message
"Then ya&know what&to do,&right?/%", "obj_titan_enemy_slash_Step_0_gml_1302_0"
);
1133
            global.typer = 86;
1134
            balloon = 
scr_enemyblcon
scr_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; } }
(camerax() + 20, cameray() + 150, 10);
1135
            balloon.side = 2;
1136
        }
1137
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1138
        {
1139
            with (obj_writer)
1140
                instance_destroy();
1141
            endingcon = 27;
1142
            endingtimer = 0;
1143
        }
1144
    }
1145
    if (endingcon == 27)
1146
    {
1147
        endingtimer++;
1148
        if (endingtimer == 1)
1149
        {
1150
            msgsetloc(0, 
...Wait for inputClose Message
".../%", "obj_titan_enemy_slash_Step_0_gml_1323_0"
);
1151
            global.typer = 75;
1152
            
scr_heroblcon
scr_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");
1153
        }
1154
        if ((button3_p() && endingtimer > 16) || (!i_ex(obj_writer) && endingtimer > 1))
1155
        {
1156
            with (obj_writer)
1157
                instance_destroy();
1158
            endingcon = 0;
1159
            endingtimer = 0;
1160
            afterdualbusterused = true;
1161
            with (obj_battlecontroller)
1162
                
scr_mnendturn
scr_mnendturn

function
scr_mnendturn()
{ if (global.char[0] == 2) sus = 0; if (global.char[1] == 2) sus = 1; if (global.char[2] == 2) sus = 2; techwon = 0; if (
scr_monsterpop() == 0)
techwon = 1; if (global.flag[39 dojo_abort?] == 1) techwon = 1; if (techwon == 1)
scr_wincombat();
if (techwon == 0) { with (obj_battlecontroller) { messagepriority = -1; attackpriority = -1; }
scr_battlecursor_memory_reset();
global.mnfight = 0; global.myfight = 0; global.bmenuno = 0; global.charturn = 0; skip = 0; for (i = 0; i < 3; i += 1) { global.hittarget[i] = 0; with (global.charinstance[i]) tu = 0; hptarget = global.char[i]; if (global.chapter == 4 && i_ex(obj_titan_enemy) && obj_titan_enemy.gerson.sprite_index == spr_gerson_item) continue; if (global.char[i] != 0 && global.hp[hptarget] <= 0) { healamt = ceil(global.maxhp[hptarget] / 8); dmgwr = instance_create(global.charinstance[i].x, (global.charinstance[i].y + global.charinstance[i].myheight) - 24, obj_dmgwriter); with (dmgwr) { delay = 1; type = 3; } dmgwr.damage =
scr_heal(i, healamt);
if (global.hp[hptarget] >= 1) { with (dmgwr) specialmessage = 4; } } } if (global.charmove[0] == 0 || global.charauto[global.char[0]] == 1) global.charturn = 1; if (global.charturn == 1) { if (global.charmove[1] == 0 || global.charauto[global.char[1]] == 1) global.charturn = 2; } if (global.charturn == 2) { if (global.charmove[2] == 0 || global.charauto[global.char[2]] == 1) skip = 1; } for (i = 0; i < 3; i += 1) { global.acting[i] = 0; global.actingsingle[i] = 0; global.actingsimul[i] = 0; global.actingtarget[i] = 0; global.temptension[i] = global.tension; global.charspecial[i] = 0; global.targeted[i] = 0; global.charaction[i] = 0; global.faceaction[i] = 0; global.monsterattackname[i] = " "; } global.currentactingchar = 0; with (obj_monsterparent) { attacked = 0; talked = 0; acting = 0; actingsus = 0; actingral = 0; actingnoe = 0; } if (skip == 1) { if (global.char[0] == 2 && global.charauto[2] == 1) { global.acting[0] = 1; global.myfight = 3; }
scr_endturn();
} if (disablesusieattack == 1 && global.charturn == 1) global.bmenucoord[0][global.charturn] = 1; for (i = 0; i < 12; i += 1) { ...
();
1163
        }
1164
    }
1165
    if (endingcon == 29)
1166
    {
1167
        endingtimer++;
1168
        if (endingtimer == 1)
1169
        {
1170
            msgsetloc(0, 
Kris! I got
an idea...Wait for inputClose Message
"Kris! I got&an idea.../%", "obj_titan_enemy_slash_Step_0_gml_1346_0"
);
1171
            global.typer = 75;
1172
            
scr_heroblcon
scr_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");
1173
        }
1174
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1175
        {
1176
            with (obj_writer)
1177
                instance_destroy();
1178
            endingcon = 30;
1179
            endingtimer = 0;
1180
        }
1181
    }
1182
    if (endingcon == 30)
1183
    {
1184
        endingtimer++;
1185
        if (endingtimer == 1)
1186
        {
1187
            msgsetloc(0, 
But, uh...Wait for inputClose Message
"But, uh.../%", "obj_titan_enemy_slash_Step_0_gml_1365_0"
);
1188
            global.typer = 75;
1189
            
scr_heroblcon
scr_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");
1190
        }
1191
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1192
        {
1193
            with (obj_writer)
1194
                instance_destroy();
1195
            endingcon = 31;
1196
            endingtimer = 0;
1197
        }
1198
    }
1199
    if (endingcon == 31)
1200
    {
1201
        endingtimer++;
1202
        if (endingtimer == 1)
1203
        {
1204
            msgsetloc(0, 
You're gonna
have to put
your life in
my hands.Wait for inputClose Message
"You're gonna&have to put&your life in&my hands./%", "obj_titan_enemy_slash_Step_0_gml_1384_0"
);
1205
            global.typer = 75;
1206
            
scr_heroblcon
scr_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");
1207
        }
1208
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1209
        {
1210
            with (obj_writer)
1211
                instance_destroy();
1212
            endingcon = 32;
1213
            endingtimer = 0;
1214
        }
1215
    }
1216
    if (endingcon == 32)
1217
    {
1218
        endingtimer++;
1219
        if (endingtimer == 1)
1220
        {
1221
            msgsetloc(0, 
... kinda,
literally.Wait for inputClose Message
"... kinda,&literally./%", "obj_titan_enemy_slash_Step_0_gml_1403_0"
);
1222
            global.typer = 75;
1223
            
scr_heroblcon
scr_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");
1224
        }
1225
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1226
        {
1227
            with (obj_writer)
1228
                instance_destroy();
1229
            endingcon = 33;
1230
            endingtimer = 0;
1231
        }
1232
    }
1233
    if (endingcon == 33)
1234
    {
1235
        endingtimer++;
1236
        if (endingtimer == 1)
1237
        {
1238
            msgsetloc(0, 
... damn, what
am I asking for!?Wait for inputClose Message
"... damn, what&am I asking for!?/%", "obj_titan_enemy_slash_Step_0_gml_1422_0"
);
1239
            global.typer = 75;
1240
            
scr_heroblcon
scr_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");
1241
        }
1242
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1243
        {
1244
            with (obj_writer)
1245
                instance_destroy();
1246
            endingcon = 34;
1247
            endingtimer = 0;
1248
            with (obj_herosusie)
1249
            {
1250
                normalsprite = spr_susier_dark;
1251
                idlesprite = spr_susieb_idle;
1252
                defendsprite = spr_susieb_defend;
1253
                hurtsprite = spr_susieb_hurt;
1254
                actreadysprite = spr_susieb_actready;
1255
                actsprite = spr_susieb_act;
1256
                attackreadysprite = spr_susieb_attackready;
1257
                attacksprite = spr_susieb_attack;
1258
                if (global.charweapon[2] == 0)
1259
                {
1260
                    idlesprite = spr_susieb_idle_unarmed;
1261
                    attackreadysprite = spr_susieb_attackready_unarmed;
1262
                    attacksprite = spr_susieb_attack_unarmed;
1263
                }
1264
                itemsprite = spr_susieb_item;
1265
                itemreadysprite = spr_susieb_itemready;
1266
                spellreadysprite = spr_susieb_spellready;
1267
                spellsprite = spr_susieb_spell;
1268
                defeatsprite = spr_susieb_defeat;
1269
            }
1270
        }
1271
    }
1272
    if (endingcon == 34)
1273
    {
1274
        endingtimer++;
1275
        if (endingtimer == 1)
1276
        {
1277
            msgsetloc(0, 
We both know
I got this,
right!?
Let's go!!Wait for inputClose Message
"We both know&I got this,&right!?&Let's go!!/%", "obj_titan_enemy_slash_Step_0_gml_1464_0"
);
1278
            global.typer = 75;
1279
            
scr_heroblcon
scr_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");
1280
        }
1281
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1282
        {
1283
            with (obj_writer)
1284
                instance_destroy();
1285
            endingcon = 0;
1286
            endingtimer = 0;
1287
            talked = 1;
1288
            talktimer = 0;
1289
            susiesideaenabled = true;
1290
            global.canact[myself][0] = 1;
1291
            global.actname[myself][0] = stringsetloc(
Susie's Idea
"Susie's Idea", "obj_titan_enemy_slash_Step_0_gml_1491_0"
);
1292
            global.actactor[myself][0] = 2;
1293
            global.actdesc[myself][0] = "";
1294
            
scr_spellmenu_setup
scr_spellmenu_setup

function
scr_spellmenu_setup()
{ var __actnamecheck = 0; var __monstertype = global.monstertype[0]; for (__i = 1; __i < 3; __i++) { if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype) __actnamecheck = 1; } for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 6; __fj++) { global.battlespell[__i][__fj] = 0; if (global.char[__i] == 1) { if (global.canact[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcost[0][__fj]; global.battlespellname[__i][__fj] = global.actname[0][__fj]; global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj]; global.battlespelltarget[__i][__fj] = 0; global.battlespellspecial[__i][__fj] = 1; } } if (global.char[__i] == 2) { if (global.canactsus[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj]; global.battlespellname[__i][__fj] = global.actnamesus[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
S-Action
"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0"
);
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 2; } } if (global.char[__i] == 3) { if (global.canactral[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostral[0][__fj]; global.battlespellname[__i][__fj] = global.actnameral[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
R-Action
"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0"
);
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 3; } } if (global.char[__i] == 4) { if (global.canactnoe[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj]; global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
N-Action
"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0"
);
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 4; } } } }
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 12; __fj++) { __ib = global.battleactcount[__i] + __fj; global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj]; global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj]; global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj]; global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj]; global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj]; } } }
();
1295
            with (obj_battlecontroller)
1296
                
scr_mnendturn
scr_mnendturn

function
scr_mnendturn()
{ if (global.char[0] == 2) sus = 0; if (global.char[1] == 2) sus = 1; if (global.char[2] == 2) sus = 2; techwon = 0; if (
scr_monsterpop() == 0)
techwon = 1; if (global.flag[39 dojo_abort?] == 1) techwon = 1; if (techwon == 1)
scr_wincombat();
if (techwon == 0) { with (obj_battlecontroller) { messagepriority = -1; attackpriority = -1; }
scr_battlecursor_memory_reset();
global.mnfight = 0; global.myfight = 0; global.bmenuno = 0; global.charturn = 0; skip = 0; for (i = 0; i < 3; i += 1) { global.hittarget[i] = 0; with (global.charinstance[i]) tu = 0; hptarget = global.char[i]; if (global.chapter == 4 && i_ex(obj_titan_enemy) && obj_titan_enemy.gerson.sprite_index == spr_gerson_item) continue; if (global.char[i] != 0 && global.hp[hptarget] <= 0) { healamt = ceil(global.maxhp[hptarget] / 8); dmgwr = instance_create(global.charinstance[i].x, (global.charinstance[i].y + global.charinstance[i].myheight) - 24, obj_dmgwriter); with (dmgwr) { delay = 1; type = 3; } dmgwr.damage =
scr_heal(i, healamt);
if (global.hp[hptarget] >= 1) { with (dmgwr) specialmessage = 4; } } } if (global.charmove[0] == 0 || global.charauto[global.char[0]] == 1) global.charturn = 1; if (global.charturn == 1) { if (global.charmove[1] == 0 || global.charauto[global.char[1]] == 1) global.charturn = 2; } if (global.charturn == 2) { if (global.charmove[2] == 0 || global.charauto[global.char[2]] == 1) skip = 1; } for (i = 0; i < 3; i += 1) { global.acting[i] = 0; global.actingsingle[i] = 0; global.actingsimul[i] = 0; global.actingtarget[i] = 0; global.temptension[i] = global.tension; global.charspecial[i] = 0; global.targeted[i] = 0; global.charaction[i] = 0; global.faceaction[i] = 0; global.monsterattackname[i] = " "; } global.currentactingchar = 0; with (obj_monsterparent) { attacked = 0; talked = 0; acting = 0; actingsus = 0; actingral = 0; actingnoe = 0; } if (skip == 1) { if (global.char[0] == 2 && global.charauto[2] == 1) { global.acting[0] = 1; global.myfight = 3; }
scr_endturn();
} if (disablesusieattack == 1 && global.charturn == 1) global.bmenucoord[0][global.charturn] = 1; for (i = 0; i < 12; i += 1) { ...
();
1297
            global.battlemsg[0] = newact_str;
1298
        }
1299
    }
1300
}
1301
if (global.myfight == 3)
1302
{
1303
    gersoncastanim = false;
1304
    if (acting == 1 && actcon == 0 && !dualbusterenabled && !susiesideaenabled)
1305
    {
1306
        actcon = 1;
1307
        if ((unleashed && drawstate != "defense end" && drawstate != "defense" && starshootcon > 0) || obj_titan_enemy.drawstate == "crack")
1308
        {
1309
            checkcount++;
1310
            if (checkcount == 1)
1311
            {
1312
                msgsetloc(0, 
* TITAN - AT 40 DF 0
* The fear of dark, which appears in many forms.Wait for input
"* TITAN - AT 40 DF 0&* The fear of dark, which appears in many forms./", "obj_titan_enemy_slash_Step_0_gml_1525_0"
);
1313
                
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("ralsei", 27);
1314
                msgnextloc(
Face Z* Kris!! What are you doing!? Attack!!Wait for input
"\\EZ* Kris!! What are you doing!? Attack!!/", "obj_titan_enemy_slash_Step_0_gml_1527_0"
);
1315
                msgnextloc(
Face Z* I'm... I'm sorry, but this is serious...!Wait for inputClose Message
"\\EZ* I'm... I'm sorry, but this is serious...!/%", "obj_titan_enemy_slash_Step_0_gml_1528_0"
);
1316
            }
1317
            else
1318
            {
1319
                msgsetloc(0, 
* You wasted time looking at the Titan.Wait for inputClose Message
"* You wasted time looking at the Titan./%", "obj_titan_enemy_slash_Step_0_gml_1532_0"
);
1320
            }
1321
        }
1322
        else if (phase > 6)
1323
        {
1324
            msgsetloc(0, 
* TITAN - It seems capable of regenerating if not fatally woundedWait for inputClose Message
"* TITAN - It seems capable of regenerating if not fatally wounded/%", "obj_titan_enemy_slash_Step_0_gml_1550_0"
);
1325
        }
1326
        else
1327
        {
1328
            msgsetloc(0, 
* TITAN - AT 40 DF 800
* The fear of dark, which appears in many forms.Wait for input
"* TITAN - AT 40 DF 800&* The fear of dark, which appears in many forms./", "obj_titan_enemy_slash_Step_0_gml_1537_0"
);
1329
            if (global.tension >= 200)
1330
            {
1331
                msgnextloc(
* The atmosphere feels tense...
* (You can use UNLEASH!)Wait for inputClose Message
"* The atmosphere feels tense...&* (You can use UNLEASH!)/%", "obj_titan_enemy_slash_Step_0_gml_1544_0"
);
1332
            }
1333
            else
1334
            {
1335
                msgnextloc(
* Use ACTS to survive...
* Expose darkness to LIGHT... and gather COURAGE to gain TP.Wait for input
"* Use ACTS to survive...&* Expose darkness to LIGHT... and gather COURAGE to gain TP./", "obj_titan_enemy_slash_Step_0_gml_1538_0"
);
1336
                msgnextloc(
* Then, use "UNLEASH" to reveal the WEAK POINT!Wait for inputClose Message
"* Then, use \"\\cYUNLEASH\\c0\" to reveal the WEAK POINT!/%", "obj_titan_enemy_slash_Step_0_gml_1539_0"
);
1337
            }
1338
        }
1339
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
1340
    }
1341
    if (acting == 1 && actcon == 0 && dualbusterenabled && !susiesideaenabled)
1342
    {
1343
        acting = 1.11;
1344
        dualbusterused = true;
1345
        msgsetloc(0, 
* Your SOUL shone on the Old Man and Susie!Wait for inputClose Message
"* Your SOUL shone on the Old Man and Susie!/%", "obj_titan_enemy_slash_Step_0_gml_1549_0"
);
1346
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
1347
        with (obj_titan_gerson_marker)
1348
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1349
        with (obj_herosusie)
1350
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1351
        with (obj_herokris)
1352
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1353
        snd_play(snd_boost);
1354
        global.faceaction[1] = 2;
1355
        heartanim = instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_animation);
1356
        with (heartanim)
1357
        {
1358
            depth = -20;
1359
            image_index = 0;
1360
            image_xscale = 2;
1361
            image_yscale = 2;
1362
            image_speed = 1;
1363
            sprite_index = spr_soulshining;
1364
        }
1365
    }
1366
    if (acting == 1.11 && actcon == 0 && !i_ex(obj_writer))
1367
    {
1368
        attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim);
1369
        attack.damage = 1450 + irandom(100);
1370
        attack.star = 0;
1371
        attack.caster = 1;
1372
        attack.target = global.monsterinstance[0];
1373
        attack.dualbuster = true;
1374
        attack.sprite_index = spr_susie_dualbuster;
1375
        
scr_battle_sprite_reset
scr_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");
1376
        acting = 1.12;
1377
    }
1378
    if (acting == 1.12 && actcon == 0)
1379
    {
1380
        endingtimer++;
1381
        if (endingtimer >= 90)
1382
        {
1383
            global.battlemsg[0] = newact_str;
1384
            acting = 0;
1385
            actcon = 1;
1386
            endingtimer = 0;
1387
            myattackchoice = 15;
1388
        }
1389
    }
1390
    if (acting == 1 && actcon == 0 && susiesideaenabled)
1391
    {
1392
        msgsetsubloc(0, "* Press ~1 to throw!", 
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(4), "obj_titan_enemy_slash_Step_0_gml_1600_0");
1393
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
1394
        with (obj_herokris)
1395
            visible = 0;
1396
        with (obj_herosusie)
1397
            visible = 0;
1398
        throwsus = instance_create(obj_herosusie.x, obj_herosusie.y, obj_titan_throwkris);
1399
        acting = 1.21;
1400
        endingtimer = 0;
1401
        snd_play(snd_grab);
1402
    }
1403
    else if (acting == 1.21 && actcon == 0)
1404
    {
1405
        endingtimer++;
1406
        if (button1_p() && endingtimer >= 15)
1407
        {
1408
            with (obj_writer)
1409
                instance_destroy();
1410
            with (obj_titan_throwkris)
1411
                instance_destroy();
1412
            with (obj_herosusie)
1413
                visible = 1;
1414
            
scr_battle_sprite_set
scr_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_susiekris_walking, 0, 0);
1415
            obj_herosusie.x += 14;
1416
            obj_herosusie.y -= 40;
1417
            snd_free_all();
1418
            snd_play_x(snd_grab, 1, 0.7);
1419
            msgsetloc(0, 
... Nah screw it!Wait for inputClose Message
"... Nah screw it!/%", "obj_titan_enemy_slash_Step_0_gml_1627_0"
);
1420
            global.typer = 75;
1421
            
scr_heroblcon
scr_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");
1422
            acting = 1.22;
1423
            endingtimer = 0;
1424
        }
1425
    }
1426
    else if (acting == 1.22 && actcon == 0)
1427
    {
1428
        endingtimer++;
1429
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1430
        {
1431
            with (obj_writer)
1432
                instance_destroy();
1433
            msgsetloc(0, 
Get dunked on!!!Wait for inputClose Message
"Get dunked on!!!/%", "obj_titan_enemy_slash_Step_0_gml_1643_0"
);
1434
            global.typer = 75;
1435
            
scr_heroblcon
scr_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");
1436
            acting = 1.23;
1437
            endingtimer = 0;
1438
        }
1439
    }
1440
    if (acting == 1.23 && actcon == 0)
1441
    {
1442
        endingtimer++;
1443
        if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
1444
        {
1445
            with (obj_writer)
1446
                instance_destroy();
1447
            acting = 1.24;
1448
            endingtimer = 0;
1449
        }
1450
    }
1451
    if (acting == 1.24 && actcon == 0)
1452
    {
1453
        endingtimer++;
1454
        if (endingtimer == 1)
1455
        {
1456
            snd_play(snd_cymbal_reverse);
1457
            
scr_battle_sprite_set
scr_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_susiekris_Jump_ready, 0, 0);
1458
            obj_herosusie.hspeed = 0;
1459
            obj_herosusie.x -= 8;
1460
            obj_herosusie.y -= 6;
1461
        }
1462
        if (endingtimer == 14)
1463
        {
1464
        }
1465
        if (endingtimer == 24)
1466
        {
1467
            slowdowncon = 1;
1468
            snd_play_x(snd_jump, 0.7, 0.8);
1469
            instance_create_depth(obj_herosusie.x, obj_herosusie.y, obj_heroralsei.depth + 1, obj_titan_susiekris_jump);
1470
            with (obj_herosusie)
1471
                x -= 10000;
1472
            instance_create(camerax() - 200, cameray() - 200, obj_titan_end_black_fade);
1473
        }
1474
        if (endingtimer == 61)
1475
        {
1476
            __fadeouter = instance_create(camerax() + 40, cameray() - 200, obj_fadeout);
1477
            __fadeouter.fadespeed = 0.015;
1478
            __fadeouter.depth = -9999998;
1479
            __fadeouter.image_blend = c_white;
1480
            __fadeouter.length = 99999;
1481
            mus_volume(oldmus[1], 0, 100);
1482
            snd_pitch_time(oldmus[1], 0.5, 200);
1483
            acting = 1.25;
1484
            endingtimer = 0;
1485
            with (obj_border_controller)
1486
                hide_border(0.025);
1487
        }
1488
    }
1489
    if (acting == 1.25 && actcon == 0)
1490
    {
1491
        endingtimer++;
1492
        if (endingtimer == 100)
1493
        {
1494
            __fadeouter = instance_create(camerax() + 40, cameray() - 200, obj_fadeout);
1495
            __fadeouter.fadespeed = 0.01;
1496
            __fadeouter.depth = -9999999;
1497
            __fadeouter.image_blend = c_black;
1498
            __fadeouter.length = 99999;
1499
        }
1500
        if (endingtimer == 210)
1501
        {
1502
            
scr_losechar
scr_losechar

function
scr_losechar()
{ global.char[2] = 0; global.char[1] = 0; with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } global.submenu = 0; global.charselect = -1; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; }
();
1503
            room_goto(room_dw_churchc_insidetitan);
1504
        }
1505
    }
1506
    if (acting == 2 && actcon == 0)
1507
    {
1508
        actcon = 1;
1509
        msgsetloc(0, 
* Your SOUL shone brighter!Wait for inputClose Message
"* Your SOUL shone brighter!/%", "obj_titan_enemy_slash_Step_0_gml_1734_0"
);
1510
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
1511
        brighten = 1;
1512
        light_radius = 63;
1513
        with (obj_heroralsei)
1514
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1515
        with (obj_herosusie)
1516
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1517
        with (obj_herokris)
1518
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1519
        snd_play(snd_boost);
1520
        heartanim = instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_animation);
1521
        with (heartanim)
1522
        {
1523
            depth = -20;
1524
            image_index = 0;
1525
            image_xscale = 2;
1526
            image_yscale = 2;
1527
            image_speed = 1;
1528
            sprite_index = spr_soulshining;
1529
        }
1530
    }
1531
    if (acting == 3 && actcon == 0)
1532
    {
1533
        msgsetloc(0, 
* Your SOUL shined its power on RALSEI and SUSIE!Wait for inputClose Message
"* Your SOUL shined its power on RALSEI and SUSIE!/%", "obj_titan_enemy_slash_Step_0_gml_1759_0"
);
1534
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
1535
        acting = 20;
1536
        acttimer = 0;
1537
    }
1538
    if (acting == 20)
1539
    {
1540
        acttimer += 1;
1541
        if (acttimer >= 10 || !instance_exists(obj_writer))
1542
        {
1543
            acttimer = 0;
1544
            acting = 21;
1545
        }
1546
    }
1547
    if (acting == 21)
1548
    {
1549
        
scr_battle_sprite_set
scr_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_heal_charge, 1/3, 0);
1550
        with (obj_herosusie)
1551
        {
1552
            x -= 28;
1553
            y -= 25;
1554
        }
1555
        global.faceaction[1] = 2;
1556
        global.faceaction[2] = 2;
1557
        global.charaction[2] = 2;
1558
        global.charspecial[2] = 6;
1559
        global.chartarget[2] = 0;
1560
        global.acting[2] = 0;
1561
        snd_play(snd_boost);
1562
        heartanim = instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_animation);
1563
        with (heartanim)
1564
        {
1565
            depth = -20;
1566
            image_index = 0;
1567
            image_xscale = 2;
1568
            image_yscale = 2;
1569
            image_speed = 1;
1570
            sprite_index = spr_soulshining;
1571
        }
1572
        with (obj_heroralsei)
1573
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1574
        with (obj_herosusie)
1575
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1576
        with (obj_herokris)
1577
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1578
        acting = 22;
1579
    }
1580
    if (acting == 22)
1581
    {
1582
        acttimer += 1;
1583
        if (acttimer >= 20)
1584
        {
1585
            with (obj_heroralsei)
1586
                state = 0;
1587
            
scr_battle_sprite_set
scr_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_heal_charge_loop, 1/3, 1);
1588
            global.faceaction[1] = 2;
1589
            actcon = 1;
1590
            dualhealcon = 1;
1591
        }
1592
    }
1593
    if (acting == 4 && actcon == 0)
1594
    {
1595
        if (unleashed)
1596
        {
1597
            var str5 = stringsetloc(
Face Z* Kris!! What are you doing!? Attack!!Wait for input
"\\EZ* Kris!! What are you doing!? Attack!!/", "obj_titan_enemy_slash_Step_0_gml_1527_0"
);
1598
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
1599
            msgset(0, str5 + "%");
1600
            
scr_battletext
scr_battletext

function
scr_battletext()
{ xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); if (global.fc != 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.fc == 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); myface = instance_create(xx + 26, yy + 380, obj_face); with (battlewriter) { dialoguer = 1; facer = 1; if (global.fc == 0 && originalcharline == 33) charline = 26; } return battlewriter; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
();
1601
            acting = 0;
1602
            actcon = 1;
1603
        }
1604
        else
1605
        {
1606
            msgsetloc(0, 
* Your SOUL emitted a brilliant light!Wait for inputClose Message
"* Your SOUL emitted a brilliant light!/%", "obj_titan_enemy_slash_Step_0_gml_1817_0"
);
1607
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
1608
            acting = 4.1;
1609
            turnswithoutunleash = 0;
1610
            tensionscaling = 1;
1611
            justusedunleash = true;
1612
            unleashcount++;
1613
        }
1614
    }
1615
    if (acting == 4.1 && actcon == 0 && !i_ex(obj_writer))
1616
    {
1617
        acting = 4.2;
1618
        with (obj_herokris)
1619
            
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
1620
        instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_purify_event);
1621
    }
1622
    if (acting == 4.2 && actcon == 0 && !i_ex(obj_purify_event))
1623
    {
1624
        unleashed = true;
1625
        if (phase == 1)
1626
        {
1627
            phase = 2;
1628
        }
1629
        else if (phase == 2)
1630
        {
1631
            phase = 4;
1632
        }
1633
        else if (phase == 3)
1634
        {
1635
            phase = 4;
1636
        }
1637
        else if (phase == 4)
1638
        {
1639
            phase = 6;
1640
            if (drawstate == "defense" || drawstate == "defense end")
1641
                drawstate = "undefense";
1642
        }
1643
        else if (phase == 5)
1644
        {
1645
            phase = 6;
1646
            if (drawstate == "defense" || drawstate == "defense end")
1647
                drawstate = "undefense";
1648
        }
1649
        else if (phase == 6)
1650
        {
1651
            phase = 6;
1652
            if (drawstate == "defense" || drawstate == "defense end")
1653
                drawstate = "undefense";
1654
        }
1655
        if (phase == 6)
1656
        {
1657
            global.canact[myself][3] = 0;
1658
            global.actname[myself][3] = "";
1659
            global.actactor[myself][3] = 0;
1660
            
scr_spellmenu_setup
scr_spellmenu_setup

function
scr_spellmenu_setup()
{ var __actnamecheck = 0; var __monstertype = global.monstertype[0]; for (__i = 1; __i < 3; __i++) { if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype) __actnamecheck = 1; } for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 6; __fj++) { global.battlespell[__i][__fj] = 0; if (global.char[__i] == 1) { if (global.canact[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcost[0][__fj]; global.battlespellname[__i][__fj] = global.actname[0][__fj]; global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj]; global.battlespelltarget[__i][__fj] = 0; global.battlespellspecial[__i][__fj] = 1; } } if (global.char[__i] == 2) { if (global.canactsus[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj]; global.battlespellname[__i][__fj] = global.actnamesus[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
S-Action
"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0"
);
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 2; } } if (global.char[__i] == 3) { if (global.canactral[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostral[0][__fj]; global.battlespellname[__i][__fj] = global.actnameral[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
R-Action
"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0"
);
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 3; } } if (global.char[__i] == 4) { if (global.canactnoe[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj]; global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
N-Action
"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0"
);
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 4; } } } }
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 12; __fj++) { __ib = global.battleactcount[__i] + __fj; global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj]; global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj]; global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj]; global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj]; global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj]; } } }
();
1661
        }
1662
        phaseturn = 1;
1663
        event_user(0);
1664
        phaseturn = 0;
1665
        acting = 0;
1666
        actcon = 1;
1667
    }
1668
    if (actingsus == 1 && actconsus == 1)
1669
    {
1670
        sactcount++;
1671
        var _str = "";
1672
        if (sactcount > 1)
1673
            _str = "%";
1674
        msgsetsubloc(0, "* Susie used Wake Up!/~1", _str, "obj_titan_enemy_slash_Step_0_gml_1864_0");
1675
        if (sactcount == 1)
1676
            msgnextloc(
* Hey, dumbass! Get up!Wait for inputClose Message
"* Hey, dumbass! Get up!/%", "obj_titan_enemy_slash_Step_0_gml_1865_0"
);
1677
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
1678
        actingsus = 2;
1679
    }
1680
    if (actingsus == 2 && actconsus == 1 && !i_ex(obj_writer))
1681
    {
1682
        
scr_battle_sprite_set
scr_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_attack_unarmed, 1/3, 0);
1683
        snd_play(snd_smallswing);
1684
        snd_play(snd_damage);
1685
        actingsus = 3;
1686
        alarm[4]
 = 15;
gml_Object_obj_titan_enemy_Alarm_4.gml

con += 1;
1687
        attack = instance_create(obj_herokris.x + 30, obj_herokris.y + 40, obj_animation);
1688
        attack.sprite_index = spr_attack_slap1_purple;
1689
        attack.maxindex = 4;
1690
        attack.image_speed = 0.5;
1691
        with (obj_herokris)
1692
            
scr_shakeobj
scr_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); }
();
1693
    }
1694
    if (actingsus == 3 && actconsus == 1 && con == 1)
1695
    {
1696
        
scr_battle_sprite_reset
scr_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");
1697
        if (global.hp[1] <= 0)
1698
        {
1699
            var starthp = global.hp[1];
1700
            star = 0;
1701
            reviveamt = abs(global.hp[1]) + 1;
1702
            
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = arg0; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(reviveamt);
1703
            global.hp[1] = 1;
1704
            with (obj_dmgwriter)
1705
            {
1706
                if (type == 3 && delay == 8)
1707
                    damage = abs(starthp - global.hp[1]);
1708
            }
1709
            actingsus = 0;
1710
            actcon = 1;
1711
        }
1712
        else
1713
        {
1714
            msgsetloc(0, 
* (But, Kris wasn't DOWNed...)Wait for inputClose Message
"* (But, Kris wasn't DOWNed...)/%", "obj_titan_enemy_slash_Step_0_gml_1904_0"
);
1715
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
1716
            actingsus = 4;
1717
        }
1718
    }
1719
    if (actingsus == 4 && actconsus == 1 && !i_ex(obj_writer))
1720
    {
1721
        actingsus = 0;
1722
        actcon = 1;
1723
    }
1724
    if (actingral == 1 && actconral == 1)
1725
    {
1726
        ractcount++;
1727
        msgsetloc(0, 
* Ralsei used Reviver!Wait for inputClose Message
"* Ralsei used Reviver!/%", "obj_titan_enemy_slash_Step_0_gml_1919_0"
);
1728
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
1729
        actingral = 2;
1730
    }
1731
    if (actingral == 2 && actconral == 1 && !i_ex(obj_writer))
1732
    {
1733
        
scr_battle_sprite_set
scr_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_spell, 0.5, 0);
1734
        actingral = 2.5;
1735
        instance_create(obj_herokris.x, obj_herokris.y, obj_ralsei_cherub);
1736
    }
1737
    if (actingral == 2.5)
1738
    {
1739
        racttimer++;
1740
        if (racttimer == 58)
1741
        {
1742
            racttimer = 0;
1743
            actingral = 3;
1744
        }
1745
    }
1746
    if (actingral == 3 && actconral == 1)
1747
    {
1748
        var starthp = global.hp[1];
1749
        star = 0;
1750
        reviveamt = ceil(global.maxhp[1]) + abs(ceil(global.maxhp[1] / 3));
1751
        ha = 
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr =
scr_dmgwriter_selfchar();
with (dmgwr) { delay = 8; type = 3; damage = arg0; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; return ha; } }
(reviveamt);
1752
        if (starthp <= 0)
1753
            global.hp[1] = ceil(global.maxhp[1] / 3);
1754
        else
1755
            global.hp[1] = starthp + ceil(global.maxhp[1] * 0.5);
1756
        if (global.hp[1] > global.maxhp[1])
1757
        {
1758
            global.hp[1] = global.maxhp[1];
1759
            with (obj_dmgwriter)
1760
            {
1761
                if (type == 3 && delay == 8 && mercytimer == 0)
1762
                    specialmessage = 3;
1763
            }
1764
        }
1765
        else
1766
        {
1767
            with (obj_dmgwriter)
1768
            {
1769
                if (type == 3 && delay == 8 && mercytimer == 0)
1770
                    specialmessage = 0;
1771
            }
1772
        }
1773
        with (obj_dmgwriter)
1774
        {
1775
            if (type == 3 && delay == 8 && mercytimer == 0)
1776
                damage = abs(starthp - global.hp[1]);
1777
        }
1778
        actingral = 0;
1779
        actcon = 1;
1780
    }
1781
    if (actcon == 20 || actconsus == 20 || actconral == 20)
1782
    {
1783
        if (
scr_terminate_writer
scr_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; }
())
1784
        {
1785
            actconsus = -1;
1786
            actconral = -1;
1787
            actcon = 1;
1788
        }
1789
    }
1790
    if (actcon == 1 && !instance_exists(obj_writer))
1791
    {
1792
        if (dualhealcon == 1)
1793
            dualhealcon = 2;
1794
        
scr_nextact
scr_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();
} }
();
1795
    }
1796
}
1797
if (dualhealcon == 2)
1798
{
1799
    dealhealtimer++;
1800
    if (dealhealtimer >= 30)
1801
    {
1802
        dealhealtimer = 0;
1803
        dualhealcon = 0;
1804
        
scr_battle_sprite_reset
scr_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");
1805
        obj_herosusie.x = obj_herosusie.xstart;
1806
        obj_herosusie.y = obj_herosusie.ystart;
1807
    }
1808
}
1809
if (state == 3)
1810
{
1811
    
scr_enemy_hurt
scr_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; } } }
();
1812
    if (hurttimer == 29)
1813
    {
1814
        with (obj_border_controller)
1815
            trigger_event("titan_hurt");
1816
    }
1817
}
1818
if (acting == 20 || acting == 21 || acting == 22)
1819
{
1820
}
1821
if (obj_heroralsei.thissprite == spr_ralsei_spell && obj_herosusie.state == 8 && obj_heroralsei.image_index == 3)
1822
    
scr_battle_sprite_set
scr_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_heal_end, 1/3, 0);
1823
if (obj_herosusie.sprite_index == spr_susie_heal_end && obj_herosusie.image_index > 13)
1824
{
1825
    
scr_battle_sprite_reset
scr_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");
1826
    obj_herosusie.x = obj_herosusie.xstart;
1827
    obj_herosusie.y = obj_herosusie.ystart;
1828
}
1829
if (gerson.sprite_index == spr_gerson_rudebuster_ready && global.charturn == 0)
1830
{
1831
    
scr_battle_sprite_reset
scr_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");
1832
    gerson.sprite_index = spr_gerson_idle;
1833
    gerson.image_index = 0;
1834
    gerson.x = camerax() + 108.7;
1835
    gerson.y = cameray() + 253.17;
1836
    gersoncastanim = false;
1837
}
1838
if (gerson.sprite_index == spr_gerson_item && gerson.image_index == 8)
1839
    event_user(1);
1840
if (gerson.sprite_index == spr_gerson_item && gerson.image_index >= 13)
1841
    gerson.sprite_index = spr_gerson_idle;
1842
1843
enum e__VW
1844
{
1845
    XView,
1846
    YView,
1847
    WView,
1848
    HView,
1849
    Angle,
1850
    HBorder,
1851
    VBorder,
1852
    HSpeed,
1853
    VSpeed,
1854
    Object,
1855
    Visible,
1856
    XPort,
1857
    YPort,
1858
    WPort,
1859
    HPort,
1860
    Camera,
1861
    SurfaceID
1862
}