Deltarune script viewer

← back to main script listing

gml_Object_obj_ralseienemy_Step_0

(view raw script w/o annotations or w/e)
1
if (ambushed == 0)
2
{
3
    scr_ambush
scr_ambush

function scr_ambush() { with (obj_writer) instance_destroy(); with (obj_face) instance_destroy(); global.charturn = 3; global.mnfight = 1; global.myfight = -1; with (obj_monsterparent) ambushed = 1; }
();
4
    ambushed = 1;
5
}
6
if (global.monster[myself] == 1)
7
{
8
    global.flag[51 + myself] = 4;
9
    if (global.mnfight == 1 && talked == 0)
10
    {
11
        if (attackcon == 0)
12
        {
13
            scr_moveheart
scr_moveheart

function scr_moveheart() { global.inv = 0; if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy)) return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart); else return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart); }
();
14
            abletotarget = 1;
15
            if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0)
16
                abletotarget = 0;
17
            mytarget = choose(0, 1, 2);
18
            if (abletotarget == 1)
19
            {
20
                while (global.charcantarget[mytarget] == 0)
21
                    mytarget = choose(0, 1, 2);
22
            }
23
            else
24
            {
25
                target = 3;
26
            }
27
            global.targeted[mytarget] = 1;
28
            instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
29
            instance_create(0, 0, obj_darkener);
30
        }
31
        global.typer = 45;
32
        global.fc = 2;
33
        global.fe = 1;
34
        global.msg[0] = stringsetloc(
* ...Wait for inputClose Message
"* .../%", "obj_ralseienemy_slash_Step_0_gml_36_0"
);
35
        if (plot == 0)
36
        {
37
            global.fe = 0;
38
            global.flag[30 ralsei_hat_state] = 0;
39
            global.msg[0] = stringsetloc(
* See that HEART, Kris?Wait for input
"* See that \\cRHEART\\cW, Kris?/", "obj_ralseienemy_slash_Step_0_gml_42_0"
);
40
            global.msg[1] = stringsetloc(
* That's a SOUL, the culmination of a HUMAN's being!Wait for input
"* That's a \\cRSOUL\\cW, the culmination of a HUMAN's being!/", "obj_ralseienemy_slash_Step_0_gml_43_0"
);
41
            global.msg[2] = stringsetloc(
* Not only does it represent one's WILL and COMPASSION...Wait for input
"* Not only does it represent one's WILL and COMPASSION.../", "obj_ralseienemy_slash_Step_0_gml_44_0"
);
42
            global.msg[3] = stringsetloc(
* But it also has the power to DETERMINE FATE.Wait for input
"* But it also has the power to DETERMINE FATE./", "obj_ralseienemy_slash_Step_0_gml_45_0"
);
43
            global.msg[4] = stringsetloc(
* When enemies attack, BULLETS appear.Wait for input
"* When enemies attack, BULLETS appear./", "obj_ralseienemy_slash_Step_0_gml_46_0"
);
44
            global.msg[5] = stringsetloc(
* Please avoid them and protect your team's FATE!Wait for input
"* Please avoid them and protect your team's FATE!/", "obj_ralseienemy_slash_Step_0_gml_47_0"
);
45
            global.msg[6] = stringsetloc(
* Ready,Delay 11 Kris?Delay 22
* Let's try dodging!Wait for inputClose Message
"* Ready^1, Kris^2?&* Let's try dodging!/%", "obj_ralseienemy_slash_Step_0_gml_48_0"
);
46
        }
47
        if (plot >= 1)
48
        {
49
            dial = 0;
50
            if (global.charaction[0] == 1)
51
            {
52
                if (dummyhp > global.monsterhp[0])
53
                    dial = 1;
54
                if (myhp > global.monsterhp[1])
55
                    dial = 4;
56
                if (dummyhp == global.monsterhp[0] && myhp == global.monsterhp[1] && plot == 1)
57
                    dial = 2;
58
                if (dummyhp == global.monsterhp[0] && myhp == global.monsterhp[1] && misstime == 9 && plot == 2)
59
                {
60
                    dial = 3;
61
                    global.flag[205 tutorial_end] = 6;
62
                }
63
                if (dial == 4 && hittime >= 2)
64
                {
65
                    hittime = 3;
66
                    dial = 3;
67
                    global.flag[205 tutorial_end] = 3;
68
                }
69
                if (dial == 1 && hitdum >= 3)
70
                {
71
                    hitdum = 4;
72
                    dial = 3;
73
                    global.flag[205 tutorial_end] = 4;
74
                }
75
            }
76
            if (global.charaction[0] == 10)
77
            {
78
                global.fe = 0;
79
                global.msg[0] = stringsetloc(
* That's DEFENDING,Delay 11 Kris.Delay 11
* You'll recover TP and take less damage.Wait for input
"* That's DEFENDING^1, Kris^1.&* You'll recover TP and take less damage./", "obj_ralseienemy_slash_Step_0_gml_65_0"
);
80
                global.msg[1] = stringsetloc(
Face 8* It's not part of this lesson,Delay 11 though.Wait for inputClose Message
"\\E8* It's not part of this lesson^1, though./%", "obj_ralseienemy_slash_Step_0_gml_66_0"
);
81
                if (defendtime == 1)
82
                {
83
                    global.msg[0] = stringsetloc(
* Gee,Delay 11 Kris!Delay 11
* You sure are good at defending!Wait for input
"* Gee^1, Kris^1!&* You sure are good at defending!/", "obj_ralseienemy_slash_Step_0_gml_70_0"
);
84
                    global.msg[1] = stringsetloc(
Face 8* I'm not attacking,Delay 11 you,Delay 11 though, so...
* No need to defend!Wait for inputClose Message
"\\E8* I'm not attacking^1, you^1, though, so...&* No need to defend!/%", "obj_ralseienemy_slash_Step_0_gml_71_0"
);
85
                }
86
                if (defendtime == 2)
87
                {
88
                    global.fe = 1;
89
                    global.msg[0] = stringsetloc(
* Ummm...Delay 11
* Kris?Wait for input
"* Ummm..^1.&* Kris?/", "obj_ralseienemy_slash_Step_0_gml_77_0"
);
90
                    global.msg[1] = stringsetloc(
Face 8* There are no bullets,Delay 11 and you can't use TP...Wait for input
"\\E8* There are no bullets^1, and you can't use TP.../", "obj_ralseienemy_slash_Step_0_gml_78_0"
);
91
                    global.msg[2] = stringsetloc(
Face 8* So,Delay 11 umm,Delay 11 maybe you could stop defending?Wait for inputClose Message
"\\E8* So^1, umm^1, maybe you could stop defending?/%", "obj_ralseienemy_slash_Step_0_gml_79_0"
);
92
                }
93
                if (defendtime == 3)
94
                {
95
                    global.fe = 9;
96
                    global.msg[0] = stringsetloc(
* ...Wait for inputClose Message
"* .../%", "obj_ralseienemy_slash_Step_0_gml_86_0"
);
97
                }
98
                if (defendtime >= 4)
99
                {
100
                    dial = 3;
101
                    global.flag[205 tutorial_end] = 5;
102
                }
103
                defendtime += 1;
104
            }
105
            if (global.charaction[0] == 4)
106
            {
107
                global.fe = 8;
108
                global.msg[0] = stringsetloc(
* You've got an item!Delay 11
* That's,Delay 11 um,Delay 11 great,Delay 11 Kris...Wait for inputClose Message
"* You've got an item^1!&* That's^1, um^1, great^1, Kris.../%", "obj_ralseienemy_slash_Step_0_gml_96_0"
);
109
            }
110
            if (dial == 1)
111
            {
112
                if (plot == 2 && hitdum == 0)
113
                    hitdum = 1;
114
                plot = 2;
115
                global.fe = 3;
116
                if (dummyhp > (global.monsterhp[0] + 50))
117
                {
118
                    global.msg[0] = stringsetloc(
* W-wow,Delay 11 Kris!Delay 11
* That was an amazing attack!Wait for input
"* W-wow^1, Kris^1!&* That was an amazing attack!/", "obj_ralseienemy_slash_Step_0_gml_107_0"
);
119
                    global.msg[1] = stringsetloc(
Face 8* Have you done this before or something...?Wait for input
"\\E8* Have you done this before or something...?/", "obj_ralseienemy_slash_Step_0_gml_108_0"
);
120
                }
121
                else
122
                {
123
                    global.msg[0] = stringsetloc(
* Good job,Delay 11 Kris!Delay 11
* By the way,Delay 11 you'll do more damage...Wait for input
"* Good job^1, Kris^1!&* By the way^1, you'll do more damage.../", "obj_ralseienemy_slash_Step_0_gml_112_0"
);
124
                    global.msg[1] = stringsetloc(
Face 8* Pressing Z when the cursor is RIGHT IN the box on the left!Wait for input
"\\E8* Pressing Z when the cursor is RIGHT IN the box on the left!/", "obj_ralseienemy_slash_Step_0_gml_113_0"
);
125
                }
126
                if (misstime >= 6)
127
                {
128
                    global.fe = 8;
129
                    global.msg[0] = stringsetloc(
* Kris!Delay 11
* You did it!!!Wait for input
"* Kris^1!&* You did it!!!/", "obj_ralseienemy_slash_Step_0_gml_118_0"
);
130
                    global.msg[1] = stringsetloc(
Face 8* (I was really just about at my limit...)Wait for inputClose Message
"\\E8* (I was really just about at my limit...)/%", "obj_ralseienemy_slash_Step_0_gml_119_0"
);
131
                }
132
                global.msg[2] = stringsetloc(
Face 1* Umm,Delay 11 anyway, let's move onto my favorite: ACTING!Wait for input
"\\E1* Umm^1, anyway, let's move onto my favorite: \\cYACTING\\cW!/", "obj_ralseienemy_slash_Step_0_gml_121_0"
);
133
                global.msg[3] = stringsetloc(
Face 0* Selecting the ACT ICON will let you do all sorts of things.Wait for input
"\\E0* Selecting the ACT ICON will let you do all sorts of things./", "obj_ralseienemy_slash_Step_0_gml_122_0"
);
134
                global.msg[4] = stringsetloc(
Face 8* We'll even be able to get through battles without ATTACKing!Wait for inputClose Message
"\\E8* We'll even be able to get through battles without ATTACKing!/%", "obj_ralseienemy_slash_Step_0_gml_123_0"
);
135
                global.battlemsg[0] = stringsetloc(
* Select the ACT ICON and HUG the Dummy!
"* Select the ACT ICON and HUG the Dummy!", "obj_ralseienemy_slash_Step_0_gml_124_0"
);
136
                if (hitdum == 1)
137
                {
138
                    global.fe = 1;
139
                    global.msg[0] = stringsetloc(
* Ummm...Delay 11 Kris?Delay 11
* You don't need to hit it anymore.Wait for input
"* Ummm..^1. Kris^1?&* You don't need to hit it anymore./", "obj_ralseienemy_slash_Step_0_gml_130_0"
);
140
                    global.msg[1] = stringsetloc(
Face 8* I already know you're great at attacking!Wait for inputClose Message
"\\E8* I already know you're great at attacking!/%", "obj_ralseienemy_slash_Step_0_gml_131_0"
);
141
                }
142
                if (hitdum == 2)
143
                {
144
                    global.fe = 1;
145
                    global.msg[0] = stringsetloc(
* Hey,Delay 11 Kris?Delay 11
* I know you like attacking,Delay 11 but...Wait for input
"* Hey^1, Kris^1?&* I know you like attacking^1, but.../", "obj_ralseienemy_slash_Step_0_gml_137_0"
);
146
                    global.msg[1] = stringsetloc(
Face 8* Did you know you can win without having to?Wait for inputClose Message
"\\E8* Did you know you can win without having to?/%", "obj_ralseienemy_slash_Step_0_gml_138_0"
);
147
                }
148
                if (hitdum == 3)
149
                {
150
                    global.fe = 9;
151
                    global.msg[0] = stringsetloc(
* ...Wait for input
"* .../", "obj_ralseienemy_slash_Step_0_gml_144_0"
);
152
                    global.msg[1] = stringsetloc(
Face 1* Kris,Delay 11 could you,Delay 11 um,Delay 11 stop...?Wait for inputClose Message
"\\E1* Kris^1, could you^1, um^1, stop...?/%", "obj_ralseienemy_slash_Step_0_gml_145_0"
);
153
                }
154
                hitdum += 1;
155
            }
156
            if (dial == 2)
157
            {
158
                global.fe = 3;
159
                global.msg[0] = stringsetloc(
* Oh,Delay 11 sorry,Delay 11 Kris!Delay 11
* I forgot to mention!Delay 11
* When you're ATTACKing...Wait for input
"* Oh^1, sorry^1, Kris^1!&* I forgot to mention^1!&* When you're ATTACKing.../", "obj_ralseienemy_slash_Step_0_gml_154_0"
);
160
                global.msg[1] = stringsetloc(
Face 8* Press Z again when the cursor goes in the box!Wait for inputClose Message
"\\E8* Press Z again when the cursor goes in the box!/%", "obj_ralseienemy_slash_Step_0_gml_155_0"
);
161
                if (misstime >= 1)
162
                {
163
                    global.fe = 8;
164
                    global.msg[0] = stringsetloc(
* It's OK,Delay 11 Kris!Delay 11
* You'll get it!Delay 11
* Try again!Wait for inputClose Message
"* It's OK^1, Kris^1!&* You'll get it^1!&* Try again!/%", "obj_ralseienemy_slash_Step_0_gml_159_0"
);
165
                    if (misstime == 2)
166
                        global.msg[0] = stringsetloc(
* Press Z when the white rectangle's in the blue box!Wait for inputClose Message
"* Press Z when the white rectangle's in the blue box!/%", "obj_ralseienemy_slash_Step_0_gml_160_0"
);
167
                    if (misstime == 3)
168
                        global.msg[0] = stringsetloc(
* Ummm...Delay 11 you can press Z a lot,Delay 11 if it helps!Wait for inputClose Message
"* Ummm..^1. you can press Z a lot^1, if it helps!/%", "obj_ralseienemy_slash_Step_0_gml_161_0"
);
169
                    if (misstime == 4)
170
                        global.msg[0] = stringsetloc(
* Kris...Delay 11
* Please try to press Z.Wait for inputClose Message
"* Kris..^1.&* Please try to press Z./%", "obj_ralseienemy_slash_Step_0_gml_162_0"
);
171
                    if (misstime == 5)
172
                        global.msg[0] = stringsetloc(
* Ummm,Delay 11 Kris?Delay 11
* Can you see the white rectangle?Wait for inputClose Message
"* Ummm^1, Kris^1?&* Can you see the white rectangle?/%", "obj_ralseienemy_slash_Step_0_gml_163_0"
);
173
                    if (misstime == 6)
174
                        global.msg[0] = stringsetloc(
* You know rectangles?Delay 11
* They're like messed-up squares?Wait for inputClose Message
"* You know rectangles^1?&* They're like messed-up squares?/%", "obj_ralseienemy_slash_Step_0_gml_164_0"
);
175
                    if (misstime == 7)
176
                    {
177
                        global.fe = 9;
178
                        global.msg[0] = stringsetloc(
* ...Wait for inputClose Message
"* .../%", "obj_ralseienemy_slash_Step_0_gml_168_0"
);
179
                    }
180
                    if (misstime == 8)
181
                    {
182
                        global.fe = 1;
183
                        global.msg[0] = stringsetloc(
* Umm,Delay 11 why don't we try something else?Wait for inputClose Message
"* Umm^1, why don't we try something else?/%", "obj_ralseienemy_slash_Step_0_gml_173_0"
);
184
                        global.battlemsg[0] = stringsetloc(
* Select the ACT ICON and HUG the Dummy!
"* Select the ACT ICON and HUG the Dummy!", "obj_ralseienemy_slash_Step_0_gml_174_0"
);
185
                        plot = 2;
186
                    }
187
                }
188
                misstime += 1;
189
            }
190
            if (dial == 3)
191
            {
192
                global.fe = 9;
193
                global.msg[0] = stringsetloc(
* ...Wait for input
"* .../", "obj_ralseienemy_slash_Step_0_gml_187_0"
);
194
                global.msg[1] = stringsetloc(
Face 8* Hey,Delay 11 Kris,Delay 11 I think I've,Delay 11 um...Wait for input
"\\E8* Hey^1, Kris^1, I think I've^1, um.../", "obj_ralseienemy_slash_Step_0_gml_188_0"
);
195
                global.msg[2] = stringsetloc(
Face 1* Reached the limits of what I can teach you today.Wait for input
"\\E1* Reached the limits of what I can teach you today./", "obj_ralseienemy_slash_Step_0_gml_189_0"
);
196
                global.msg[3] = stringsetloc(
Face 0* Let's go find Susie.Wait for inputClose Message
"\\E0* Let's go find Susie./%", "obj_ralseienemy_slash_Step_0_gml_190_0"
);
197
                if (hittime >= 3)
198
                {
199
                    global.fe = 2;
200
                    global.msg[0] = stringsetloc(
* ...Wait for input
"* .../", "obj_ralseienemy_slash_Step_0_gml_195_0"
);
201
                    global.msg[1] = stringsetloc(
* Kris,Delay 11 it's um...Wait for input
"* Kris^1, it's um.../", "obj_ralseienemy_slash_Step_0_gml_196_0"
);
202
                    global.msg[2] = stringsetloc(
Face 3* Really hard for me to teach when you're hitting me.Wait for input
"\\E3* Really hard for me to teach when you're hitting me./", "obj_ralseienemy_slash_Step_0_gml_197_0"
);
203
                    global.msg[3] = stringsetloc(
Face 8* Let's take a break and go find Susie,Delay 11 OK?Wait for inputClose Message
"\\E8* Let's take a break and go find Susie^1, OK?/%", "obj_ralseienemy_slash_Step_0_gml_198_0"
);
204
                }
205
                won = 1;
206
            }
207
            if (dial == 4)
208
            {
209
                global.fe = 3;
210
                if (hittime == 0)
211
                {
212
                    global.msg[0] = stringsetloc(
* K-Kris!?Wait for input
"* K-Kris!?/", "obj_ralseienemy_slash_Step_0_gml_212_0"
);
213
                    global.msg[1] = stringsetloc(
Face 1* Y-you must have missed...
* H... Haha...Wait for input
"\\E1* Y-you must have missed...&* H... Haha.../", "obj_ralseienemy_slash_Step_0_gml_213_0"
);
214
                    if (plot == 2)
215
                        global.msg[2] = stringsetloc(
Face 3* W-wait,Delay 11 aren't you supposed to be ACTing!?Wait for inputClose Message
"\\E3* W-wait^1, aren't you supposed to be ACTing!?/%", "obj_ralseienemy_slash_Step_0_gml_218_0"
);
216
                    if (plot == 1)
217
                    {
218
                        global.msg[2] = stringsetloc(
Face 3* A-anyway,Delay 11 now that you know how to attack...Wait for input
"\\E3* A-anyway^1, now that you know how to attack.../", "obj_ralseienemy_slash_Step_0_gml_222_0"
);
219
                        global.msg[3] = stringsetloc(
Face 8* Let's try learning how to ACT,Delay 11 OK?Wait for inputClose Message
"\\E8* Let's try learning how to ACT^1, OK?/%", "obj_ralseienemy_slash_Step_0_gml_223_0"
);
220
                        global.battlemsg[0] = stringsetloc(
* Select the ACT ICON and HUG the Dummy!
"* Select the ACT ICON and HUG the Dummy!", "obj_ralseienemy_slash_Step_0_gml_224_0"
);
221
                        plot = 2;
222
                    }
223
                }
224
                if (hittime == 1)
225
                {
226
                    global.msg[0] = stringsetloc(
* K-Kris!?Delay 11
* D-did you miss again!?Wait for input
"* K-Kris!^1?&* D-did you miss again!?/", "obj_ralseienemy_slash_Step_0_gml_231_0"
);
227
                    global.msg[1] = stringsetloc(
Face 1* ...Wait for input
"\\E1* .../", "obj_ralseienemy_slash_Step_0_gml_232_0"
);
228
                    global.msg[2] = stringsetloc(
Face 2* Though,Delay 11 I mean,Delay 11 if you wanted to hit me,Delay 11 that's ok, too...Wait for inputClose Message
"\\E2* Though^1, I mean^1, if you wanted to hit me^1, that's ok, too.../%", "obj_ralseienemy_slash_Step_0_gml_233_0"
);
229
                }
230
                hittime += 1;
231
            }
232
        }
233
        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 }
();
234
        talked = 1;
235
        talktimer = 0;
236
    }
237
    if (talked == 1 && global.mnfight == 1)
238
    {
239
        if (instance_exists(obj_writer) == false)
240
        {
241
            with (obj_face)
242
                instance_destroy();
243
            if (attackcon == 0)
244
            {
245
                global.mnfight = 2;
246
            }
247
            else
248
            {
249
                if (won == 1)
250
                {
251
                    global.mercymod[0] = 99999;
252
                    global.mercymod[1] = 99999;
253
                }
254
                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.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(); } for (i = 0; i < 12; i += 1) { for (j = 0; j < 3; j += 1) tempitem[i][j] = global.item[i]; } } ...
();
255
                dummyhp = global.monsterhp[0];
256
                myhp = global.monsterhp[1];
257
            }
258
        }
259
    }
260
    if (global.mnfight == 2 && attacked == 0)
261
    {
262
        if (attacks == 0)
263
            attackcon = 1;
264
        turns += 1;
265
        global.turntimer = 999;
266
        attacked = 1;
267
        rr = floor(random(0));
268
        global.typer = 6;
269
        global.fc = 0;
270
        if (rr == 0)
271
            global.battlemsg[0] = stringsetloc(
* Ralsei looks on expectedly.
"* Ralsei looks on expectedly.", "obj_ralseienemy_slash_Step_0_gml_288_0"
);
272
    }
273
}
274
if (attackcon < 92 && attackcon > 0)
275
{
276
    global.turntimer = 999;
277
    if (attackcon == 1)
278
    {
279
        krishp = global.hp[1];
280
        b1 = instance_create(obj_heart.x + 150, obj_heart.y, obj_ralseibullet);
281
        attackcon = 2;
282
        alarm[5] = 35;
283
    }
284
    if (attackcon == 3)
285
    {
286
        b2 = instance_create(obj_heart.x - 150, obj_heart.y, obj_ralseibullet);
287
        attackcon = 4;
288
        alarm[5] = 35;
289
    }
290
    if (attackcon == 5)
291
    {
292
        b3 = instance_create(obj_heart.x + 8, obj_heart.y - 150, obj_ralseibullet);
293
        attackcon = 6;
294
        alarm[5] = 60;
295
    }
296
    if (attackcon == 7)
297
    {
298
        attackcon = 8;
299
        global.turntimer = 999;
300
        if (krishp == global.hp[1])
301
        {
302
            global.fc = 2;
303
            global.fe = 0;
304
            global.typer = 45;
305
            global.msg[0] = stringsetloc(
* Yipee!Delay 11
* You did it,Delay 11 Kris!Wait for inputClose Message
"* Yipee^1!&* You did it^1, Kris!/%", "obj_ralseienemy_slash_Step_0_gml_334_0"
);
306
            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 }
();
307
            attackcon = 90;
308
        }
309
        else
310
        {
311
            global.fc = 2;
312
            global.fe = 3;
313
            global.typer = 45;
314
            global.msg[0] = stringsetloc(
* O-oopsie...Delay 22
* Was that too many?Wait for input
"* O-oopsie..^2.&* Was that too many?/", "obj_ralseienemy_slash_Step_0_gml_343_0"
);
315
            global.msg[1] = stringsetloc(
Face 8* Here,Delay 11 let's try just one!Wait for inputClose Message
"\\E8* Here^1, let's try just one!/%", "obj_ralseienemy_slash_Step_0_gml_344_0"
);
316
            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 }
();
317
        }
318
    }
319
    if (attackcon == 8 && instance_exists(obj_writer) == false)
320
    {
321
        with (obj_face)
322
            instance_destroy();
323
        krishp = global.hp[1];
324
        b1 = instance_create(obj_heart.x + 8, obj_heart.y - 150, obj_ralseibullet);
325
        attackcon = 9;
326
        alarm[5] = 60;
327
    }
328
    if (attackcon == 10)
329
    {
330
        attackcon = 11;
331
        global.turntimer = 999;
332
        if (krishp == global.hp[1])
333
        {
334
            global.fc = 2;
335
            global.fe = 0;
336
            global.typer = 45;
337
            global.msg[0] = stringsetloc(
* Yipee!Delay 11
* You did it,Delay 11 Kris!Wait for inputClose Message
"* Yipee^1!&* You did it^1, Kris!/%", "obj_ralseienemy_slash_Step_0_gml_369_0"
);
338
            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 }
();
339
            attackcon = 90;
340
        }
341
        else
342
        {
343
            global.fc = 2;
344
            global.fe = 9;
345
            global.typer = 45;
346
            global.msg[0] = stringsetloc(
* ...Wait for inputClose Message
"* .../%", "obj_ralseienemy_slash_Step_0_gml_378_0"
);
347
            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 }
();
348
        }
349
    }
350
    if (attackcon == 11 && instance_exists(obj_writer) == false)
351
    {
352
        b1 = instance_create(xx + 440, obj_heart.y + 8, obj_ralseibullet);
353
        with (b1)
354
        {
355
            special = 1;
356
alarm[0]
357
        }
358
        attackcon = 12;
359
        alarm[5] = 80;
360
    }
361
    if (attackcon == 13)
362
    {
363
        global.fc = 2;
364
        global.fe = 8;
365
        global.typer = 45;
366
        global.msg[0] = stringsetloc(
Face 8* L-look,Delay 11 Kris!Delay 11
* You dodged one!Wait for inputClose Message
"\\E8* L-look^1, Kris^1!&* You dodged one!/%", "obj_ralseienemy_slash_Step_0_gml_399_0"
);
367
        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 }
();
368
        attackcon = 90;
369
    }
370
    if (attackcon == 90 && instance_exists(obj_writer) == false)
371
    {
372
        global.fc = 2;
373
        global.fe = 0;
374
        global.typer = 45;
375
        global.charturn = 0;
376
        global.msg[0] = stringsetloc(
* Now,Delay 11 let's talk about SELECTING COMMANDS.Wait for input
"* Now^1, let's talk about \\cYSELECTING COMMANDS\\cW./", "obj_ralseienemy_slash_Step_0_gml_410_0"
);
377
        global.msg[1] = stringsetloc(
* These ICONS will let you ISSUE COMMANDS to YOUR TEAM.Wait for input
"* These ICONS will let you ISSUE COMMANDS to YOUR TEAM./", "obj_ralseienemy_slash_Step_0_gml_411_0"
);
378
        global.msg[2] = stringsetloc(
Face 0* The first ICON,Delay 11 THE SWORD,Delay 11 is the ATTACK COMMAND.Wait for input
"\\E0* The first ICON^1, THE SWORD^1, is the ATTACK COMMAND./", "obj_ralseienemy_slash_Step_0_gml_412_0"
);
379
        global.msg[3] = stringsetloc(
Face 1* Using it lets you,Delay 11 um...Delay 11
* Hurt people...Wait for input
"\\E1* Using it lets you^1, um..^1.&* Hurt people.../", "obj_ralseienemy_slash_Step_0_gml_413_0"
);
380
        global.msg[4] = stringsetloc(
Face 8* ... w-well,Delay 11 I guess we have to defend ourselves sometimes,Delay 11 right?Wait for inputClose Message
"\\E8* ... w-well^1, I guess we have to defend ourselves sometimes^1, right?/%", "obj_ralseienemy_slash_Step_0_gml_414_0"
);
381
        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 }
();
382
        attackcon = 91;
383
    }
384
    if (attackcon == 91)
385
    {
386
        global.turntimer = 999;
387
        if (instance_exists(obj_writer) == false)
388
        {
389
            dummyhp = global.monsterhp[0];
390
            myhp = global.monsterhp[1];
391
            global.turntimer = 0;
392
            global.battlemsg[0] = stringsetloc(
* Select the SWORD ICON to ATTACK the Dummy!Wait for inputClose Message
"* Select the SWORD ICON to ATTACK the Dummy!/%", "obj_ralseienemy_slash_Step_0_gml_427_0"
);
393
            plot = 1;
394
            attackcon = 92;
395
        }
396
    }
397
}
398
if (global.myfight == 3)
399
{
400
    xx = __view_get(e__VW.XView, 0);
401
    yy = __view_get(e__VW.YView, 0);
402
    if (acting == 1 && actcon == 0)
403
    {
404
        actcon = 1;
405
        global.msg[0] = stringsetloc(
* RALSEI - AT 8 DF 12
* The fluffy prince...Wait for inputClose Message
"* RALSEI - AT 8 DF 12&* The fluffy prince.../%", "obj_ralseienemy_slash_Step_0_gml_447_0"
);
406
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
407
    }
408
    if (acting == 2 && actcon == 0)
409
    {
410
        with (obj_herokris)
411
        {
412
            global.faceaction[myself] = 0;
413
            state = 0;
414
            acttimer = 0;
415
        }
416
        actcon = 10;
417
        global.msg[0] = stringsetloc(
* You hug RALSEI.Wait for inputClose Message
"* You hug RALSEI./%", "obj_ralseienemy_slash_Step_0_gml_464_0"
);
418
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
419
    }
420
    if (actcon == 1 && !instance_exists(obj_writer))
421
    {
422
        actcon = 0;
423
        scr_attackphase
scr_attackphase

function scr_attackphase() { with (obj_battlecontroller) { techwon = 0; if (scr_monsterpop() == 0) techwon = 1; if (global.chapter == 2 && i_ex(obj_berdlyb_enemy) && obj_berdlyb_enemy.endcon == 1) techwon = 1; else 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 (fightphase == 1) { global.myfight = 1; instance_create(xx + 2, yy + 365, obj_attackpress); } else { global.myfight = 4; instance_create(0, 0, obj_spellphase); } } } }
();
424
    }
425
    if (actcon == 10)
426
    {
427
        with (global.charinstance[0])
428
            visible = 0;
429
        k = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(global.charinstance[0].x, global.charinstance[0].y, spr_kris_hug);
430
        with (k)
431
            scr_move_to_point_over_time
scr_move_to_point_over_time

function scr_move_to_point_over_time(arg0, arg1, arg2) { _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(global.monsterx[1] - 42, global.monstery[1] - 16, 15);
432
        actcon = 11;
433
        alarm[4] = 25;
434
    }
435
    if (actcon == 12)
436
    {
437
        sprite_index = spr_ralseib_idle_enemy_blush;
438
        with (k)
439
            image_speed = 0.25;
440
        actcon = 13;
441
        alarm[4] = 12;
442
    }
443
    if (actcon == 14)
444
    {
445
        with (k)
446
            image_speed = 0;
447
        actcon = 15;
448
    }
449
    if (actcon == 15 && !instance_exists(obj_writer))
450
    {
451
        global.typer = 45;
452
        global.fc = 2;
453
        global.fe = 2;
454
        global.msg[0] = stringsetloc(
* K...Delay 11 Kris!?Wait for inputClose Message
"* K..^1. Kris!?/%", "obj_ralseienemy_slash_Step_0_gml_504_0"
);
455
        if (hugtime == 0)
456
        {
457
            global.msg[0] = stringsetloc(
* K...Delay 11 Kris!?Wait for input
"* K..^1. Kris!?/", "obj_ralseienemy_slash_Step_0_gml_508_0"
);
458
            global.msg[1] = stringsetloc(
Face 8* Ummm,Delay 11 I don't think,Delay 11 um...Wait for input
"\\E8* Ummm^1, I don't think^1, um.../", "obj_ralseienemy_slash_Step_0_gml_509_0"
);
459
            global.msg[2] = stringsetloc(
* This is what you're supposed to be doing.Wait for input
"* This is what you're supposed to be doing./", "obj_ralseienemy_slash_Step_0_gml_510_0"
);
460
            global.msg[3] = stringsetloc(
Face 2* (But I don't really want to tell you to stop...)Wait for inputClose Message
"\\E2* (But I don't really want to tell you to stop...)/%", "obj_ralseienemy_slash_Step_0_gml_511_0"
);
461
        }
462
        if (hugtime == 1)
463
        {
464
            global.msg[0] = stringsetloc(
* Kris!?Wait for input
"* Kris!?/", "obj_ralseienemy_slash_Step_0_gml_516_0"
);
465
            global.msg[1] = stringsetloc(
Face 2* Umm,Delay 11 if that's what you r-really want...Wait for input
"\\E2* Umm^1, if that's what you r-really want.../", "obj_ralseienemy_slash_Step_0_gml_517_0"
);
466
            global.msg[2] = stringsetloc(
Face 8* Then that's a victory in my book!Delay 11
* You win!Wait for inputClose Message
"\\E8* Then that's a victory in my book^1!&* You win!/%", "obj_ralseienemy_slash_Step_0_gml_518_0"
);
467
            global.flag[205 tutorial_end] = 2;
468
            won = 1;
469
        }
470
        hugtime += 1;
471
        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 }
();
472
        actcon = 16;
473
    }
474
    if (actcon == 16 && !instance_exists(obj_writer))
475
    {
476
        with (myface)
477
            instance_destroy();
478
        with (k)
479
            image_speed = -0.25;
480
        actcon = 17;
481
        alarm[4] = 12;
482
    }
483
    if (actcon == 18)
484
    {
485
        with (k)
486
            image_speed = 0;
487
        with (k)
488
            scr_move_to_point_over_time
scr_move_to_point_over_time

function scr_move_to_point_over_time(arg0, arg1, arg2) { _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(global.charinstance[0].x, global.charinstance[0].y, 15);
489
        actcon = 19;
490
        alarm[4] = 25;
491
    }
492
    if (actcon == 20)
493
    {
494
        sprite_index = spr_ralseib_idle_enemy;
495
        with (k)
496
            instance_destroy();
497
        global.charinstance[0].visible = 1;
498
        actcon = 1;
499
        if (won == 1)
500
        {
501
            global.mercymod[0] = 999999;
502
            global.mercymod[1] = 999999;
503
        }
504
    }
505
}
506
if (con == 1)
507
{
508
    alarm[4] = 5;
509
    con = 2;
510
}
511
if (con == 3)
512
{
513
    global.typer = 7;
514
    global.msg[0] = stringsetloc(
H-hey,Delay 11 wait
a second...Wait for input
"H-hey^1, wait&a second.../", "obj_ralseienemy_slash_Step_0_gml_575_0"
);
515
    global.msg[1] = stringsetloc(
My bike's
running
out of
gas...!Wait for input
"My bike's&running&out of&gas...!/", "obj_ralseienemy_slash_Step_0_gml_576_0"
);
516
    global.msg[2] = stringsetloc(
Alright,
you punk-
a-roos!Wait for input
"Alright,&you punk-&a-roos!/", "obj_ralseienemy_slash_Step_0_gml_577_0"
);
517
    global.msg[3] = stringsetloc(
You got
got lucky
this time!Wait for input
"You got&got lucky&this time!/", "obj_ralseienemy_slash_Step_0_gml_578_0"
);
518
    global.msg[4] = stringsetloc(
But next
time,Delay 11
you're
gonna
suffer!!!Wait for input
"But next&time^1,&you're&gonna&suffer!!!/", "obj_ralseienemy_slash_Step_0_gml_579_0"
);
519
    global.msg[5] = stringsetloc(
See you
in the
next hell,Delay 11
losers!Wait for inputClose Message
"See you&in the&next hell^1,&losers!/%", "obj_ralseienemy_slash_Step_0_gml_580_0"
);
520
    con = 4;
521
    mywriter = instance_create(x - 160, y - 30, obj_writer);
522
}
523
if (con == 4 && !instance_exists(obj_writer))
524
{
525
    hspeed = 20;
526
    con = 5;
527
    alarm[4] = 15;
528
    with (obj_battlecontroller)
529
    {
530
        noreturn = 0;
531
alarm[2]
532
    }
533
}
534
if (con == 6)
535
{
536
    global.monsterexp[myself] -= 0;
537
    global.monstergold[myself] += 10;
538
    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 (fatal == 1) global.flag[44 kills]++; } 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 (global.flag[51 + myself] == 6) { global.flag[45 freezes] += 1; global.monstergold[3] += 24; } if (scr_monsterpop() == 0) { _amt_add = 0; _frozened = 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 (global.flag[51 + d_i] == 6) _frozened += 1; } if (_frozened > 0) global.flag[50 last_encounter_end] = 6; 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; if (_frozened > 0) { if (_pacified > 0 || _violenced > 0 || _spared > 0) global.flag[50 last_encounter_end] = 1; } if (global.flag[50 last_encounter_end] == 6) global.flag[926 iceshocked_encounters]++; if (global.flag[54 encounter_pointer] != 0) { global.flag[global.flag[54 encounter_pointer]] = global.flag[50 last_encounter_end]; global.flag[54 encounter_pointer] = 0; } } event_user(11); } }
();
539
    instance_destroy();
540
    con = 7;
541
}
542
543
enum e__VW
544
{
545
    XView,
546
    YView,
547
    WView,
548
    HView,
549
    Angle,
550
    HBorder,
551
    VBorder,
552
    HSpeed,
553
    VSpeed,
554
    Object,
555
    Visible,
556
    XPort,
557
    YPort,
558
    WPort,
559
    HPort,
560
    Camera,
561
    SurfaceID
562
}