Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_titan_spawn_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (global.monster[myself] == 1)
2
{
3
    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)
4
    {
5
        
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; } }
();
6
        event_user(0);
7
        if (!instance_exists(obj_darkener))
8
            instance_create(0, 0, obj_darkener);
9
        rtimer = 0;
10
        con = 0;
11
        var createballoon = false;
12
        if (createballoon == false)
13
        {
14
            global.mnfight = 1.5;
15
        }
16
        else
17
        {
18
            talked = 1;
19
            talktimer = 0;
20
        }
21
    }
22
    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"))
23
        
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);
24
    if (global.mnfight == 1.5)
25
    {
26
        if (battlecontroller)
27
        {
28
            if (!instance_exists(obj_growtangle))
29
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
30
            if (!instance_exists(obj_moveheart))
31
                
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); }
();
32
            global.mnfight = 2;
33
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
34
        }
35
    }
36
    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)
37
    {
38
        rtimer += 1;
39
        if (rtimer == 12 && !i_ex(obj_dbulletcontroller) && battlecontroller)
40
        {
41
            if (myattackchoice == 0)
42
            {
43
                global.monsterattackname[myself] = "darkshapeswithred";
44
                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);
45
                dc.type = 450;
46
            }
47
            if (myattackchoice == 1)
48
            {
49
                global.monsterattackname[myself] = "darkshapescentipede";
50
                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);
51
                dc.type = 451;
52
            }
53
            if (myattackchoice == 2)
54
            {
55
                global.monsterattackname[myself] = "darkshapesbigshot";
56
                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);
57
                dc.type = 452;
58
            }
59
            if (myattackchoice == 3)
60
            {
61
                global.monsterattackname[myself] = "darkshapesbigshotdesperation";
62
                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);
63
                dc.type = 453;
64
            }
65
            if (myattackchoice == 4)
66
            {
67
                global.monsterattackname[myself] = "darkshapesbigshotaimed";
68
                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);
69
                dc.type = 454;
70
            }
71
            if (myattackchoice == 5)
72
            {
73
                global.monsterattackname[myself] = "darkshapescentipedehard";
74
                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);
75
                dc.type = 455;
76
            }
77
            if (myattackchoice == 6)
78
            {
79
                global.monsterattackname[myself] = "darkshapesintro";
80
                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);
81
                dc.type = 456;
82
            }
83
            if (myattackchoice == 7)
84
            {
85
                global.monsterattackname[myself] = "darkshapescentipedeintro";
86
                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);
87
                dc.type = 457;
88
            }
89
            if (myattackchoice == 8)
90
            {
91
                global.monsterattackname[myself] = "darkshapesmine";
92
                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);
93
                dc.type = 458;
94
            }
95
            if (myattackchoice == 9)
96
            {
97
                global.monsterattackname[myself] = "thehands";
98
                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);
99
                dc.type = 459;
100
            }
101
            if (myattackchoice == 10)
102
            {
103
                global.monsterattackname[myself] = "darkshapesspeedup";
104
                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);
105
                dc.type = 460;
106
            }
107
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(360);
108
            turns += 1;
109
            global.typer = 6;
110
            global.fc = 0;
111
            rr = choose(0, 1, 2, 3);
112
            if (rr == 0)
113
                global.battlemsg[0] = stringsetloc(
* You hear your heart beating in your ears.
"* You hear your heart beating in your ears.", "obj_titan_spawn_enemy_slash_Step_0_gml_130_0"
);
114
            if (rr == 1)
115
                global.battlemsg[0] = stringsetloc(
* When did you start being yourself?
"* When did you start being yourself?", "obj_titan_spawn_enemy_slash_Step_0_gml_131_0"
);
116
            if (rr == 2)
117
                global.battlemsg[0] = stringsetloc(
* It sputtered in a voice like crushed glass.
"* It sputtered in a voice like crushed glass.", "obj_titan_spawn_enemy_slash_Step_0_gml_132_0"
);
118
            if (rr == 3)
119
                global.battlemsg[0] = stringsetloc(
* Ralsei mutters to himself to stay calm.
"* Ralsei mutters to himself to stay calm.", "obj_titan_spawn_enemy_slash_Step_0_gml_133_0"
);
120
            if (irandom(100) < 4)
121
                global.battlemsg[0] = stringsetloc(
* Smells like adrenaline.
"* Smells like adrenaline.", "obj_titan_spawn_enemy_slash_Step_0_gml_134_0"
);
122
            attacked = 1;
123
        }
124
    }
125
    if (global.mnfight == 2 && global.turntimer <= 1)
126
    {
127
        brighten = 0;
128
        light_radius = 48;
129
        if (global.tension >= 160)
130
            global.battlemsg[0] = stringsetloc(
* The atmosphere feels tense...
* (You can use BANISH!)
"* The atmosphere feels tense...&* (You can use \\cYBANISH\\c0!)", "obj_titan_spawn_enemy_slash_Step_0_gml_143_0"
);
131
    }
132
}
133
if (global.myfight == 3)
134
{
135
    xx = __view_get(e__VW.XView, 0);
136
    yy = __view_get(e__VW.YView, 0);
137
    if (acting == 1 && actcon == 0)
138
    {
139
        actcon = 1;
140
        msgsetloc(0, 
* TITAN SPAWN - AT 30 DF 200
* A shard of fear. Appears in places of deep dark.Wait for input
"* TITAN SPAWN - AT 30 DF 200&* A shard of fear. Appears in places of deep dark./", "obj_titan_spawn_enemy_slash_Step_0_gml_157_0"
);
141
        if (global.tension >= 160)
142
        {
143
            msgnextloc(
* The atmosphere feels tense...
* (You can use BANISH!)Wait for inputClose Message
"* The atmosphere feels tense...&* (You can use \\cYBANISH\\c0!)/%", "obj_titan_spawn_enemy_slash_Step_0_gml_161_0"
);
144
        }
145
        else
146
        {
147
            msgnextloc(
* Expose it to LIGHT... and gather COURAGE to gain TP.Wait for input
"* Expose it to LIGHT... and gather COURAGE to gain TP./", "obj_titan_spawn_enemy_slash_Step_0_gml_158_0"
);
148
            msgnextloc(
* Then, "BANISH" it!Wait for inputClose Message
"* Then, \"\\cYBANISH\\c0\" it!/%", "obj_titan_spawn_enemy_slash_Step_0_gml_159_0"
);
149
        }
150
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
151
    }
152
    if (acting == 2 && actcon == 0)
153
    {
154
        actcon = 1;
155
        msgsetloc(0, 
* Kris's SOUL shone brighter!Wait for inputClose Message
"* Kris's SOUL shone brighter!/%", "obj_titan_spawn_enemy_slash_Step_0_gml_166_0"
);
156
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
157
        brighten = 1;
158
        with (obj_titan_spawn_enemy)
159
            light_radius = 63;
160
        with (obj_heroralsei)
161
            
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; }
();
162
        with (obj_herosusie)
163
            
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; }
();
164
        with (obj_herokris)
165
            
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; }
();
166
        snd_play(snd_boost);
167
        heartanim = instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_animation);
168
        with (heartanim)
169
        {
170
            depth = -20;
171
            image_index = 0;
172
            image_xscale = 2;
173
            image_yscale = 2;
174
            image_speed = 1;
175
            sprite_index = spr_soulshining;
176
        }
177
    }
178
    if (acting == 3 && actcon == 0)
179
    {
180
        global.msg[0] = stringsetloc(
* 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"
);
181
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
182
        acting = 20;
183
        acttimer = 0;
184
    }
185
    if (acting == 20)
186
    {
187
        acttimer += 1;
188
        if (acttimer >= 10 || !instance_exists(obj_writer))
189
        {
190
            acttimer = 0;
191
            acting = 21;
192
        }
193
    }
194
    if (acting == 21)
195
    {
196
        
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);
197
        with (obj_herosusie)
198
        {
199
            x -= 28;
200
            y -= 25;
201
        }
202
        global.faceaction[1] = 2;
203
        global.faceaction[2] = 2;
204
        global.charaction[2] = 2;
205
        global.charspecial[2] = 6;
206
        global.chartarget[2] = 0;
207
        global.acting[2] = 0;
208
        snd_play(snd_boost);
209
        heartanim = instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_animation);
210
        with (heartanim)
211
        {
212
            depth = -20;
213
            image_index = 0;
214
            image_xscale = 2;
215
            image_yscale = 2;
216
            image_speed = 1;
217
            sprite_index = spr_soulshining;
218
        }
219
        with (obj_heroralsei)
220
            
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; }
();
221
        with (obj_herosusie)
222
            
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; }
();
223
        with (obj_herokris)
224
            
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; }
();
225
        acting = 22;
226
    }
227
    if (acting == 22)
228
    {
229
        acttimer += 1;
230
        if (acttimer >= 20)
231
        {
232
            with (obj_heroralsei)
233
                state = 0;
234
            
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);
235
            global.faceaction[1] = 2;
236
            acting = 0;
237
            actcon = 1;
238
            dualhealcon = 1;
239
        }
240
    }
241
    if (acting == 4 && actcon == 0)
242
    {
243
        msgsetloc(0, 
* Kris's SOUL emitted a brilliant light!Wait for inputClose Message
"* Kris's SOUL emitted a brilliant light!/%", "obj_titan_spawn_enemy_slash_Step_0_gml_246_0"
);
244
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
245
        acting = 4.1;
246
    }
247
    if (acting == 4.1 && actcon == 0 && !i_ex(obj_writer))
248
    {
249
        global.flag[1597] += 2;
250
        acting = 4.2;
251
        with (obj_herokris)
252
            
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; }
();
253
        instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_purify_event);
254
    }
255
    if (acting == 4.2 && actcon == 0 && !i_ex(obj_purify_event))
256
        
scr_wincombat
scr_wincombat

function
scr_wincombat()
{ if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1) { global.myfight = 7; global.mnfight = -1; with (obj_battlecontroller) victory = 1; for (i = 0; i < 3; i += 1) { if (global.monster[i] == 1 && i_ex(global.monsterinstance[i])) { with (global.monsterinstance[i])
scr_monsterdefeat();
} } } else { for (i = 0; i < 3; i += 1) { if (global.monster[i] == 1 && i_ex(global.monsterinstance[i])) { with (global.monsterinstance[i])
scr_monsterdefeat();
} } global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0; for (__j = 0; __j < 3; __j++) { if (global.monstertype[__j] != 0(None)) { _newmonster =
scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800; global.monsterinstance[_newmonster].y = global.monstermakey[__j]; with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
} } global.myfight = 5; myfightreturntimer = 15; global.mnfight = -1; } }
();
257
    if (actingsus == 1 && actconsus == 1)
258
    {
259
        sactcount++;
260
        var _str = "";
261
        if (sactcount > 1)
262
            _str = "%";
263
        msgsetsubloc(0, "* Susie used Wake Up!/~1", _str, "obj_titan_spawn_enemy_slash_Step_0_gml_268_0");
264
        if (sactcount == 1)
265
            msgnextloc(
* Hey, dumbass! Get up!Wait for inputClose Message
"* Hey, dumbass! Get up!/%", "obj_titan_spawn_enemy_slash_Step_0_gml_269_0"
);
266
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
267
        actingsus = 2;
268
    }
269
    if (actingsus == 2 && actconsus == 1 && !i_ex(obj_writer))
270
    {
271
        
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);
272
        snd_play(snd_smallswing);
273
        snd_play(snd_damage);
274
        actingsus = 3;
275
        alarm[4]
 = 15;
gml_Object_obj_titan_spawn_enemy_Alarm_4.gml

con += 1;
276
        attack = instance_create(obj_herokris.x + 30, obj_herokris.y + 40, obj_animation);
277
        attack.sprite_index = spr_attack_slap1_purple;
278
        attack.maxindex = 4;
279
        attack.image_speed = 0.5;
280
        with (obj_herokris)
281
            
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); }
();
282
    }
283
    if (actingsus == 3 && actconsus == 1 && con == 1)
284
    {
285
        
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");
286
        if (global.hp[1] <= 0)
287
        {
288
            var starthp = global.hp[1];
289
            star = 0;
290
            reviveamt = abs(global.hp[1]) + 1;
291
            
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);
292
            global.hp[1] = 1;
293
            with (obj_dmgwriter)
294
            {
295
                if (type == 3 && delay == 8)
296
                    damage = abs(starthp - global.hp[1]);
297
            }
298
            actingsus = 0;
299
            actcon = 1;
300
        }
301
        else
302
        {
303
            msgsetloc(0, 
* (But, Kris wasn't DOWNed...)Wait for inputClose Message
"* (But, Kris wasn't DOWNed...)/%", "obj_titan_spawn_enemy_slash_Step_0_gml_308_0"
);
304
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
305
            actingsus = 4;
306
        }
307
    }
308
    if (actingsus == 4 && actconsus == 1 && !i_ex(obj_writer))
309
    {
310
        actingsus = 0;
311
        actcon = 1;
312
    }
313
    if (actingral == 1 && actconral == 1)
314
    {
315
        ractcount++;
316
        msgsetloc(0, 
* Ralsei used Reviver!Wait for inputClose Message
"* Ralsei used Reviver!/%", "obj_titan_spawn_enemy_slash_Step_0_gml_323_0"
);
317
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
318
        actingral = 2;
319
    }
320
    if (actingral == 2 && actconral == 1 && !i_ex(obj_writer))
321
    {
322
        
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);
323
        actingral = 2.5;
324
        instance_create(obj_herokris.x, obj_herokris.y, obj_ralsei_cherub);
325
    }
326
    if (actingral == 2.5)
327
    {
328
        racttimer++;
329
        if (racttimer == 58)
330
        {
331
            racttimer = 0;
332
            actingral = 3;
333
        }
334
    }
335
    if (actingral == 3 && actconral == 1)
336
    {
337
        
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");
338
        var starthp = global.hp[1];
339
        star = 0;
340
        reviveamt = ceil(global.maxhp[1]) + abs(ceil(global.maxhp[1] / 3));
341
        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);
342
        if (starthp <= 0)
343
            global.hp[1] = ceil(global.maxhp[1] / 3);
344
        else
345
            global.hp[1] = starthp + ceil(global.maxhp[1] * 0.5);
346
        if (global.hp[1] > global.maxhp[1])
347
        {
348
            global.hp[1] = global.maxhp[1];
349
            with (obj_dmgwriter)
350
            {
351
                if (type == 3 && delay == 8 && mercytimer == 0)
352
                    specialmessage = 3;
353
            }
354
        }
355
        else
356
        {
357
            with (obj_dmgwriter)
358
            {
359
                if (type == 3 && delay == 8 && mercytimer == 0)
360
                    specialmessage = 0;
361
            }
362
        }
363
        with (obj_dmgwriter)
364
        {
365
            if (type == 3 && delay == 8 && mercytimer == 0)
366
                damage = abs(starthp - global.hp[1]);
367
        }
368
        actingral = 0;
369
        actcon = 1;
370
    }
371
    if (actcon == 20 || actconsus == 20 || actconral == 20)
372
    {
373
        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; }
())
374
        {
375
            actconsus = -1;
376
            actconral = -1;
377
            actcon = 1;
378
        }
379
    }
380
    if (actcon == 1 && !instance_exists(obj_writer))
381
    {
382
        if (dualhealcon == 1)
383
            dualhealcon = 2;
384
        
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();
} }
();
385
    }
386
}
387
if (dualhealcon == 2)
388
{
389
    dealhealtimer++;
390
    if (dealhealtimer >= 30)
391
    {
392
        dealhealtimer = 0;
393
        dualhealcon = 0;
394
        
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");
395
        obj_herosusie.x = obj_herosusie.xstart;
396
        obj_herosusie.y = obj_herosusie.ystart;
397
    }
398
}
399
if (state == 3)
400
    
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; } } }
();
401
if (obj_heroralsei.thissprite == spr_ralsei_spell && obj_herosusie.state == 8 && obj_heroralsei.image_index == 3)
402
    
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);
403
if (obj_herosusie.sprite_index == spr_susie_heal_end && obj_herosusie.image_index > 13)
404
{
405
    
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");
406
    obj_herosusie.x = obj_herosusie.xstart;
407
    obj_herosusie.y = obj_herosusie.ystart;
408
}
409
410
enum e__VW
411
{
412
    XView,
413
    YView,
414
    WView,
415
    HView,
416
    Angle,
417
    HBorder,
418
    VBorder,
419
    HSpeed,
420
    VSpeed,
421
    Object,
422
    Visible,
423
    XPort,
424
    YPort,
425
    WPort,
426
    HPort,
427
    Camera,
428
    SurfaceID
429
}