Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_king_boss_Step_0

(view raw script w/o annotations or w/e)
1
if (susinit == 0)
2
{
3
    with (obj_herosusie)
4
    {
5
        idlesprite = spr_susieb_idle_serious;
6
        attacksprite = spr_susieb_attack_serious;
7
    }
8
    susinit = 1;
9
}
10
if (global.monster[myself] == 1)
11
{
12
    global.flag[51 + myself] = 4;
13
    if (global.mnfight == 1 && talked == 0)
14
    {
15
        if (!instance_exists(obj_darkener))
16
            instance_create(0, 0, obj_darkener);
17
        global.typer = 50;
18
        global.msg[0] = 
Fall before
the chain
of justice!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_25_0")
;
19
        blcontype = 3;
20
        if (kturn == 0)
21
            global.msg[0] = 
How dare you
come here,
Lightners...?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_27_0")
;
22
        if (kturn == 1)
23
        {
24
            global.msg[0] = 
You, that
left us in
the shadows,
stripped of
meaning...Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_28_0")
;
25
            blcontype = 8;
26
        }
27
        if (kturn == 2)
28
            global.msg[0] = 
You DARE
return
to torment us
once again?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_29_0")
;
29
        if (kturn == 3)
30
            global.msg[0] = 
Begone!
We have found
fresh
purpose.Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_30_0")
;
31
        if (kturn == 4)
32
            global.msg[0] = 
For the
KNIGHT
has appeared.Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_31_0")
;
33
        if (kturn == 5)
34
        {
35
            global.msg[0] = 
The KNIGHT
that pulls
the Fountains
from the
Earth.Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_32_0")
;
36
            blcontype = 8;
37
        }
38
        if (kturn == 6)
39
        {
40
            blcontype = 8;
41
            global.msg[0] = 
Holy
Fountains,
whose shadows
are creating
a new
world...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_36_0")
;
42
            global.msg[1] = 
OUR world.Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_37_0")
;
43
        }
44
        if (kturn == 7)
45
            global.msg[0] = 
Hahaha...
Do you see
now our NEW
purpose...?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_39_0")
;
46
        if (kturn == 8)
47
        {
48
            global.msg[0] = 
Soon, this
world
shall be
blanketed
in darkness...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_40_0")
;
49
            global.msg[1] = 
And DARKNERS
shall RULE
it!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_41_0")
;
50
            blcontype = 8;
51
        }
52
        if (kturn == 9)
53
            global.msg[0] = 
Then, you may
see what it is
like to live
in DESPAIR!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_43_0")
;
54
        if (kturn == 10)
55
        {
56
            global.msg[0] = 
Now, enough
talk!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_44_0")
;
57
            global.msg[1] = 
Fall before
the chain of
justice!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_45_0")
;
58
        }
59
        if (kturn == 11)
60
            global.msg[0] = 
... ha,
you're
quite strong,
aren't you!?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_46_0")
;
61
        if (kturn == 12)
62
            global.msg[0] = 
If I keep
fighting you
like this,
then...Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_47_0")
;
63
        if (kturn == 13)
64
            global.msg[0] = 
It seems...
that...Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_48_0")
;
65
        if (kturn >= 14)
66
        {
67
            global.msg[0] = 
My KNIGHT...
I shall not
fail you...Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_49_0")
;
68
            battlecancel = 2;
69
        }
70
        kturn += 1;
71
        if (kturn <= 11)
72
        {
73
            attack = kturn;
74
        }
75
        else
76
        {
77
            if (kturn == 12)
78
                attack = 7;
79
            if (kturn == 13)
80
                attack = 8;
81
            if (kturn == 14)
82
                attack = 10;
83
            if (kturn == 15)
84
                attack = 9;
85
            if (kturn == 16)
86
                attack = 7;
87
            if (kturn == 17)
88
                attack = 11;
89
            if (kturn >= 18)
90
                attack = 11;
91
            if (global.monsterdf[myself] > -25)
92
                global.monsterdf[myself] -= 5;
93
        }
94
        target_randomly = 1;
95
        if (attack == 2 || attack == 5 || attack == 10 || attack == 11)
96
            scr_targetall
scr_targetall

function scr_targetall() { for (_ti = 0; _ti < 3; _ti += 1) { if (global.charcantarget[_ti] == 1) global.targeted[_ti] = 1; } mytarget = 3; target = 3; }
();
97
        else
98
            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; }
();
99
        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_clubs; 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_clubs; 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; } }
(x - 160, y, blcontype);
100
        talked = 1;
101
        talktimer = 0;
102
    }
103
    if (talked == 1 && global.mnfight == 1)
104
    {
105
        rtimer = 0;
106
        scr_blconskip
scr_blconskip

function scr_blconskip(arg0) { if (arg0 != -1) { if (button1_p() && talktimer > arg0) talktimer = talkmax; talktimer += 1; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); global.mnfight = 2; } } if (arg0 == -1) { if (instance_exists(obj_writer) == false) global.mnfight = 2; } }
(-1);
107
    }
108
    if (global.mnfight == 2 && attacked == 0)
109
    {
110
        rtimer += 1;
111
        if (rtimer == 12)
112
        {
113
            talktimer = 0;
114
            global.turntimer = 180;
115
            event_user(5);
116
            turns += 1;
117
            attacked = 1;
118
            global.typer = 6;
119
            global.fc = 0;
120
            rr = choose(0, 1, 2, 3);
121
            if (rr == 0)
122
                global.battlemsg[0] = 
* Darkness pours from the fountain.
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_104_0")
;
123
            if (rr == 1)
124
                global.battlemsg[0] = 
* KING's mouths gave a berserk smile.
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_105_0")
;
125
            if (rr == 2)
126
                global.battlemsg[0] = 
* The battlefield is rumbling.
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_106_0")
;
127
            if (rr == 3)
128
                global.battlemsg[0] = 
* KING's mouths babble indecipherably.
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_107_0")
;
129
            if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4))
130
                global.battlemsg[0] = 
* KING's cape flutters weakly.
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_110_0")
;
131
        }
132
        else
133
        {
134
            global.turntimer = 120;
135
        }
136
    }
137
    if (global.mnfight == 2)
138
    {
139
        if (global.turntimer <= 1)
140
        {
141
            if (battlecancel == 1)
142
                global.mercymod[myself] = 999;
143
            if (battlecancel == 2)
144
            {
145
                with (obj_battlecontroller)
146
                    noreturn = 1;
147
                con = 1;
148
                battlecancel = 3;
149
            }
150
        }
151
    }
152
}
153
if (con == 1)
154
    con = 4;
155
if (con == 4 && !instance_exists(obj_writer))
156
{
157
    con = 5;
158
    alarm[4] = 15;
159
    with (obj_battlecontroller)
160
alarm[2]
161
}
162
if (con == 6)
163
{
164
    with (obj_battlecontroller)
165
        noreturn = 0;
166
    global.flag[247 spared_king] = 1;
167
    scr_monsterdefeat
scr_monsterdefeat

function scr_monsterdefeat() { if (global.monster[myself] == 1) { global.monstergold[3] += global.monstergold[myself]; global.monsterexp[3] += global.monsterexp[myself]; global.monster[myself] = 0; if (global.flag[51 + myself] == 0) { global.flag[51 + myself] = 2; if (global.monsterhp[myself] <= 0) global.flag[51 + myself] = 1; } if (global.flag[51 + myself] == 1) global.flag[40 violences] += 1; if (global.flag[51 + myself] == 2) global.flag[41 spares] += 1; if (global.flag[51 + myself] == 3) global.flag[42 pacifies] += 1; if (global.flag[51 + myself] == 5) global.flag[43 autosusie_violences] += 1; if (scr_monsterpop() == 0) { _amt_add = 0; _violenced = 0; _spared = 0; _pacified = 0; for (d_i = 0; d_i < 3; d_i += 1) { if (global.flag[51 + d_i] != 0) _amt_add += 1; if (global.flag[51 + d_i] == 1) _violenced += 1; if (global.flag[51 + d_i] == 2) _spared += 1; if (global.flag[51 + d_i] == 3) _pacified += 1; } if (_pacified > 0) global.flag[50 last_encounter_end] = 3; if (_spared > 0) global.flag[50 last_encounter_end] = 2; if (_violenced > 0) global.flag[50 last_encounter_end] = 1; } event_user(11); } }
();
168
    event_user(10);
169
    instance_destroy();
170
    con = 7;
171
}
172
if (global.myfight == 3)
173
{
174
    xx = __view_get(e__VW.XView, 0);
175
    yy = __view_get(e__VW.YView, 0);
176
    if (acting == 1 && actcon == 0)
177
    {
178
        actcon = 1;
179
        global.msg[0] = 
* KING - Abandoned by the Lightners,Delay 11 his heart became cracked with hatred.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_169_0")
;
180
        global.msg[1] = 
* He cannot be reasoned with,Delay 11 but don't give up...!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_170_0")
;
181
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
182
    }
183
    if (acting == 2 && actcon == 0)
184
    {
185
        if (global.tempflag[5] == 0)
186
        {
187
            global.msg[0] = 
* You tried to reason with the King...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_180_0")
;
188
            scr_kingface
scr_kingface

function scr_kingface(arg0, arg1) { if (global.plot >= 235) global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \FK \TK Close Message
scr_84_get_lang_string("scr_kingface_slash_scr_kingface_gml_3_0")
, string(arg1)); else global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \TK Close Message
scr_84_get_lang_string("scr_kingface_slash_scr_kingface_gml_7_0")
, string(arg1)); }
(1, 5);
189
            global.msg[2] = 
* Silence,Delay 11 Lightbringer!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_182_0")
;
190
            global.msg[3] = 
* Your very existence goes against our own...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_183_0")
;
191
            global.msg[4] = 
\E0* By the Knight's will,Delay 11 I shall shatter your heart to pieces!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_184_0")
;
192
            scr_noface
scr_noface

function scr_noface(arg0) { global.msg[arg0] =
\TX \F0 \T0 Close Message
scr_84_get_lang_string("scr_noface_slash_scr_noface_gml_1_0")
; }
(5);
193
            global.msg[6] = 
* Your will is changing...Delay 11
* \cYTALK\cW became \cYCOURAGE\cW!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_186_0")
;
194
            global.tempflag[5] = 1;
195
            global.canact[myself][1] = 1;
196
            global.actactor[myself][1] = 1;
197
            global.actname[myself][1] = 
Courage
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_192_0")
;
198
            global.actdesc[myself][1] = 
Defense#Boost
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_193_0")
;
199
            global.actcost[myself][1] = 62;
200
        }
201
        else
202
        {
203
            snd_play(snd_power);
204
            with (obj_heroparent)
205
            {
206
                __of = 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; }
();
207
                __of.flashcolor = c_orange;
208
            }
209
            global.msg[0] = 
* You encouraged the party!Delay 11
* The party's DEFENSE raised for this turn!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_201_0")
;
210
            tempattack = 0.8;
211
        }
212
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
213
        actcon = 1;
214
    }
215
    if (acting == 3 && actcon == 0)
216
    {
217
        if (global.tempflag[6] == 0)
218
        {
219
            global.msg[0] = 
* Susie tried to reason with the King...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_214_0")
;
220
            scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \FS \TS Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1)); }
(1, 1);
221
            global.msg[2] = 
* Arright,Delay 11 listen up.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_216_0")
;
222
            global.msg[3] = 
\E2* Lancer's my friend.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_217_0")
;
223
            global.msg[4] = 
\EC* So if we can get by without hurting you,Delay 11 then...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_218_0")
;
224
            scr_kingface
scr_kingface

function scr_kingface(arg0, arg1) { if (global.plot >= 235) global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \FK \TK Close Message
scr_84_get_lang_string("scr_kingface_slash_scr_kingface_gml_3_0")
, string(arg1)); else global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \TK Close Message
scr_84_get_lang_string("scr_kingface_slash_scr_kingface_gml_7_0")
, string(arg1)); }
(5, 0);
225
            global.msg[6] = 
* If I perish,Delay 11 so be it!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_220_0")
;
226
            global.msg[7] = 
\E4* Show my son the monster you REALLY are!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_221_0")
;
227
            scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \FS \TS Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1)); }
(8, "C");
228
            global.msg[9] = 
* ...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_223_0")
;
229
            global.msg[10] = 
\E3* Arright,Delay 11 you wanna see what I can do,Delay 11 huh?Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_224_0")
;
230
            scr_noface
scr_noface

function scr_noface(arg0) { global.msg[arg0] =
\TX \F0 \T0 Close Message
scr_84_get_lang_string("scr_noface_slash_scr_noface_gml_1_0")
; }
(11);
231
            global.msg[12] = 
* Susie's will is changing...Delay 11
* \cYTALK\cW became \cYRED BUSTER\cW!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_226_0")
;
232
            global.tempflag[6] = 1;
233
            global.canact[myself][2] = 1;
234
            global.actactor[myself][2] = 2;
235
            global.actname[myself][2] = 
RedBuster
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_232_0")
;
236
            global.actdesc[myself][2] = 
Red#Damage
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_233_0")
;
237
            global.actcost[myself][2] = 150;
238
            actcon = 1;
239
        }
240
        else
241
        {
242
            global.msg[0] = 
* Your SOUL shined its power on Susie!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_241_0")
;
243
            actcon = 10;
244
        }
245
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
246
        acttimer = 0;
247
    }
248
    if (acting == 4 && actcon == 0)
249
    {
250
        if (global.tempflag[7] == 0)
251
        {
252
            global.msg[0] = 
* Ralsei tried to reason with the King...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_254_0")
;
253
            scr_ralface
scr_ralface

function scr_ralface(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \FR \TR Close Message
scr_84_get_lang_string("scr_ralface_slash_scr_ralface_gml_1_0")
, string(arg1)); }
(1, "B");
254
            global.msg[2] = 
* You might not realize it,Delay 11 but...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_256_0")
;
255
            global.msg[3] = 
\E6* This is a world where you don't have to fight.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_257_0")
;
256
            global.msg[4] = 
\E8* I know if we try,Delay 11 we can all find another way...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_258_0")
;
257
            scr_kingface
scr_kingface

function scr_kingface(arg0, arg1) { if (global.plot >= 235) global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \FK \TK Close Message
scr_84_get_lang_string("scr_kingface_slash_scr_kingface_gml_3_0")
, string(arg1)); else global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \TK Close Message
scr_84_get_lang_string("scr_kingface_slash_scr_kingface_gml_7_0")
, string(arg1)); }
(5, 6);
258
            global.msg[6] = 
\E6* Such simple-minded platitudes...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_260_0")
;
259
            global.msg[7] = 
\E0* A shame you will not live to realize your naivety.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_261_0")
;
260
            global.msg[8] = 
\E4* Now,Delay 11 perish with the pathetic LIGHTNERs you worship!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_262_0")
;
261
            scr_ralface
scr_ralface

function scr_ralface(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string(
\TX \F0 \E~1 \FR \TR Close Message
scr_84_get_lang_string("scr_ralface_slash_scr_ralface_gml_1_0")
, string(arg1)); }
(9, 8);
262
            global.msg[10] = 
* Sorry,Delay 11 my friends and I aren't going anywhere!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_264_0")
;
263
            scr_noface
scr_noface

function scr_noface(arg0) { global.msg[arg0] =
\TX \F0 \T0 Close Message
scr_84_get_lang_string("scr_noface_slash_scr_noface_gml_1_0")
; }
(11);
264
            global.msg[12] = 
* Ralsei's will is changing...Delay 11
* \cYTALK\cW became \cYDUAL HEAL\cW!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_266_0")
;
265
            scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
266
            global.tempflag[7] = 1;
267
            global.canact[myself][3] = 1;
268
            global.actactor[myself][3] = 3;
269
            global.actname[myself][3] = 
DualHeal
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_273_0")
;
270
            global.actdesc[myself][3] = 
Heals#everyone
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_274_0")
;
271
            global.actcost[myself][3] = 125;
272
            actcon = 1;
273
        }
274
        else
275
        {
276
            global.msg[0] = 
* Your SOUL shined its power on RALSEI!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_king_boss_slash_Step_0_gml_282_0")
;
277
            scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
278
            actcon = 20;
279
        }
280
        acttimer = 0;
281
    }
282
    if (actcon == 10)
283
    {
284
        acttimer += 1;
285
        if (acttimer >= 10 || !instance_exists(obj_writer))
286
        {
287
            acttimer = 0;
288
            actcon = 11;
289
        }
290
    }
291
    if (actcon == 11)
292
    {
293
        global.faceaction[1] = 2;
294
        global.charaction[1] = 2;
295
        global.charspecial[1] = 5;
296
        global.chartarget[1] = 0;
297
        global.acting[1] = 0;
298
        snd_play(snd_boost);
299
        heartanim = instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_animation);
300
        with (heartanim)
301
        {
302
            depth = -20;
303
            image_index = 0;
304
            image_xscale = 2;
305
            image_yscale = 2;
306
            image_speed = 1;
307
            sprite_index = spr_soulshining;
308
        }
309
        with (obj_herokris)
310
            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; }
();
311
        with (obj_herosusie)
312
            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; }
();
313
        actcon = 12;
314
    }
315
    if (actcon == 12)
316
    {
317
        acttimer += 1;
318
        if (acttimer >= 20)
319
        {
320
            actcon = 1;
321
            with (obj_herosusie)
322
                state = 0;
323
        }
324
    }
325
    if (actcon == 20)
326
    {
327
        acttimer += 1;
328
        if (acttimer >= 10 || !instance_exists(obj_writer))
329
        {
330
            acttimer = 0;
331
            actcon = 21;
332
        }
333
    }
334
    if (actcon == 21)
335
    {
336
        global.faceaction[2] = 2;
337
        global.charaction[2] = 2;
338
        global.charspecial[2] = 6;
339
        global.chartarget[2] = 0;
340
        global.acting[2] = 0;
341
        snd_play(snd_boost);
342
        heartanim = instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_animation);
343
        with (heartanim)
344
        {
345
            depth = -20;
346
            image_index = 0;
347
            image_xscale = 2;
348
            image_yscale = 2;
349
            image_speed = 1;
350
            sprite_index = spr_soulshining;
351
        }
352
        with (obj_heroralsei)
353
            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; }
();
354
        with (obj_herokris)
355
            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; }
();
356
        actcon = 22;
357
    }
358
    if (actcon == 22)
359
    {
360
        acttimer += 1;
361
        if (acttimer >= 20)
362
        {
363
            actcon = 1;
364
            with (obj_heroralsei)
365
                state = 0;
366
        }
367
    }
368
    if (actcon == 1 && !instance_exists(obj_writer))
369
    {
370
        actcon = 0;
371
        scr_attackphase
scr_attackphase

function scr_attackphase() { with (obj_battlecontroller) { techwon = 0; if (scr_monsterpop() == 0) techwon = 1; if (techwon == 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 (fightphase == 1) { global.myfight = 1; instance_create(xx + 2, yy + 365, obj_attackpress); } else { global.myfight = 4; instance_create(0, 0, obj_spellphase); } } else { scr_wincombat(); } } }
();
372
    }
373
}
374
if (global.myfight == 7)
375
    hspeed = 15;
376
if (!instance_exists(obj_shake))
377
{
378
    __view_set(e__VW.XView, 0, remxx);
379
    __view_set(e__VW.YView, 0, remyy);
380
}
381
382
enum e__VW
383
{
384
    XView,
385
    YView,
386
    WView,
387
    HView,
388
    Angle,
389
    HBorder,
390
    VBorder,
391
    HSpeed,
392
    VSpeed,
393
    Object,
394
    Visible,
395
    XPort,
396
    YPort,
397
    WPort,
398
    HPort,
399
    Camera,
400
    SurfaceID
401
}