Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_poppup_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (blockbuffer > 0)
2
    blockbuffer--;
3
if (global.monster[myself] == 1)
4
{
5
    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)
6
    {
7
        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; } }
();
8
        if (!instance_exists(obj_darkener))
9
            instance_create(0, 0, obj_darkener);
10
        with (obj_poppup_ad)
11
            state = 2;
12
        global.typer = 50;
13
        var dialogText = stringsetloc("", "obj_poppup_enemy_slash_Step_0_gml_18_0");
14
        if (random(100) >= 99)
15
        {
16
            dialogText = stringsetloc(
GOKARMASHI
O INARY....?
"GOKARMASHI&O INARY....?", "obj_poppup_enemy_slash_Step_0_gml_22_0"
);
17
        }
18
        else
19
        {
20
            dialogText = stringsetloc("", "obj_poppup_enemy_slash_Step_0_gml_25_0");
21
            rr = choose(0, 1, 2, 3);
22
            if (rr == 0)
23
                dialogText = stringsetloc(
.....ASOBOH
......?
".....ASOBOH&......?", "obj_poppup_enemy_slash_Step_0_gml_27_0"
);
24
            if (rr == 1)
25
                dialogText = stringsetloc(
...OTANJOBY..
OMEDETOH...?
"...OTANJOBY..&OMEDETOH...?", "obj_poppup_enemy_slash_Step_0_gml_28_0"
);
26
            if (rr == 2)
27
                dialogText = stringsetloc(
This application is only
supported by OS 2000.
"This application is only&supported by OS 2000.", "obj_poppup_enemy_slash_Step_0_gml_29_0"
);
28
            if (rr == 3)
29
                dialogText = stringsetloc(
Click Here! Click Here!
Click Here! Click Here!
"Click Here! Click Here!&Click Here! Click Here!", "obj_poppup_enemy_slash_Step_0_gml_30_0"
);
30
            if (global.monsterstatus[myself] == 1 && !becameTired)
31
            {
32
                becameTired = true;
33
                dialogText = stringsetloc(
...NEMMUY...
"...NEMMUY...", "obj_poppup_enemy_slash_Step_0_gml_35_0"
);
34
            }
35
        }
36
        if (avoiding)
37
            dialogText = stringsetloc(
NEED...
LOOK...
ME...
"NEED...&LOOK...&ME...", "obj_poppup_enemy_slash_Step_0_gml_41_0"
);
38
        if (global.mercymod[myself] >= global.mercymax[myself] && !becameSpareable)
39
        {
40
            becameSpareable = true;
41
            avoiding = false;
42
            dialogText = stringsetloc(
...HAPPI...
"...HAPPI...", "obj_poppup_enemy_slash_Step_0_gml_48_0"
);
43
        }
44
        msgset(0, dialogText);
45
        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; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } }
((x - 40 - 42) + 70, (global.monstery[myself] - 125 - 62) + 172, 10);
46
        talked = 1;
47
        talktimer = 0;
48
    }
49
    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"))
50
    {
51
        rtimer = 0;
52
        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(); global.mnfight = 2; } } else if (arg0 == -1) { if (instance_exists(obj_writer) == false) global.mnfight = 2; } else if (arg0 == -2) { talktimer += 1; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); global.mnfight = 2; } } }
(15);
53
        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"))
54
        {
55
            if (!instance_exists(obj_moveheart))
56
                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); }
();
57
            if (!instance_exists(obj_growtangle))
58
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
59
        }
60
    }
61
    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)
62
    {
63
        rtimer += 1;
64
        if (rtimer == 12)
65
        {
66
            if (scr_monsterpop
scr_monsterpop

function scr_monsterpop() { return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 0 || (myself != 0 && scr_attackprepcheck
scr_attackprepcheck

function scr_attackprepcheck(arg0, arg1) { if (arg0 == 0) return 0; var __attackcount = 0; for (i = 0; i < arg0; i++) { if (global.monster[i] && global.monsterattackname[i] == arg1) __attackcount++; } return __attackcount; }
(myself, "Popups") > (myself - 1)) || allblocked)
67
                rr = 0;
68
            else
69
                rr = choose(0, 1);
70
            if (rr == 0)
71
            {
72
                global.monsterattackname[myself] = "Birds";
73
                dc = scr_bulletspawner
scr_bulletspawner

function scr_bulletspawner(arg0, arg1, arg2) { __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
74
                dc.type = 11;
75
                if (avoiding)
76
                    dc.special = 1;
77
            }
78
            else
79
            {
80
                global.monsterattackname[myself] = "Popups";
81
                dc = scr_bulletspawner
scr_bulletspawner

function scr_bulletspawner(arg0, arg1, arg2) { __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
82
                dc.type = 12;
83
                if (avoiding)
84
                    dc.special = 1;
85
            }
86
            scr_turntimer
scr_turntimer

function scr_turntimer(arg0) { if (global.turntimer < arg0) global.turntimer = arg0; }
(140);
87
            turns += 1;
88
            global.typer = 6;
89
            global.fc = 0;
90
            var battleText = stringsetloc("", "obj_poppup_enemy_slash_Step_0_gml_110_0");
91
            rr = choose(0, 1, 2, 3);
92
            if (rr == 0)
93
                battleText = stringsetloc(
* Poppup is begging you to click on a broken link with puppy dog eyes.
"* Poppup is begging you to click on a broken link with puppy dog eyes.", "obj_poppup_enemy_slash_Step_0_gml_112_0"
);
94
            if (rr == 1)
95
                battleText = stringsetloc(
* Poppup is preening its weird rubbery flesh.
"* Poppup is preening its weird rubbery flesh.", "obj_poppup_enemy_slash_Step_0_gml_113_0"
);
96
            if (rr == 2)
97
            {
98
                var randomText = stringsetloc("", "obj_poppup_enemy_slash_Step_0_gml_116_0");
99
                var randomChoice = choose(0, 1, 2, 3, 4, 5, 6);
100
                if (randomChoice == 0)
101
                    randomText = stringsetloc(
Liimo Berry
"Liimo Berry", "obj_poppup_enemy_slash_Step_0_gml_120_0"
);
102
                else if (randomChoice == 1)
103
                    randomText = stringsetloc(
PlayTime
"PlayTime", "obj_poppup_enemy_slash_Step_0_gml_123_0"
);
104
                else if (randomChoice == 2)
105
                    randomText = stringsetloc(
its tongue to be pressed in so it doesn't feel hunger anymore
"its tongue to be pressed in so it doesn't feel hunger anymore", "obj_poppup_enemy_slash_Step_0_gml_126_0"
);
106
                else if (randomChoice == 3)
107
                    randomText = stringsetloc(
Scary Noise
"Scary Noise", "obj_poppup_enemy_slash_Step_0_gml_129_0"
);
108
                else if (randomChoice == 4)
109
                    randomText = stringsetloc(
To Play With You In The Mystical Island Of Mysticisland
"To Play With You In The Mystical Island Of Mysticisland", "obj_poppup_enemy_slash_Step_0_gml_132_0"
);
110
                else if (randomChoice == 5)
111
                    randomText = stringsetloc(
Do Taxes At 7:44 AM
"Do Taxes At 7:44 AM", "obj_poppup_enemy_slash_Step_0_gml_135_0"
);
112
                else if (randomChoice == 6)
113
                    randomText = stringsetloc(
Randomized String 1
"Randomized String 1", "obj_poppup_enemy_slash_Step_0_gml_138_0"
);
114
                battleText = stringsetsubloc("* Poppup wants ~1", randomText, "obj_poppup_enemy_slash_Step_0_gml_140_0");
115
            }
116
            if (rr == 3)
117
                battleText = stringsetloc(
* Smells like tropical candy.
"* Smells like tropical candy.", "obj_poppup_enemy_slash_Step_0_gml_142_0"
);
118
            if (global.monsterstatus[myself] == 1)
119
                battleText = stringsetloc(
* Poppup feels like it's been put upside down in a closet.
"* Poppup feels like it's been put upside down in a closet.", "obj_poppup_enemy_slash_Step_0_gml_146_0"
);
120
            if (global.mercymod[myself] >= global.mercymax[myself])
121
                battleText = stringsetloc(
* Poppup is popping with joy!
"* Poppup is popping with joy!", "obj_poppup_enemy_slash_Step_0_gml_151_0"
);
122
            global.battlemsg[0] = battleText;
123
            attacked = 1;
124
        }
125
        else
126
        {
127
            scr_turntimer
scr_turntimer

function scr_turntimer(arg0) { if (global.turntimer < arg0) global.turntimer = arg0; }
(120);
128
        }
129
    }
130
}
131
if (global.myfight == 3)
132
{
133
    xx = __view_get(e__VW.XView, 0);
134
    yy = __view_get(e__VW.YView, 0);
135
    if (acting == 1 && actcon == 0)
136
    {
137
        actcon = 1;
138
        msgsetloc(0, 
* POPPUP - A rubbery mascot starved for attention. Click it and...?Wait for inputClose Message
"* POPPUP - A rubbery mascot starved for attention. Click it and...?/%", "obj_poppup_enemy_slash_Step_0_gml_176_0"
);
139
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
140
    }
141
    if (acting == 2 && actcon == 0)
142
    {
143
        if (avoiding)
144
        {
145
            avoiding = false;
146
            idlesprite = spr_poppup_idle;
147
        }
148
        if (scr_monsterpop
scr_monsterpop

function scr_monsterpop() { return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 3)
149
        {
150
            staticOwner = true;
151
            actcon = 10;
152
            msgsetloc(0, 
* You just kept clicking and clicking on ads!!Wait for inputClose Message
"* You just kept clicking and clicking on ads!!/%", "obj_poppup_enemy_slash_Step_0_gml_192_0"
);
153
        }
154
        else
155
        {
156
            actcon = 5;
157
            rr = choose(0, 1, 2);
158
            if (rr == 0)
159
                msgsetloc(0, 
* You unconsciously clicked on a popup about "monsters 4 humans" "in your area,"Wait for inputClose Message
"* You unconsciously clicked on a popup about \"monsters 4 humans\" \"in your area,\"/%", "obj_poppup_enemy_slash_Step_0_gml_198_0"
);
160
            if (rr == 1)
161
                msgsetloc(0, 
* You unconsciously clicked on an ad for a video about making knives out of spaghetti.Wait for inputClose Message
"* You unconsciously clicked on an ad for a video about making knives out of spaghetti./%", "obj_poppup_enemy_slash_Step_0_gml_199_0"
);
162
            if (rr == 2)
163
                msgsetloc(0, 
* You unconsciously clicked on a popup about demon summoning classes for teens.Wait for inputClose Message
"* You unconsciously clicked on a popup about demon summoning classes for teens./%", "obj_poppup_enemy_slash_Step_0_gml_200_0"
);
164
        }
165
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
166
    }
167
    if (actcon == 10 && !instance_exists(obj_writer))
168
    {
169
        if (staticPoppup < 21)
170
        {
171
            staticPoppup++;
172
            cloning = true;
173
            snd_stop(snd_acquire_lancer);
174
            snd_play(snd_acquire_lancer);
175
            overload = instance_create(x, y, obj_poppup_overload);
176
            overload.image_index = siner;
177
            if (staticPoppup == 1)
178
            {
179
                overload.direction = 180;
180
                overload.speed = 14;
181
                overload.friction = 1;
182
                overload.depth = depth + 1;
183
            }
184
            if (staticPoppup == 2)
185
            {
186
                overload.direction = 110;
187
                overload.speed = 14;
188
                overload.friction = 1;
189
                overload.depth = depth + 1;
190
            }
191
            if (staticPoppup == 3)
192
            {
193
                overload.direction = 290;
194
                overload.speed = 10;
195
                overload.friction = 1;
196
                overload.depth = depth - 1;
197
            }
198
            if (staticPoppup > 3)
199
            {
200
                overload.direction = clonedirection;
201
                overload.speed = 28;
202
                overload.friction = 1 + (random(53) / 30);
203
                overload.depth = depth - 1;
204
                clonedirection += (197 + random(35));
205
            }
206
            actcon = 9;
207
            if (staticPoppup < 3)
208
                alarm[4] = 9;
209
            if (staticPoppup > 2)
210
                alarm[4] = 6;
211
            if (staticPoppup > 5)
212
                alarm[4] = 3;
213
        }
214
        else
215
        {
216
            actcon = 5;
217
        }
218
    }
219
    if (actcon == 5 && !instance_exists(obj_writer))
220
    {
221
        actcon = 1;
222
        if (staticPoppup > 20)
223
        {
224
            with (obj_poppup_overload)
225
                speed = 0;
226
            snd_stop(snd_acquire_lancer);
227
            msgsetloc(0, 
* The Poppups crashed!Wait for inputClose Message
"* The Poppups crashed!/%", "obj_poppup_enemy_slash_Step_0_gml_239_0"
);
228
            scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
229
            actcon = 5.1;
230
            with (obj_poppup_overload)
231
                image_speed = 0;
232
            with (obj_poppup_enemy)
233
                alarm[6] = 1;
234
        }
235
        else
236
        {
237
            cloning = true;
238
            snd_play(snd_acquire_lancer);
239
            newpopupid = scr_monster_add
scr_monster_add

function scr_monster_add(arg0, arg1) { __returnid = -1; for (__mopenslot = 0; __mopenslot < 3; __mopenslot++) { if (global.monster[__mopenslot] == 0) { global.monstertype[__mopenslot] = arg0; global.monsterinstancetype[__mopenslot] = arg1; scr_monster_statreset(__mopenslot); scr_monster_makeinstance(__mopenslot); __returnid = __mopenslot; break; } } return __returnid; }
(31, obj_poppup_enemy);
240
            global.monsterinstance[newpopupid].cloning = true;
241
            global.monsterinstance[newpopupid].x = x;
242
            global.monsterinstance[newpopupid].y = y;
243
            global.monsterinstance[newpopupid].siner = siner;
244
            with (global.monsterinstance[newpopupid])
245
                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.monstermakex[myself], global.monstermakey[myself], 20);
246
            actcon = 6;
247
            alarm[4] = 20;
248
        }
249
    }
250
    if (actcon == 5.1)
251
    {
252
        with (obj_battleback)
253
        {
254
            siner -= 0.5;
255
            siner2 -= 1;
256
        }
257
    }
258
    if (actcon == 5.1 && !instance_exists(obj_writer))
259
    {
260
        actcon = 5.2;
261
        with (obj_poppup_overload)
262
            con = 1;
263
    }
264
    if (actcon == 5.2 && !instance_exists(obj_poppup_overload))
265
    {
266
        with (obj_poppup_enemy)
267
        {
268
            for (var __i = 1; __i < 3; __i++)
269
            {
270
                if (global.actingtarget[__i] == myself && global.char[__i] > 0)
271
                {
272
                    global.acting[__i] = 0;
273
                    global.actingsimul[__i] = 0;
274
                    global.actingsingle[__i] = 0;
275
                    global.faceaction[__i] = 0;
276
                }
277
            }
278
            scr_mercyadd
scr_mercyadd

function scr_mercyadd(arg0, arg1) { global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _playsound = 0; } } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 100);
279
            scr_spare
scr_spare

function scr_spare(arg0) { with (global.monsterinstance[arg0]) event_user(10); }
(myself);
280
        }
281
        actcon = 1;
282
    }
283
    if (actcon == 7 && !instance_exists(obj_writer))
284
    {
285
        cloning = false;
286
        global.monsterinstance[newpopupid].cloning = false;
287
        actcon = 1;
288
        msgsetloc(0, 
* Huh...!? That made another one!?Wait for inputClose Message
"* Huh...!? That made another one!?/%", "obj_poppup_enemy_slash_Step_0_gml_298_0"
);
289
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
290
    }
291
    if (acting == 3 && actcon == 0)
292
    {
293
        blockAds = 5;
294
        blocked = 0;
295
        blockTimer = false;
296
        popupscreated = 0;
297
        msgsetsubloc(0, "* Press ~1 repeatedly to block the ads!!/%", scr_get_input_name
scr_get_input_name

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

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
299
        actcon = 20.5;
300
        var randomX = random_range(camerax() + 260, camerax() + 380);
301
        var randomY = random_range(cameray() + 170, cameray() + 230);
302
        ads[popupscreated] = instance_create(randomX, randomY, obj_poppup_ad);
303
        popupscreated++;
304
    }
305
    if (actcon == 20.5 && !instance_exists(obj_writer))
306
    {
307
        if (poppupwait == 1)
308
        {
309
            poppupwait = 0;
310
        }
311
        else if (blockTimer == true && popupscreated < 10)
312
        {
313
            var randomX = random_range(camerax() + 190, camerax() + 450);
314
            var randomY = random_range(cameray() + 70, cameray() + 230);
315
            ads[popupscreated] = instance_create(randomX, randomY, obj_poppup_ad);
316
            popupscreated++;
317
            poppupwait = 1;
318
        }
319
        if (button3_p() && blockbuffer == 0)
320
        {
321
            blockbuffer = 2;
322
            if (blockTimer == false)
323
            {
324
                blockTimer = true;
325
                alarm[4] = 75;
326
            }
327
            if (blockAds >= 0)
328
            {
329
                with (obj_poppup_enemy)
330
                    mercytotal += 10;
331
                with (ads[blocked])
332
                    blockstate = 1;
333
                blocked++;
334
            }
335
            if (blocked == 10)
336
                actcon = 21.5;
337
        }
338
    }
339
    if (actcon == 21.5)
340
    {
341
        actcon = 21.6;
342
        alarm[4] = 10;
343
    }
344
    if (actcon == 22.6)
345
    {
346
        actcon = 22.7;
347
        with (obj_poppup_enemy)
348
        {
349
            if (global.mercymod[myself] < global.mercymax[myself])
350
                scr_mercyadd
scr_mercyadd

function scr_mercyadd(arg0, arg1) { global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _playsound = 0; } } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, mercytotal);
351
            if (mercytotal > 0 && global.mercymod[myself] >= 100)
352
                allblocked = 1;
353
        }
354
        alarm[4] = 40;
355
        for (var i = 0; i < array_length_1d(ads); i++)
356
        {
357
            with (ads[i])
358
                instance_destroy();
359
        }
360
        if (!instance_exists(obj_blocked_total_fx))
361
        {
362
            fx = instance_create(x - 50, y, obj_blocked_total_fx);
363
            fx.count = blocked;
364
        }
365
        snd_play(snd_coin);
366
    }
367
    if (actcon == 23.7)
368
    {
369
        actcon = 1;
370
        if (instance_exists(obj_writer))
371
        {
372
            with (obj_writer)
373
                instance_destroy();
374
        }
375
    }
376
    if (acting == 4 && actcon == 0)
377
    {
378
        actcon = 30;
379
        scr_speaker
scr_speaker

function scr_speaker(arg0) { _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("no_name");
380
        msgsetloc(0, 
* Noelle got nervous and looked at the ground!Wait for inputClose Message
"* Noelle got nervous and looked at the ground!/%", "obj_poppup_enemy_slash_Step_0_gml_415_0"
);
381
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
382
    }
383
    if (actcon == 30 && !instance_exists(obj_writer))
384
    {
385
        if (!avoiding)
386
        {
387
            with (obj_poppup_enemy)
388
            {
389
                avoiding = true;
390
                idlesprite = spr_poppup_shrivel_idle;
391
            }
392
        }
393
        with (obj_monsterparent)
394
        {
395
            if (global.monsterstatus[myself] != 1)
396
                scr_monster_make_tired
scr_monster_make_tired

function scr_monster_make_tired(arg0) { global.monstercomment[arg0] = stringsetloc(
(Tired)
"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0"
); global.monsterstatus[arg0] = 1; }
(myself);
397
        }
398
        scr_speaker
scr_speaker

function scr_speaker(arg0) { _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("no_name");
399
        msgsetloc(0, 
* The enemies got shrivelled and TIRED from lack of attention!Wait for inputClose Message
"* The enemies got shrivelled and TIRED from lack of attention!/%", "obj_poppup_enemy_slash_Step_0_gml_438_0"
);
400
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
401
        actcon = 1;
402
    }
403
    if (actingsus == 1 && actconsus == 1)
404
    {
405
        scr_speaker
scr_speaker

function scr_speaker(arg0) { _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("no_name");
406
        var a = choose(0, 1, 2);
407
        if (a == 0)
408
            msgsetloc(0, 
* Susie accidentally clicked on an ad featuring a flaming eggplant holding a chainsaw!!Wait for inputClose Message
"* Susie accidentally clicked on an ad featuring a flaming eggplant holding a chainsaw!!/%", "obj_poppup_enemy_slash_Step_0_gml_449_0"
);
409
        if (a == 1)
410
        {
411
            msgsetloc(0, 
* Susie accidentally clicked on a picture of a steak.Wait for input
"* Susie accidentally clicked on a picture of a steak./", "obj_poppup_enemy_slash_Step_0_gml_453_0"
);
412
            msgnextloc(
* It wasn't actually an ad, just a static image of a steak...Wait for inputClose Message
"* It wasn't actually an ad, just a static image of a steak.../%", "obj_poppup_enemy_slash_Step_0_gml_454_0"
);
413
        }
414
        if (a == 2)
415
        {
416
            msgsetloc(0, 
* Susie missed clicking on an ad and ended up clicking on the word processor.Wait for input
"* Susie missed clicking on an ad and ended up clicking on the word processor./", "obj_poppup_enemy_slash_Step_0_gml_458_0"
);
417
            msgnextloc(
* It got a virus somehow.Wait for inputClose Message
"* It got a virus somehow./%", "obj_poppup_enemy_slash_Step_0_gml_459_0"
);
418
        }
419
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
420
        actconsus = 1.1;
421
    }
422
    if (actconsus == 1.1 && !instance_exists(obj_writer))
423
    {
424
        scr_act_charsprite
scr_act_charsprite

function scr_act_charsprite(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; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1); with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40); scr_oflash(); if (arg2 > 0 && arg3 == 0) scr_animate(0, 0, arg2); if (arg2 > 0 && arg3 == 1) image_speed = arg2; a = scr_afterimage(); a.hspeed = 2.5; a.depth = depth + 1; b = scr_afterimage(); b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("susie", spr_susie_shock_r, 0, 0);
425
        scr_speaker
scr_speaker

function scr_speaker(arg0) { _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("susie");
426
        msgsetloc(0, 
Face 5* D...Delay 11 Damn!!Delay 11 They knew what I'd fall for!!Wait for inputClose Message
"\\E5* D..^1. Damn!^1! They knew what I'd fall for!!/%", "obj_poppup_enemy_slash_Step_0_gml_470_0"
);
427
        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 }
();
428
        if (global.mercymod[myself] < global.mercymax[myself])
429
            scr_mercyadd
scr_mercyadd

function scr_mercyadd(arg0, arg1) { global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _playsound = 0; } } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 50);
430
        actconsus = 0;
431
        actcon = 1;
432
    }
433
    if (actingral == 1 && actconral == 1 && !i_ex(obj_writer))
434
    {
435
        scr_speaker
scr_speaker

function scr_speaker(arg0) { _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("no_name");
436
        var a = choose(0, 1, 2);
437
        if (a == 0)
438
        {
439
            msgsetloc(0, 
* Ralsei moved to click on an ad with a bunny on it teaching you how to make friends...Wait for input
"* Ralsei moved to click on an ad with a bunny on it teaching you how to make friends.../", "obj_poppup_enemy_slash_Step_0_gml_484_0"
);
440
            msgnextloc(
* ...and accidentally clicked on an ad of a machine gun that appeared over it!Wait for inputClose Message
"* ...and accidentally clicked on an ad of a machine gun that appeared over it!/%", "obj_poppup_enemy_slash_Step_0_gml_485_0"
);
441
        }
442
        if (a == 1)
443
        {
444
            msgsetloc(0, 
* Ralsei tried to click on an ad with a castle on it...Wait for input
"* Ralsei tried to click on an ad with a castle on it.../", "obj_zpoppup_enemy_slash_Step_0_gml_489_0"
);
445
            msgnextloc(
* ...but it was actually an ad for a company that demolishes buildings with bazookas!Wait for inputClose Message
"* ...but it was actually an ad for a company that demolishes buildings with bazookas!/%", "obj_poppup_enemy_slash_Step_0_gml_490_0"
);
446
        }
447
        if (a == 2)
448
        {
449
            msgsetloc(0, 
* Ralsei accidentally clicked on an ad for "lightners 4 darkners in ur area" and was mortified.Wait for input
"* Ralsei accidentally clicked on an ad for \"lightners 4 darkners in ur area\" and was mortified./", "obj_poppup_enemy_slash_Step_0_gml_494_0"
);
450
            msgnextloc(
* He deleted the browser shortcut on the desktop entirely...Wait for input
"* He deleted the browser shortcut on the desktop entirely.../", "obj_poppup_enemy_slash_Step_0_gml_495_0"
);
451
            msgnextloc(
* ...but immediately felt guilty because he thought he had "deleted the entire internet".Wait for inputClose Message
"* ...but immediately felt guilty because he thought he had \"deleted the entire internet\"./%", "obj_poppup_enemy_slash_Step_0_gml_496_0"
);
452
        }
453
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
454
        actconral = 1.1;
455
    }
456
    if (actconral == 1.1 && !instance_exists(obj_writer))
457
    {
458
        scr_act_charsprite
scr_act_charsprite

function scr_act_charsprite(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; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1); with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40); scr_oflash(); if (arg2 > 0 && arg3 == 0) scr_animate(0, 0, arg2); if (arg2 > 0 && arg3 == 1) image_speed = arg2; a = scr_afterimage(); a.hspeed = 2.5; a.depth = depth + 1; b = scr_afterimage(); b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("ralsei", spr_ralsei_hurt_fixed, 0, 0);
459
        scr_speaker
scr_speaker

function scr_speaker(arg0) { _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("ralsei");
460
        msgsetloc(0, 
Face U* I... I didn't mean to do it... I... I'm sorry!!!Delay 11 I repent!!!Wait for inputClose Message
"\\EU* I... I didn't mean to do it... I... I'm sorry!!^1! I repent!!!/%", "obj_poppup_enemy_slash_Step_0_gml_507_0"
);
461
        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 }
();
462
        if (global.mercymod[myself] < global.mercymax[myself])
463
            scr_mercyadd
scr_mercyadd

function scr_mercyadd(arg0, arg1) { global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _playsound = 0; } } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 50);
464
        actconral = 0;
465
        actcon = 1;
466
    }
467
    if (actingnoe == 1 && actconnoe == 1)
468
    {
469
        scr_mercyadd
scr_mercyadd

function scr_mercyadd(arg0, arg1) { global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _playsound = 0; } } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 50);
470
        var random_line = choose(0, 1, 2);
471
        var line = "";
472
        if (random_line == 0)
473
            line = stringsetloc(
* Noelle misclicked on a link to buy How To Draw Dragons!Wait for input
"* Noelle misclicked on a link to buy How To Draw Dragons!/", "obj_poppup_enemy_slash_Step_0_gml_524_0"
);
474
        else if (random_line == 1)
475
            line = stringsetloc(
* Noelle clicked on a link for creepy game glitch compilations!Wait for input
"* Noelle clicked on a link for creepy game glitch compilations!/", "obj_poppup_enemy_slash_Step_0_gml_527_0"
);
476
        else if (random_line == 2)
477
            line = stringsetloc(
* Noelle clicked on a link for Hot Female Santas In Your Area!Wait for input
"* Noelle clicked on a link for Hot Female Santas In Your Area!/", "obj_poppup_enemy_slash_Step_0_gml_530_0"
);
478
        scr_speaker
scr_speaker

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

function scr_anyface_next(arg0, arg1) { global.msgno++; scr_anyface(arg0, global.msgno, arg1); }
("noelle", "8");
481
        msgnextloc(
Face 8* Wh-what!? What did I do wrong??Wait for inputClose Message
"\\E8* Wh-what!? What did I do wrong??/%", "obj_poppup_enemy_slash_Step_0_gml_536_0"
);
482
        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 }
();
483
        actconnoe = (simulordernoe == 0) ? 20 : 0;
484
    }
485
    if (actcon == 1 && !instance_exists(obj_writer))
486
    {
487
        scr_act_charsprite_end
scr_act_charsprite_end

function scr_act_charsprite_end() { for (i = 0; i < 10; i++) { with (_charactsprite[i]) instance_destroy(); } with (obj_heroparent) { if (image_alpha == 0) { image_alpha = 1; acttimer = 0; state = 0; global.faceaction[myself] = 0; } } }
();
488
        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 (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(); } }
();
489
    }
490
    if (actcon == 20 || actconsus == 20 || actconral == 20 || actconnoe == 20)
491
    {
492
        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; }
())
493
        {
494
            actconsus = -1;
495
            actconral = -1;
496
            actconnoe = -1;
497
            actcon = 1;
498
        }
499
    }
500
}
501
502
enum e__VW
503
{
504
    XView,
505
    YView,
506
    WView,
507
    HView,
508
    Angle,
509
    HBorder,
510
    VBorder,
511
    HSpeed,
512
    VSpeed,
513
    Object,
514
    Visible,
515
    XPort,
516
    YPort,
517
    WPort,
518
    HPort,
519
    Camera,
520
    SurfaceID
521
}