Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_tenna_enemy_Step_0

related scripts: Alarm_4Alarm_6CleanUp_0Create_0Draw_0Draw_75KeyPress_49Other_10Other_11Other_12Other_22Step_0 Step_2

(view raw script w/o annotations or w/e)
1
if (!i_ex(obj_herosusie) || !i_ex(obj_heroralsei))
2
{
3
    if (debugvar == false && 
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
4
    {
5
        
scr_debug_print
scr_debug_print

function
scr_debug_print(arg0)
{ } function print_message(arg0) { } function debug_print(arg0) { } function scr_debug_clear_all() { }
("You need Susie and Ralsei for this battle");
6
        debugvar = true;
7
    }
8
    exit;
9
}
10
if (audience_goes_away == true)
11
{
12
    with (obj_tenna_enemy_bg)
13
        audience_y_pos = lerp(audience_y_pos, 480, 0.03);
14
}
15
if (global.is_console && 
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
16
{
17
    if (gamepad_button_check_pressed(0, gp_shoulderl))
18
    {
19
        if (minigameinsanity == 0)
20
        {
21
            minigameinsanity = 1;
22
            
scr_debug_print
scr_debug_print

function
scr_debug_print(arg0)
{ } function print_message(arg0) { } function debug_print(arg0) { } function scr_debug_clear_all() { }
("minigame insanity on");
23
        }
24
        else
25
        {
26
            minigameinsanity = 0;
27
            
scr_debug_print
scr_debug_print

function
scr_debug_print(arg0)
{ } function print_message(arg0) { } function debug_print(arg0) { } function scr_debug_clear_all() { }
("minigame insanity off");
28
        }
29
    }
30
}
31
if (global.monster[myself] == 1)
32
{
33
    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 && obj_tenna_enemy_bg.myscore >= 1000 && haveusedultimate == true)
34
    {
35
        talked = -1;
36
        endcon = 1;
37
        end_cutscene_version = 1;
38
    }
39
    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)
40
    {
41
        
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; } }
();
42
        if (attackchosen == false)
43
        {
44
            event_user(0);
45
            if (turns >= 10 && obj_tenna_enemy_bg.myscore < 500)
46
                pointsmultiplier = 1.3;
47
            if (turns >= 15 && obj_tenna_enemy_bg.myscore < 650)
48
                pointsmultiplier = 1.6;
49
            if (turns >= 20)
50
                pointsmultiplier = 2;
51
            attackchosen = true;
52
        }
53
        if (!instance_exists(obj_darkener))
54
            instance_create(0, 0, obj_darkener);
55
        global.fc = 22;
56
        global.typer = 81;
57
        var squential_dialogue = true;
58
        if ((dialogueorder >= 9 && dialogueorder < 19) || dialogueorder > 20)
59
            squential_dialogue = false;
60
        if (minigameinsanity)
61
        {
62
            msgsetloc(0, 
That's it!
It's time for
the FINAL EPISODE!Wait for inputClose Message
"That's it!&It's time for&the FINAL EPISODE!/%", "obj_tenna_enemy_slash_Step_0_gml_60_0"
);
63
            ballooncon = 40;
64
            balloonend = 0;
65
        }
66
        else if (turns == 0)
67
        {
68
            msgsetloc(0, 
1000 POINTS,
JUST 1000 POINTS
AND I'LL GIVE IT UP!Wait for inputClose Message
"1000 POINTS,&JUST 1000 POINTS&AND I'LL GIVE IT UP!/%", "obj_tenna_enemy_slash_Step_0_gml_38_0"
);
69
            ballooncon = 1;
70
            balloonend = 0;
71
        }
72
        else if (myattackchoice == 1 && smashcutdialgue == 0)
73
        {
74
            msgsetloc(0, 
Haha, no way
we can use that
take! CUT!!Wait for inputClose Message
"Haha, no way&we can use that&take! CUT!!/%", "obj_tenna_enemy_slash_Step_0_gml_49_0_b"
);
75
            ballooncon = 3;
76
            smashcutdialgue = 1;
77
        }
78
        else if (myattackchoice == 2 && rimshotdialogue == 0)
79
        {
80
            msgsetloc(0, 
You guys are
so good, it's
making me LAUGH!Wait for inputClose Message
"You guys are&so good, it's&making me LAUGH!/%", "obj_tenna_enemy_slash_Step_0_gml_50_0_b"
);
81
            ballooncon = 4;
82
            phaseturn = 0;
83
            rimshotdialogue = 1;
84
        }
85
        else if (myattackchoice == 0 && squential_dialogue == false)
86
        {
87
            msgsetloc(0, 
WE'VE GOT AN
ALL-STAR CAST!Wait for inputClose Message
"WE'VE GOT AN&ALL-STAR CAST!/%", "obj_tenna_enemy_slash_Step_0_gml_52_0"
);
88
            ballooncon = 0;
89
            if (dialogueorder < 19)
90
                dialogueorder++;
91
            balloonend = 1;
92
        }
93
        else if (myattackchoice == 1 && smashcutdialgue == 1 && squential_dialogue == false)
94
        {
95
            msgsetloc(0, 
HOW BOUT A
LITTLE SLICE
OF LIFE!?Wait for inputClose Message
"HOW BOUT A&LITTLE SLICE&OF LIFE!?/%", "obj_tenna_enemy_slash_Step_0_gml_53_0"
);
96
            ballooncon = 0;
97
            if (dialogueorder < 19)
98
                dialogueorder++;
99
            balloonend = 1;
100
        }
101
        else if (myattackchoice == 2 && rimshotdialogue == 1 && squential_dialogue == false)
102
        {
103
            msgsetloc(0, 
How about we
play you a
RIMSHOT!?Wait for inputClose Message
"How about we&play you a&RIMSHOT!?/%", "obj_tenna_enemy_slash_Step_0_gml_54_0"
);
104
            ballooncon = 0;
105
            if (dialogueorder < 19)
106
                dialogueorder++;
107
            balloonend = 1;
108
        }
109
        else if (minigameactivated && minigamecount <= 5 && minigamedialogue == 0)
110
        {
111
            msgsetloc(0, 
So our STAR
contestants have
contested our STARs!Wait for inputClose Message
"So our STAR&contestants have&contested our STARs!/%", "obj_tenna_enemy_slash_Step_0_gml_56_0_b"
);
112
            ballooncon = 5;
113
            minigamedialogue = 1;
114
        }
115
        else if (minigameactivated && minigamecount >= 6 && doubleminigamedialogue == 0)
116
        {
117
            msgsetloc(0, 
All right! If one
PHYSICAL CHALLENGE
isn't enough...Wait for inputClose Message
"All right! If one&PHYSICAL CHALLENGE&isn't enough.../%", "obj_tenna_enemy_slash_Step_0_gml_57_0_b"
);
118
            ballooncon = 6;
119
            doubleminigamedialogue = 1;
120
        }
121
        else if (minigameactivated && squential_dialogue == false)
122
        {
123
            msgsetloc(0, 
IT'S!
TV!
TIME!Wait for inputClose Message
"IT'S!&TV!&TIME!/%", "obj_tenna_enemy_slash_Step_0_gml_58_0_b"
);
124
            ballooncon = 0;
125
            balloonend = 1;
126
            if (dialogueorder < 19)
127
                dialogueorder++;
128
        }
129
        else
130
        {
131
            dialogueorder++;
132
            if (dialogueorder == 1)
133
            {
134
                msgsetloc(0, 
Sick of the
CLASSICS!? We'll
make 'em NEO!Wait for inputClose Message
"Sick of the&CLASSICS!? We'll&make 'em NEO!/%", "obj_tenna_enemy_slash_Step_0_gml_65_0"
);
135
                ballooncon = 7;
136
                balloonend = 0;
137
            }
138
            if (dialogueorder == 2)
139
            {
140
                msgsetloc(0, 
Who SAYS an
old CRT can't
learn new tricks!?Wait for inputClose Message
"Who SAYS an&old CRT can't&learn new tricks!?/%", "obj_tenna_enemy_slash_Step_0_gml_66_0"
);
141
                ballooncon = 8;
142
                balloonend = 0;
143
            }
144
            if (dialogueorder == 3)
145
            {
146
                msgsetloc(0, 
Ratings!? HA!
I'll show you
CHARISMA!Wait for inputClose Message
"Ratings!? HA!&I'll show you&CHARISMA!/%", "obj_tenna_enemy_slash_Step_0_gml_67_0"
);
147
                ballooncon = 9;
148
                balloonend = 0;
149
            }
150
            if (dialogueorder == 4)
151
            {
152
                msgsetloc(0, 
Susie, you
liked watching,
didn't you!?!Wait for inputClose Message
"Susie, you&liked watching,&didn't you!?!/%", "obj_tenna_enemy_slash_Step_0_gml_68_0"
);
153
                ballooncon = 10;
154
                balloonend = 0;
155
            }
156
            if (dialogueorder == 5)
157
            {
158
                msgsetloc(0, 
Tell 'em,
Susie!Wait for inputClose Message
"Tell 'em,&Susie!/%", "obj_tenna_enemy_slash_Step_0_gml_69_0"
);
159
                ballooncon = 11;
160
                balloonend = 0;
161
            }
162
            if (dialogueorder == 6)
163
            {
164
                msgsetloc(0, 
I'm still
MARVELOUS! I'm
still MYSTERIOUS!Wait for inputClose Message
"I'm still&MARVELOUS! I'm&still MYSTERIOUS!/%", "obj_tenna_enemy_slash_Step_0_gml_70_0"
);
165
                ballooncon = 12;
166
                balloonend = 0;
167
            }
168
            if (dialogueorder == 7)
169
            {
170
                msgsetloc(0, 
Kris!! I watched
you GROW UP!!Wait for inputClose Message
"Kris!! I watched&you GROW UP!!/%", "obj_tenna_enemy_slash_Step_0_gml_71_0"
);
171
                ballooncon = 13;
172
                balloonend = 0;
173
            }
174
            if (dialogueorder == 8 && didkrisdoswordroute == false)
175
            {
176
                msgsetloc(0, 
Who do you think
taught you to
LAUGH and CRY!?Wait for inputClose Message
"Who do you think&taught you to&LAUGH and CRY!?/%", "obj_tenna_enemy_slash_Step_0_gml_72_0"
);
177
                ballooncon = 14;
178
                balloonend = 0;
179
            }
180
            if (dialogueorder == 9 && didkrisdoswordroute == false)
181
            {
182
                msgsetloc(0, 
Well, the GOOD
OLD DAYS are HERE,
Kris! On VHS!Wait for inputClose Message
"Well, the GOOD&OLD DAYS are HERE,&Kris! On VHS!/%", "obj_tenna_enemy_slash_Step_0_gml_73_0"
);
183
                ballooncon = 15;
184
                balloonend = 0;
185
            }
186
            if (dialogueorder == 8 && didkrisdoswordroute == true)
187
            {
188
                msgsetloc(0, 
You... you want
to have fun,
too, don't you!?Wait for inputClose Message
"You... you want&to have fun,&too, don't you!?/%", "obj_tenna_enemy_slash_Step_0_gml_74_0"
);
189
                ballooncon = 17;
190
                balloonend = 0;
191
            }
192
            if (dialogueorder == 9 && didkrisdoswordroute == true)
193
            {
194
                msgsetloc(0, 
Woah, woah, woah!
Sorry, that was
out of line, folks!Wait for inputClose Message
"Woah, woah, woah!&Sorry, that was&out of line, folks!/%", "obj_tenna_enemy_slash_Step_0_gml_75_0"
);
195
                ballooncon = 18;
196
                balloonend = 0;
197
            }
198
            if (dialogueorder == 20)
199
            {
200
                msgsetloc(0, 
... what!? Are
you waiting for me...Wait for inputClose Message
"... what!? Are&you waiting for me.../%", "obj_tenna_enemy_slash_Step_0_gml_76_0"
);
201
                ballooncon = 19;
202
                balloonend = 0;
203
            }
204
            if (dialogueorder == 21)
205
            {
206
                msgsetloc(0, 
...Wait for inputClose Message
".../%", "obj_tenna_enemy_slash_Step_0_gml_77_0"
);
207
                ballooncon = 21;
208
                balloonend = 0;
209
            }
210
        }
211
        if (ralseitalks == 1 && instance_exists(obj_heroralsei))
212
        {
213
            global.typer = 74;
214
            
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 12.1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right2; return myblcon; } if (arg2 == 12.2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right3; return myblcon; } if (arg2 == 12.3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right4; return myblcon; } if (arg2 == 12.4) { ...
(obj_heroralsei.x + 75, obj_heroralsei.y + 15, 7);
215
            
scr_guardpeek
scr_guardpeek

function
scr_guardpeek(arg0)
{ if (global.faceaction[arg0.myself] == 4) { var _peeker = 0; if (arg0 == obj_heroralsei) { obj_heroralsei.image_alpha = 0; _peeker =
scr_battle_marker(obj_heroralsei.x, obj_heroralsei.y, spr_ralsei_defend_peek);
_peeker.depth = obj_heroralsei.depth; _peeker.sourceobject = obj_heroralsei; _peeker.endanimation = spr_ralsei_redefend; } else if (arg0 == obj_herosusie) { obj_herosusie.image_alpha = 0; _peeker =
scr_battle_marker(obj_herosusie.x + 8, obj_herosusie.y + 4, spr_susie_defend_peek);
_peeker.depth = obj_herosusie.depth; _peeker.sourceobject = obj_herosusie; } return _peeker; } }
(obj_heroralsei);
216
        }
217
        else if (susietalks == 1 && instance_exists(obj_herosusie))
218
        {
219
            global.typer = 75;
220
            
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 12.1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right2; return myblcon; } if (arg2 == 12.2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right3; return myblcon; } if (arg2 == 12.3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right4; return myblcon; } if (arg2 == 12.4) { ...
(obj_herosusie.x + 75, obj_herosusie.y + 15, 7);
221
            
scr_guardpeek
scr_guardpeek

function
scr_guardpeek(arg0)
{ if (global.faceaction[arg0.myself] == 4) { var _peeker = 0; if (arg0 == obj_heroralsei) { obj_heroralsei.image_alpha = 0; _peeker =
scr_battle_marker(obj_heroralsei.x, obj_heroralsei.y, spr_ralsei_defend_peek);
_peeker.depth = obj_heroralsei.depth; _peeker.sourceobject = obj_heroralsei; _peeker.endanimation = spr_ralsei_redefend; } else if (arg0 == obj_herosusie) { obj_herosusie.image_alpha = 0; _peeker =
scr_battle_marker(obj_herosusie.x + 8, obj_herosusie.y + 4, spr_susie_defend_peek);
_peeker.depth = obj_herosusie.depth; _peeker.sourceobject = obj_herosusie; } return _peeker; } }
(obj_herosusie);
222
        }
223
        else
224
        {
225
            
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 12.1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right2; return myblcon; } if (arg2 == 12.2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right3; return myblcon; } if (arg2 == 12.3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right4; return myblcon; } if (arg2 == 12.4) { ...
(x + 27, global.monstery[myself] - 36, 10);
226
        }
227
        myblcon.depth = depth - 100;
228
        ralseitalks = 0;
229
        susietalks = 0;
230
        if (ballooncon == 0)
231
        {
232
            talked = 0.5;
233
            talktimer = 0;
234
        }
235
        else
236
        {
237
            talked = 0.6;
238
            talktimer = 0;
239
        }
240
        rtimer = 0;
241
    }
242
    if (talked == 0.5)
243
    {
244
        talktimer++;
245
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
246
        {
247
            with (obj_writer)
248
                instance_destroy();
249
            alarm[6]
 = 1;
gml_Object_obj_tenna_enemy_Alarm_6.gml

if (balloonend == 1) { talked = 1; } else { talked = 0.6; talktimer = 0; }
250
        }
251
    }
252
    if (talked == 0.6)
253
    {
254
        talktimer++;
255
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
256
        {
257
            with (obj_writer)
258
                instance_destroy();
259
            if (ballooncon == 1)
260
            {
261
                msgsetloc(0, 
BUT DON'T THINK
IT'S GONNA
BE EASY!!
BECAUSE TODAY...Wait for inputClose Message
"BUT DON'T THINK&IT'S GONNA&BE EASY!!&BECAUSE TODAY.../%", "obj_tenna_enemy_slash_Step_0_gml_121_0"
);
262
                ballooncon = 2;
263
            }
264
            else if (ballooncon == 2)
265
            {
266
                msgsetloc(0, 
WE'VE GOT AN
ALL-STAR CAST!Wait for inputClose Message
"WE'VE GOT AN&ALL-STAR CAST!/%", "obj_tenna_enemy_slash_Step_0_gml_122_0"
);
267
                ballooncon = 0;
268
                balloonend = 1;
269
            }
270
            else if (ballooncon == 3)
271
            {
272
                msgsetloc(0, 
CUT, I said!
CUT! ...
SMASH CUT!Wait for inputClose Message
"CUT, I said!&CUT! ...&SMASH CUT!/%", "obj_tenna_enemy_slash_Step_0_gml_125_0"
);
273
                ballooncon = 0;
274
                balloonend = 1;
275
            }
276
            else if (ballooncon == 4)
277
            {
278
                msgsetloc(0, 
How about we play
you a RIMSHOT!?Wait for inputClose Message
"How about we play&you a RIMSHOT!?/%", "obj_tenna_enemy_slash_Step_0_gml_126_0"
);
279
                ballooncon = 0;
280
                balloonend = 1;
281
            }
282
            else if (ballooncon == 5)
283
            {
284
                msgsetloc(0, 
But can they
survive... Another
PHYSICAL CHALLENGE?!Wait for inputClose Message
"But can they&survive... Another&PHYSICAL CHALLENGE?!/%", "obj_tenna_enemy_slash_Step_0_gml_127_0"
);
285
                ballooncon = 0;
286
                balloonend = 1;
287
            }
288
            else if (ballooncon == 6)
289
            {
290
                msgsetloc(0, 
How about a
DOUBLE FEATURE!?Wait for inputClose Message
"How about a&DOUBLE FEATURE!?/%", "obj_tenna_enemy_slash_Step_0_gml_128_0"
);
291
                ballooncon = 0;
292
                balloonend = 1;
293
            }
294
            else if (ballooncon == 7)
295
            {
296
                msgsetloc(0, 
NEO shows,
NEO programs,
just watch,
watch, WATCH!Wait for inputClose Message
"NEO shows,&NEO programs,&just watch,&watch, WATCH!/%", "obj_tenna_enemy_slash_Step_0_gml_131_0"
);
297
                ballooncon = 0;
298
                balloonend = 1;
299
            }
300
            else if (ballooncon == 8)
301
            {
302
                msgsetloc(0, 
LOOK!! The 6PM show!?
I'll show it at 5!!Wait for inputClose Message
"LOOK!! The 6PM show!?&I'll show it at 5!!/%", "obj_tenna_enemy_slash_Step_0_gml_132_0"
);
303
                ballooncon = 0;
304
                balloonend = 1;
305
            }
306
            else if (ballooncon == 9)
307
            {
308
                msgsetloc(0, 
HD's nothing
when you got
NOSTALGIA!Wait for inputClose Message
"HD's nothing&when you got&NOSTALGIA!/%", "obj_tenna_enemy_slash_Step_0_gml_133_0"
);
309
                ballooncon = 0;
310
                balloonend = 1;
311
            }
312
            else if (ballooncon == 10)
313
            {
314
                msgsetloc(0, 
Come, on!
Tell 'em!
Tell 'em!Wait for inputClose Message
"Come, on!&Tell 'em!&Tell 'em!/%", "obj_tenna_enemy_slash_Step_0_gml_134_0"
);
315
                ballooncon = 0;
316
                balloonend = 1;
317
            }
318
            else if (ballooncon == 11)
319
            {
320
                msgsetloc(0, 
Say they don't
need to throw
me away!Wait for inputClose Message
"Say they don't&need to throw&me away!/%", "obj_tenna_enemy_slash_Step_0_gml_135_0"
);
321
                ballooncon = 0;
322
                balloonend = 1;
323
            }
324
            else if (ballooncon == 12)
325
            {
326
                msgsetloc(0, 
Toriel oughta
know she doesn't
NEED a new TV!!Wait for inputClose Message
"Toriel oughta&know she doesn't&NEED a new TV!!/%", "obj_tenna_enemy_slash_Step_0_gml_136_0"
);
327
                ballooncon = 0;
328
                balloonend = 1;
329
            }
330
            else if (ballooncon == 13)
331
            {
332
                msgsetloc(0, 
Just admit you
NEED ME already!!Wait for inputClose Message
"Just admit you&NEED ME already!!/%", "obj_tenna_enemy_slash_Step_0_gml_137_0"
);
333
                ballooncon = 0;
334
                balloonend = 1;
335
            }
336
            else if (ballooncon == 14)
337
            {
338
                msgsetloc(0, 
... What, you think
it's MY fault you
forgot HOW!?Wait for inputClose Message
"... What, you think&it's MY fault you&forgot HOW!?/%", "obj_tenna_enemy_slash_Step_0_gml_138_0"
);
339
                ballooncon = 0;
340
                balloonend = 1;
341
            }
342
            else if (ballooncon == 15)
343
            {
344
                msgsetloc(0, 
And if you've
forgotten how
to smile...Wait for inputClose Message
"And if you've&forgotten how&to smile.../%", "obj_tenna_enemy_slash_Step_0_gml_139_0"
);
345
                ballooncon = 16;
346
                balloonend = 0;
347
            }
348
            else if (ballooncon == 16)
349
            {
350
                msgsetloc(0, 
I'll MAKE
YOU remember.Wait for inputClose Message
"I'll MAKE&YOU remember./%", "obj_tenna_enemy_slash_Step_0_gml_140_0"
);
351
                ballooncon = 0;
352
                balloonend = 1;
353
            }
354
            else if (ballooncon == 17)
355
            {
356
                msgsetloc(0, 
Isn't that a
little bit why you...Wait for inputClose Message
"Isn't that a&little bit why you.../%", "obj_tenna_enemy_slash_Step_0_gml_141_0"
);
357
                ballooncon = 0;
358
                balloonend = 1;
359
            }
360
            else if (ballooncon == 18)
361
            {
362
                msgsetloc(0, 
Back to your
regularly scheduled
programming!Wait for inputClose Message
"Back to your&regularly scheduled&programming!/%", "obj_tenna_enemy_slash_Step_0_gml_142_0"
);
363
                ballooncon = 0;
364
                balloonend = 1;
365
            }
366
            else if (ballooncon == 19)
367
            {
368
                msgsetloc(0, 
To... to...
say something!?Wait for inputClose Message
"To... to...&say something!?/%", "obj_tenna_enemy_slash_Step_0_gml_144_0"
);
369
                ballooncon = 20;
370
                balloonend = 0;
371
            }
372
            else if (ballooncon == 20)
373
            {
374
                msgsetloc(0, 
I have nothing
to say! Nothing!Wait for inputClose Message
"I have nothing&to say! Nothing!/%", "obj_tenna_enemy_slash_Step_0_gml_145_0"
);
375
                ballooncon = 0;
376
                balloonend = 1;
377
            }
378
            else if (ballooncon == 21)
379
            {
380
                msgsetloc(0, 
... All right!Wait for inputClose Message
"... All right!/%", "obj_tenna_enemy_slash_Step_0_gml_147_0"
);
381
                ballooncon = 22;
382
                balloonend = 0;
383
            }
384
            else if (ballooncon == 22)
385
            {
386
                msgsetloc(0, 
All right, fine!
FINE, I ADMIT IT!Wait for inputClose Message
"All right, fine!&FINE, I ADMIT IT!/%", "obj_tenna_enemy_slash_Step_0_gml_148_0"
);
387
                ballooncon = 23;
388
                balloonend = 0;
389
            }
390
            else if (ballooncon == 23)
391
            {
392
                msgsetloc(0, 
Maybe I AM a
little GLOOBY
sometimes!!Wait for inputClose Message
"Maybe I AM a&little GLOOBY&sometimes!!/%", "obj_tenna_enemy_slash_Step_0_gml_149_0"
);
393
                ballooncon = 24;
394
                balloonend = 0;
395
            }
396
            else if (ballooncon == 24)
397
            {
398
                msgsetloc(0, 
I AM!!!
I'm GLOOBY!!!Wait for inputClose Message
"I AM!!!&I'm GLOOBY!!!/%", "obj_tenna_enemy_slash_Step_0_gml_150_0"
);
399
                ballooncon = 25;
400
                balloonend = 0;
401
            }
402
            else if (ballooncon == 25)
403
            {
404
                msgsetloc(0, 
WHAT'S wrong
with THAT, HUH!?Wait for inputClose Message
"WHAT'S wrong&with THAT, HUH!?/%", "obj_tenna_enemy_slash_Step_0_gml_151_0"
);
405
                ballooncon = 26;
406
                balloonend = 0;
407
            }
408
            else if (ballooncon == 26)
409
            {
410
                msgsetloc(0, 
We're ALL a little
GLOOBY sometimes!!Wait for inputClose Message
"We're ALL a little&GLOOBY sometimes!!/%", "obj_tenna_enemy_slash_Step_0_gml_152_0"
);
411
                ballooncon = 27;
412
                balloonend = 0;
413
            }
414
            else if (ballooncon == 27)
415
            {
416
                msgsetloc(0, 
YOU INCLUDED,
KRIS!Wait for inputClose Message
"YOU INCLUDED,&KRIS!/%", "obj_tenna_enemy_slash_Step_0_gml_153_0"
);
417
                ballooncon = 28;
418
                balloonend = 0;
419
            }
420
            else if (ballooncon == 28)
421
            {
422
                msgsetloc(0, 
So DON'T give
me that look!Wait for inputClose Message
"So DON'T give&me that look!/%", "obj_tenna_enemy_slash_Step_0_gml_154_0"
);
423
                ballooncon = 29;
424
                balloonend = 0;
425
            }
426
            else if (ballooncon == 29)
427
            {
428
                msgsetloc(0, 
That "Oh, I've
never been
Glooby" look!Wait for inputClose Message
"That \"Oh, I've&never been&Glooby\" look!/%", "obj_tenna_enemy_slash_Step_0_gml_155_0"
);
429
                ballooncon = 30;
430
                balloonend = 0;
431
            }
432
            else if (ballooncon == 30)
433
            {
434
                msgsetloc(0, 
YOU ARE!
YOU HAVE BEEN!
You HAVE TO be!Wait for inputClose Message
"YOU ARE!&YOU HAVE BEEN!&You HAVE TO be!/%", "obj_tenna_enemy_slash_Step_0_gml_156_0"
);
435
                ballooncon = 31;
436
                balloonend = 0;
437
            }
438
            else if (ballooncon == 31)
439
            {
440
                msgsetloc(0, 
It CAN'T
just be me!Wait for inputClose Message
"It CAN'T&just be me!/%", "obj_tenna_enemy_slash_Step_0_gml_157_0"
);
441
                ballooncon = 32;
442
                balloonend = 0;
443
            }
444
            else if (ballooncon == 32)
445
            {
446
                msgsetloc(0, 
Just ME...
alone.Wait for inputClose Message
"Just ME...&alone./%", "obj_tenna_enemy_slash_Step_0_gml_158_0"
);
447
                ballooncon = 33;
448
                balloonend = 0;
449
            }
450
            else if (ballooncon == 33)
451
            {
452
                msgsetloc(0, 
Glooby...
against the
whole world...Wait for inputClose Message
"Glooby...&against the&whole world.../%", "obj_tenna_enemy_slash_Step_0_gml_159_0"
);
453
                ballooncon = 34;
454
                balloonend = 0;
455
            }
456
            else if (ballooncon == 34)
457
            {
458
                msgsetloc(0, 
... it
can't be...Wait for inputClose Message
"... it&can't be.../%", "obj_tenna_enemy_slash_Step_0_gml_160_0"
);
459
                ballooncon = 0;
460
                balloonend = 1;
461
            }
462
            else if (ballooncon == 40)
463
            {
464
                msgsetloc(0, 
What will happen
to our HEROES...Wait for inputClose Message
"What will happen&to our HEROES.../%", "obj_tenna_enemy_slash_Step_0_gml_163_0"
);
465
                ballooncon = 41;
466
                balloonend = 0;
467
            }
468
            else if (ballooncon == 41)
469
            {
470
                msgsetloc(0, 
When they REALIZE
this show is NEVER
gonna end!?Wait for inputClose Message
"When they REALIZE&this show is NEVER&gonna end!?/%", "obj_tenna_enemy_slash_Step_0_gml_164_0"
);
471
                ballooncon = 0;
472
                balloonend = 1;
473
            }
474
            talked = 0.7;
475
            if (ralseitalks == 1 && instance_exists(obj_heroralsei))
476
            {
477
                global.typer = 74;
478
                
scr_heroblcon
scr_heroblcon

function
scr_heroblcon(arg0)
{ var heroobj = -69420; switch (arg0) { case 1: case "kris": case "kr": heroobj = obj_herokris; break; case 2: case "susie": case "su": heroobj = obj_herosusie; break; case 3: case "ralsei": case "ra": heroobj = obj_heroralsei; break; case 4: case "noelle": case "no": heroobj = obj_heronoelle; break; default: heroobj = -69420; break; } if (i_ex(heroobj)) { var heroballoon =
scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1; return heroballoon; } else { return false; } }
("ralsei");
479
                
scr_guardpeek
scr_guardpeek

function
scr_guardpeek(arg0)
{ if (global.faceaction[arg0.myself] == 4) { var _peeker = 0; if (arg0 == obj_heroralsei) { obj_heroralsei.image_alpha = 0; _peeker =
scr_battle_marker(obj_heroralsei.x, obj_heroralsei.y, spr_ralsei_defend_peek);
_peeker.depth = obj_heroralsei.depth; _peeker.sourceobject = obj_heroralsei; _peeker.endanimation = spr_ralsei_redefend; } else if (arg0 == obj_herosusie) { obj_herosusie.image_alpha = 0; _peeker =
scr_battle_marker(obj_herosusie.x + 8, obj_herosusie.y + 4, spr_susie_defend_peek);
_peeker.depth = obj_herosusie.depth; _peeker.sourceobject = obj_herosusie; } return _peeker; } }
(obj_heroralsei);
480
            }
481
            else if (susietalks == 1 && instance_exists(obj_herosusie))
482
            {
483
                global.typer = 75;
484
                
scr_heroblcon
scr_heroblcon

function
scr_heroblcon(arg0)
{ var heroobj = -69420; switch (arg0) { case 1: case "kris": case "kr": heroobj = obj_herokris; break; case 2: case "susie": case "su": heroobj = obj_herosusie; break; case 3: case "ralsei": case "ra": heroobj = obj_heroralsei; break; case 4: case "noelle": case "no": heroobj = obj_heronoelle; break; default: heroobj = -69420; break; } if (i_ex(heroobj)) { var heroballoon =
scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1; return heroballoon; } else { return false; } }
("susie");
485
                
scr_guardpeek
scr_guardpeek

function
scr_guardpeek(arg0)
{ if (global.faceaction[arg0.myself] == 4) { var _peeker = 0; if (arg0 == obj_heroralsei) { obj_heroralsei.image_alpha = 0; _peeker =
scr_battle_marker(obj_heroralsei.x, obj_heroralsei.y, spr_ralsei_defend_peek);
_peeker.depth = obj_heroralsei.depth; _peeker.sourceobject = obj_heroralsei; _peeker.endanimation = spr_ralsei_redefend; } else if (arg0 == obj_herosusie) { obj_herosusie.image_alpha = 0; _peeker =
scr_battle_marker(obj_herosusie.x + 8, obj_herosusie.y + 4, spr_susie_defend_peek);
_peeker.depth = obj_herosusie.depth; _peeker.sourceobject = obj_herosusie; } return _peeker; } }
(obj_herosusie);
486
            }
487
            else
488
            {
489
                global.fc = 22;
490
                global.typer = 81;
491
                
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 12.1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right2; return myblcon; } if (arg2 == 12.2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right3; return myblcon; } if (arg2 == 12.3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right4; return myblcon; } if (arg2 == 12.4) { ...
(x + 27, global.monstery[myself] - 36, 10);
492
            }
493
            myblcon.depth = depth - 100;
494
            ralseitalks = 0;
495
            susietalks = 0;
496
            alarm[6]
 = 1;
gml_Object_obj_tenna_enemy_Alarm_6.gml

if (balloonend == 1) { talked = 1; } else { talked = 0.6; talktimer = 0; }
497
        }
498
    }
499
    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") && !i_ex(obj_writer))
500
    {
501
        global.mnfight = 1.5;
502
        attackchosen = false;
503
    }
504
    if (global.mnfight == 1.5)
505
    {
506
        if (myattackchoice < 3)
507
        {
508
            if (!instance_exists(obj_growtangle))
509
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
510
            if (!instance_exists(obj_moveheart) && !i_ex(obj_heart))
511
                
scr_moveheart
scr_moveheart

function
scr_moveheart()
{ global.inv = 0; return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart); }
();
512
        }
513
        global.mnfight = 2;
514
        
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
515
    }
516
    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)
517
    {
518
        rtimer += 1;
519
        if (rtimer == 12)
520
        {
521
            
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; } }
();
522
            if (myattackchoice == 0)
523
            {
524
                global.monsterattackname[myself] = "all star cast";
525
                dc = 
scr_bulletspawner
scr_bulletspawner

function
scr_bulletspawner(arg0, arg1, arg2)
{ __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.creatorid = id; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
526
                dc.type = 125;
527
                dc.damage = 65;
528
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(200);
529
            }
530
            else if (myattackchoice == 1)
531
            {
532
                global.monsterattackname[myself] = "smashcut";
533
                dc = 
scr_bulletspawner
scr_bulletspawner

function
scr_bulletspawner(arg0, arg1, arg2)
{ __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.creatorid = id; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
534
                dc.type = 126;
535
                dc.damage = 65;
536
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(260);
537
            }
538
            else if (myattackchoice == 2)
539
            {
540
                global.monsterattackname[myself] = "rimshot lensflare";
541
                dc = 
scr_bulletspawner
scr_bulletspawner

function
scr_bulletspawner(arg0, arg1, arg2)
{ __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.creatorid = id; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
542
                dc.type = 128;
543
                dc.damage = 65;
544
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(260);
545
            }
546
            else if (myattackchoice == 3)
547
            {
548
                minigametransition_con = 1;
549
                with (obj_darkener)
550
                    darken = 0;
551
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(999);
552
            }
553
            else if (myattackchoice == 20)
554
            {
555
                global.monsterattackname[myself] = "light em up";
556
                dc = 
scr_bulletspawner
scr_bulletspawner

function
scr_bulletspawner(arg0, arg1, arg2)
{ __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.creatorid = id; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
557
                dc.type = 150;
558
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(999999);
559
            }
560
            else if (myattackchoice == 21)
561
            {
562
                minigametransition_con = 1;
563
                minigametype = "battle";
564
                difficulty = 1;
565
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(999999);
566
            }
567
            turns += 1;
568
            global.fc = 22;
569
            global.typer = 81;
570
            rr = choose(0, 1, 2, 3, 4);
571
            if (rr == 0)
572
                global.battlemsg[0] = stringsetloc(
* CLAP AND CHEER, SMILE AND SCREAM! ENTERTAINMENT ON YOUR SCREEN!
"* CLAP AND CHEER, SMILE AND SCREAM! ENTERTAINMENT ON YOUR SCREEN!", "obj_tenna_enemy_slash_Step_0_gml_230_0"
);
573
            if (rr == 1)
574
                global.battlemsg[0] = stringsetloc(
* COWABUNGA-DERO! THAT'S THE SMOOTH TASTE OF TV TIME!
"* COWABUNGA-DERO! THAT'S THE SMOOTH TASTE OF TV TIME!", "obj_tenna_enemy_slash_Step_0_gml_231_0"
);
575
            if (rr == 2)
576
                global.battlemsg[0] = stringsetloc(
* FRESH FROM THE JUICE! FRESH FROM THE JUICE!
"* FRESH FROM THE JUICE! FRESH FROM THE JUICE!", "obj_tenna_enemy_slash_Step_0_gml_232_0"
);
577
            if (rr == 3)
578
                global.battlemsg[0] = stringsetloc(
* HEAR THAT WHINE!? THAT'S YOUR CRT ASKING FOR A WALK!!
"* HEAR THAT WHINE!? THAT'S YOUR CRT ASKING FOR A WALK!!", "obj_tenna_enemy_slash_Step_0_gml_233_0"
);
579
            if (rr == 4)
580
                global.battlemsg[0] = stringsetloc(
* DON'T TOUCH THAT DIAL! THINGS ARE HEATING UP!
"* DON'T TOUCH THAT DIAL! THINGS ARE HEATING UP!", "obj_tenna_enemy_slash_Step_0_gml_234_0"
);
581
            var rand = irandom(99);
582
            if (rand == 1)
583
                global.battlemsg[0] = stringsetloc(
* IS IT JUST ME, OR DOES IT SMELL LIKE AN ORCHARD IN HERE?
"* IS IT JUST ME, OR DOES IT SMELL LIKE AN ORCHARD IN HERE?", "obj_tenna_enemy_slash_Step_0_gml_237_0"
);
584
            if (rand == 2)
585
                global.battlemsg[0] = stringsetloc(
* IS IT JUST ME, OR DOES IT SMELL KINDA EARTHY AND SMOKEY IN HERE?
"* IS IT JUST ME, OR DOES IT SMELL KINDA EARTHY AND SMOKEY IN HERE?", "obj_tenna_enemy_slash_Step_0_gml_238_0"
);
586
            if (rand == 3)
587
                global.battlemsg[0] = stringsetloc(
* IS IT JUST ME, OR DOES IT SMELL LIKE MARKETABLE PLUSH IN HERE?
"* IS IT JUST ME, OR DOES IT SMELL LIKE MARKETABLE PLUSH IN HERE?", "obj_tenna_enemy_slash_Step_0_gml_239_0"
);
588
            if (turns == 7)
589
                global.battlemsg[0] = stringsetloc(
* COME ON KIDS, THE AUDIENCE LOVES IT!! CAN'T YOU HEAR 'EM CHEERING!? LISTEN!!
"* COME ON KIDS, THE AUDIENCE LOVES IT!! CAN'T YOU HEAR 'EM CHEERING!? LISTEN!!", "obj_tenna_enemy_slash_Step_0_gml_241_0"
);
590
            if (turns == 8)
591
                global.battlemsg[0] = stringsetloc(
* ... WHERE... WHERE'S THE AUDIENCE? WHERE'D THEY GO...? WHERE ARE THEY!?
"* ... WHERE... WHERE'S THE AUDIENCE? WHERE'D THEY GO...? WHERE ARE THEY!?", "obj_tenna_enemy_slash_Step_0_gml_242_0"
);
592
            if (turns == 9)
593
                global.battlemsg[0] = stringsetloc(
* THAT DAMN AUDIENCE! I GAVE THEM SO MANY POINTS TO BE HERE TODAY!
"* THAT DAMN AUDIENCE! I GAVE THEM SO MANY POINTS TO BE HERE TODAY!", "obj_tenna_enemy_slash_Step_0_gml_243_0"
);
594
            if (turns == 10)
595
                global.battlemsg[0] = stringsetloc(
* MIKE... MIKE, IF YOU'RE STILL HERE... BAN EVERYONE FROM THE GIFT SHOP!
"* MIKE... MIKE, IF YOU'RE STILL HERE... BAN EVERYONE FROM THE GIFT SHOP!", "obj_tenna_enemy_slash_Step_0_gml_244_0"
);
596
            if (turns == 11 && (global.flag[309 spamton_plot] == 9 || global.flag[454 got_dealmaker] == 1 || global.flag[456 beat_snowgrave_neo] == 1))
597
                global.battlemsg[0] = stringsetloc(
* I'M NOT LIKE HIM! I'M BETTER! I SWEAR I'M BETTER! MIKE, TELL 'EM!
"* I'M NOT LIKE HIM! I'M BETTER! I SWEAR I'M BETTER! MIKE, TELL 'EM!", "obj_tenna_enemy_slash_Step_0_gml_245_0"
);
598
            if (healthphase == 1 && global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.5))
599
            {
600
                healthphase = 2;
601
                global.battlemsg[0] = stringsetloc(
* OUCH! H-HEY! WATCH WHERE YOU, UH, SWING THOSE THINGS! HAHA!
"* OUCH! H-HEY! WATCH WHERE YOU, UH, SWING THOSE THINGS! HAHA!", "obj_tenna_enemy_slash_Step_0_gml_247_0"
);
602
            }
603
            else if (healthphase == 2 && global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.25))
604
            {
605
                healthphase = 3;
606
                global.battlemsg[0] = stringsetloc(
* H-HEY, ANYONE NOTICED MY HP IS GOING DOWN!? ANYONE!?
"* H-HEY, ANYONE NOTICED MY HP IS GOING DOWN!? ANYONE!?", "obj_tenna_enemy_slash_Step_0_gml_248_0"
);
607
            }
608
            else if (healthphase == 3 && global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.166))
609
            {
610
                healthphase = 4;
611
                global.battlemsg[0] = stringsetloc(
* WHAT AN EVENT!! THE CONTESTANTS APPEAR TO BE KILLING ME!!
"* WHAT AN EVENT!! THE CONTESTANTS APPEAR TO BE KILLING ME!!", "obj_tenna_enemy_slash_Step_0_gml_249_0"
);
612
            }
613
            if ((obj_tenna_enemy_bg.myscore + obj_tenna_enemy_bg.addscore) >= 1000)
614
                global.battlemsg[0] = stringsetloc(
* ALRIGHT, YOU ASKED FOR IT! TIME FOR THE GRAND FINALE!
"* ALRIGHT, YOU ASKED FOR IT! TIME FOR THE GRAND FINALE!", "obj_tenna_enemy_slash_Step_0_gml_251_0"
);
615
            attacked = 1;
616
        }
617
    }
618
    if (global.mnfight == 2 && global.turntimer <= 1)
619
    {
620
        if ((obj_tenna_enemy_bg.myscore + obj_tenna_enemy_bg.addscore) >= 1000)
621
        {
622
            global.battlemsg[0] = stringsetloc(
* ALRIGHT, YOU ASKED FOR IT! TIME FOR THE GRAND FINALE!
"* ALRIGHT, YOU ASKED FOR IT! TIME FOR THE GRAND FINALE!", "obj_tenna_enemy_slash_Step_0_gml_251_0"
);
623
            audience_goes_away = true;
624
        }
625
        if (minigamefailcount > 0)
626
            gothit = true;
627
        if (bet == true && gothit == false)
628
            obj_tenna_enemy_bg.addscore += (betamount * 2);
629
        if (i_ex(obj_tenna_smashcut_attack) && gothit == 0)
630
            smashcutwithouttakingdamage = 1;
631
        popularboy = false;
632
        gothit = false;
633
        bet = false;
634
        minigameactivated = false;
635
        deletefacebug = true;
636
        betamount = 0;
637
        smashcuthurt = 0;
638
        pointsmultiplierthisturn = 5;
639
        totalfails = 0;
640
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("ralsei");
641
        if (resetralsei == true)
642
        {
643
            resetralsei = false;
644
            snd_play(snd_wing);
645
            obj_heroralsei.x = obj_heroralsei.xstart;
646
            obj_heroralsei.y = obj_heroralsei.ystart;
647
            with (obj_heroralsei)
648
            {
649
                normalsprite = spr_ralsei_walk_right;
650
                idlesprite = spr_ralsei_idle;
651
                defendsprite = spr_ralsei_defend;
652
                hurtsprite = spr_ralsei_hurt_fixed;
653
                attackreadysprite = spr_ralsei_attackready;
654
                attacksprite = spr_ralsei_attack;
655
                itemsprite = spr_ralsei_item;
656
                itemreadysprite = spr_ralsei_itemready;
657
                spellreadysprite = spr_ralsei_spellready;
658
                spellsprite = spr_ralsei_spell;
659
                defeatsprite = spr_ralsei_defeat;
660
                victorysprite = spr_ralsei_victory;
661
                actreadysprite = spr_ralsei_actready;
662
                actsprite = spr_ralsei_act;
663
            }
664
            repeat (26)
665
            {
666
                puff = instance_create(((obj_heroralsei.x + 50) - 60) + irandom(80), (obj_heroralsei.y - 90) + 90 + irandom(100), obj_animation);
667
                puff.depth = obj_heroralsei.depth - 1;
668
                puff.sprite_index = spr_susiezilla_houseexplosion;
669
                puff.image_speed = 0.5;
670
                puff.image_xscale = 1;
671
                puff.image_yscale = 1;
672
            }
673
        }
674
        if (lancercheat == true)
675
        {
676
            lancercheat = false;
677
            lancerspin = true;
678
            lancermarker.sprite_index = spr_lancer_lt;
679
            lancermarker.gravity = -0.1;
680
            lancermarker.image_angle = 0;
681
            lancermarker.x -= 80;
682
            lancermarker.y -= 10;
683
            actconsus = 0;
684
            actingsus = 0;
685
            snd_play(snd_slidewhistle);
686
        }
687
    }
688
}
689
if (popularboy == true && ralseihpprev != global.hp[3])
690
    obj_tenna_enemy_bg.addscore += round(abs(ralseihpprev - global.hp[3]) * 0.17);
691
ralseihpprev = global.hp[3];
692
if (lancerspin == true && lancermarker.y > (cameray() + 40) && lancermarker.gravity > 0)
693
{
694
    lancermarker.vspeed = 0;
695
    lancermarker.vspeed = 0;
696
    lancermarker.gravity = 0;
697
    lancermarker.image_angle = -90;
698
    lancermarker.sprite_index = spr_lancer_lt_stool;
699
    lancermarker.x += 80;
700
    lancermarker.y += 10;
701
    lancerspin = false;
702
    snd_play(snd_item);
703
    if (global.actsimulsus[myself][0] == 1)
704
    {
705
        actingsus = 1.4;
706
        actcon = 1;
707
        actconsus = 0;
708
    }
709
    else
710
    {
711
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("lan");
712
        msgsetloc(0, 
Face 2* Ho ho ho! I may drop, but the points won't!Wait for input
"\\E2* Ho ho ho! I may drop, but the points won't!/", "obj_tenna_enemy_slash_Step_0_gml_335_0"
);
713
        
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("no_name", 0);
714
        msgnextloc(
* Lancer clung to the score like a koala! Points can't drop!Wait for inputClose Message
"* Lancer clung to the score like a koala! Points can't drop!/%", "obj_tenna_enemy_slash_Step_0_gml_337_0"
);
715
        
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); if (global.chapter == 3 && i_ex(obj_tennabattleconvo_controller) && (obj_tennabattleconvo_controller.chattedduringbulletphase == true || (obj_tennabattleconvo_controller.introcon >= 0.1 && obj_tennabattleconvo_controller.introcon <= 2))) { } else { 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 }
();
716
        actingsus = 1.3;
717
    }
718
}
719
if (global.myfight == 3)
720
{
721
    xx = __view_get(e__VW.XView, 0);
722
    yy = __view_get(e__VW.YView, 0);
723
    if (deletefacebug == false)
724
    {
725
        deletefacebug = true;
726
        with (obj_face)
727
            instance_destroy();
728
    }
729
    var havejeviltail = false;
730
    if (global.chararmor1[1] == 7 || global.chararmor2[1] == 7 || global.chararmor1[2] == 7 || global.chararmor2[2] == 7 || global.chararmor1[3] == 7 || global.chararmor2[3] == 7)
731
        havejeviltail = true;
732
    if (acting == 1 && actcon == 0)
733
    {
734
        actcon = 1;
735
        if (didkrisdoswordroute == true)
736
            msgsetloc(0, 
* TENNA - Despite his size, sadly, he's quite fragile.Wait for inputClose Message
"* TENNA - Despite his size, sadly, he's quite fragile./%", "obj_tenna_enemy_slash_Step_0_gml_446_0"
);
737
        else if (global.chararmor1[1] == 21 || global.chararmor2[1] == 21 || global.chararmor1[2] == 21 || global.chararmor2[2] == 21 || global.chararmor1[3] == 21 || global.chararmor2[3] == 21)
738
            msgsetloc(0, 
* TENNA - THE [Tragic businesmen] THAT [Died] AT THE [Now] OF THE [Story]Wait for inputClose Message
"* TENNA - THE [Tragic businesmen] THAT [Died] AT THE [Now] OF THE [Story]/%", "obj_tenna_enemy_slash_Step_0_gml_449_0"
);
739
        else
740
            msgsetloc(0, 
* TENNA - Isn't it about time you
got a new TV?Wait for inputClose Message
"* TENNA - Isn't it about time you&got a new TV?/%", "obj_tenna_enemy_slash_Step_0_gml_450_0"
);
741
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
742
    }
743
    if ((acting == 2 && actcon == 0) || (acting == 3 && actcon == 0) || (acting == 4 && actcon == 0) || (acting == 5 && actcon == 0))
744
    {
745
        if (acting == 2)
746
            strng = stringsetloc(
Everyone gets
"Everyone gets", "obj_tenna_enemy_slash_Step_0_gml_387_0_b"
);
747
        if (acting == 3)
748
            strng = stringsetloc(
You and Susie get
"You and Susie get", "obj_tenna_enemy_slash_Step_0_gml_385_0"
);
749
        if (acting == 4)
750
            strng = stringsetloc(
You and Ralsei get
"You and Ralsei get", "obj_tenna_enemy_slash_Step_0_gml_386_0"
);
751
        if (acting == 5)
752
        {
753
            if (global.lang != "ja")
754
                strng = stringsetloc(
You get
"You get", "obj_tenna_enemy_slash_Step_0_gml_384_0"
);
755
            else
756
                strng = "";
757
        }
758
        acting = 5.1;
759
    }
760
    if (acting == 5.1 && actcon == 0)
761
    {
762
        var _playminigamestring = "* " + strng + stringsetloc(
ready to play...!Wait for inputClose Message
" ready to play...!/%", "obj_tenna_enemy_slash_Step_0_gml_393_0"
);
763
        msgset(0, _playminigamestring + "/%");
764
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
765
        actcon = 1;
766
        minigameactivated = true;
767
        acting = 0;
768
        with (obj_tenna_enemy_bg)
769
            minigametimecon = 1;
770
    }
771
    if (acting == 6 && actcon == 0)
772
    {
773
        var _ilovetvstring = stringsetloc(
* You said "I Love TV"!
"* You said \"I Love TV\"!", "obj_tenna_enemy_slash_Step_0_gml_502_0"
);
774
        if (simultotal == 1)
775
        {
776
            msgset(0, _ilovetvstring + "/%");
777
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
778
            acting = 6.1;
779
        }
780
        else
781
        {
782
            msgset(0, _ilovetvstring);
783
            
scr_simultext
scr_simultext

function
scr_simultext(arg0)
{ __simulorder = 0; if (arg0 == "kris") __simulorder = simulorderkri; if (arg0 == "susie") __simulorder = simulordersus; if (arg0 == "ralsei") __simulorder = simulorderral; if (arg0 == "noelle") __simulorder = simulordernoe; __yoffset = __simulorder * 30; global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer); }
("kris");
784
            if (simulorderkri == 0)
785
                actcon = 20;
786
            else
787
                actcon = -1;
788
            acting = 6.1;
789
        }
790
    }
791
    if (acting == 6.1 && actcon == 0 && !i_ex(obj_writer))
792
    {
793
        with (obj_tenna_enemy_bg)
794
        {
795
            addscore += (20 + other.extrapoints);
796
            if (global.hp[2] < 1 && global.hp[3] < 1)
797
                addscore += 20;
798
        }
799
        msgsetloc(0, 
* He couldn't help but give some SCORE!Wait for inputClose Message
"* He couldn't help but give some SCORE!/%", "obj_tenna_enemy_slash_Step_0_gml_439_0"
);
800
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
801
        snd_play(snd_bell_bounce_short);
802
        with (obj_actor_tenna)
803
            pinkflash = 30;
804
        actcon = 1;
805
        acting = 0;
806
    }
807
    if (actingsus == 1 && actconsus == 1)
808
    {
809
        if (acting != 6.1)
810
        {
811
            with (obj_tenna_enemy_bg)
812
            {
813
                addscore += 10;
814
                if (global.hp[1] < 1)
815
                    addscore += 10;
816
            }
817
        }
818
        else
819
        {
820
            extrapoints += 10;
821
            if (global.hp[1] < 1)
822
                extrapoints += 10;
823
        }
824
        var _s_act_string = stringsetloc(
* Susie said "I Love TV!"
"* Susie said \"I Love TV!\"", "obj_tenna_enemy_slash_Step_0_gml_457_0"
);
825
        if (simultotal == 1)
826
        {
827
            msgset(0, _s_act_string + "/%");
828
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
829
            actconsus = 20;
830
        }
831
        else
832
        {
833
            msgset(0, _s_act_string);
834
            
scr_simultext
scr_simultext

function
scr_simultext(arg0)
{ __simulorder = 0; if (arg0 == "kris") __simulorder = simulorderkri; if (arg0 == "susie") __simulorder = simulordersus; if (arg0 == "ralsei") __simulorder = simulorderral; if (arg0 == "noelle") __simulorder = simulordernoe; __yoffset = __simulorder * 30; global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer); }
("susie");
835
            if (simulordersus == 0)
836
                actconsus = 20;
837
            else
838
                actconsus = 0;
839
        }
840
    }
841
    if (actingsus == 2 && actconsus == 1)
842
    {
843
        bet = true;
844
        obj_herosusie.x -= 8;
845
        obj_herosusie.y -= 6;
846
        
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; if (arg2 > 0 && arg3 == 2)
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
if (arg2 > 0 && arg3 > 2) {
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
__animator.delay = arg3; } 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_zoosuit_Card, 1/3, 8);
847
        _charinstance.actspriteobject = _charactsprite[_charnum];
848
        if (havejeviltail)
849
        {
850
            betamount = 30;
851
            with (obj_tenna_enemy_bg)
852
                addscore -= 30;
853
        }
854
        else
855
        {
856
            betamount = 20;
857
            with (obj_tenna_enemy_bg)
858
                addscore -= 20;
859
        }
860
        if (!havejeviltail)
861
            msgsetloc(0, 
* Susie bet 20 POINTs on no damage!Wait for inputClose Message
"* Susie bet 20 POINTs on no damage!/%", "obj_tenna_enemy_slash_Step_0_gml_387_0"
);
862
        if (havejeviltail)
863
        {
864
            msgsetloc(0, 
* JOKER's bet! 30 pts on NO DAMAGE!!Wait for inputClose Message
"* JOKER's bet! 30 pts on NO DAMAGE!!/%", "obj_tenna_enemy_slash_Step_0_gml_390_0"
);
865
            snd_play(snd_joker_laugh0);
866
        }
867
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
868
        actingsus = 2.1;
869
    }
870
    if (actingsus == 2.1 && !i_ex(obj_writer))
871
    {
872
        
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; } } }
();
873
        obj_herosusie.x += 8;
874
        obj_herosusie.y += 6;
875
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("susie");
876
        actingsus = 2.2;
877
        actcon = 1;
878
        actconsus = 0;
879
    }
880
    if (actingral == 1 && actconral == 1)
881
    {
882
        if (acting != 6.1)
883
        {
884
            with (obj_tenna_enemy_bg)
885
            {
886
                addscore += 10;
887
                if (global.hp[1] < 1)
888
                    addscore += 10;
889
            }
890
        }
891
        else
892
        {
893
            extrapoints += 10;
894
            if (global.hp[1] < 1)
895
                extrapoints += 10;
896
        }
897
        var _r_act_string = stringsetloc(
* Ralsei said "I Love TV!"
"* Ralsei said \"I Love TV!\"", "obj_tenna_enemy_slash_Step_0_gml_517_0"
);
898
        if (simultotal == 1)
899
        {
900
            msgset(0, _r_act_string + "/%");
901
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
902
            actconral = 20;
903
        }
904
        else
905
        {
906
            msgset(0, _r_act_string);
907
            
scr_simultext
scr_simultext

function
scr_simultext(arg0)
{ __simulorder = 0; if (arg0 == "kris") __simulorder = simulorderkri; if (arg0 == "susie") __simulorder = simulordersus; if (arg0 == "ralsei") __simulorder = simulorderral; if (arg0 == "noelle") __simulorder = simulordernoe; __yoffset = __simulorder * 30; global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer); }
("ralsei");
908
            if (simulorderral == 0)
909
                actconral = 20;
910
            else
911
                actconral = 0;
912
        }
913
    }
914
    if (actingral == 2 && actconral == 1)
915
    {
916
        popularboy = true;
917
        saveralseihp = global.hp[3];
918
        instance_create(x, y, obj_popularboy_act);
919
        snd_play(snd_drumroll);
920
        if (global.actsimulral[myself][1] == 0)
921
        {
922
            actingral = 2.1;
923
        }
924
        else
925
        {
926
            if (simulorderral == 0)
927
                actconral = 20;
928
            else
929
                actconral = 0;
930
            actingral = 2.3;
931
            msgsetloc(0, 
* Ralsei's HP linked to points!Wait for inputClose Message
"* Ralsei's HP linked to points!/%", "obj_tenna_enemy_slash_Step_0_gml_602_0"
);
932
            
scr_simultext
scr_simultext

function
scr_simultext(arg0)
{ __simulorder = 0; if (arg0 == "kris") __simulorder = simulorderkri; if (arg0 == "susie") __simulorder = simulordersus; if (arg0 == "ralsei") __simulorder = simulorderral; if (arg0 == "noelle") __simulorder = simulordernoe; __yoffset = __simulorder * 30; global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer); }
("ralsei");
933
        }
934
    }
935
    if (actingral == 2.1 && !i_ex(obj_popularboy_act))
936
    {
937
        if (global.actsimulral[myself][1] == 0)
938
        {
939
            actingral = 2.2;
940
            msgsetloc(0, 
* Ralsei became the center of attention!Wait for inputClose Message
"* Ralsei became the center of attention!/%", "obj_tenna_enemy_slash_Step_0_gml_612_0"
);
941
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
942
        }
943
    }
944
    if (actingral == 2.2 && !i_ex(obj_writer))
945
    {
946
        snd_play(snd_bump);
947
        with (ralseiplushmarker)
948
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
949
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("ralsei");
950
        msgsetloc(0, 
Face U* Wh... why me!?Wait for input
"\\EU* Wh... why me!?/", "obj_tenna_enemy_slash_Step_0_gml_623_0"
);
951
        
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("no_name", 0);
952
        msgnextloc(
Face X* Any change to Ralsei's HP will give you points!Wait for inputClose Message
"\\EX* Any change to Ralsei's HP will give you points!/%", "obj_tenna_enemy_slash_Step_0_gml_625_0"
);
953
        
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); if (global.chapter == 3 && i_ex(obj_tennabattleconvo_controller) && (obj_tennabattleconvo_controller.chattedduringbulletphase == true || (obj_tennabattleconvo_controller.introcon >= 0.1 && obj_tennabattleconvo_controller.introcon <= 2))) { } else { 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 }
();
954
        actingral = 2.3;
955
        actcon = 1;
956
        actconral = 0;
957
        global.actsimulral[myself][1] = 1;
958
    }
959
    if (actcon == 20 || actconsus == 20 || actconral == 20)
960
    {
961
        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; }
() && obj_tenna_enemy_bg.addscore == 0)
962
        {
963
            actconsus = -1;
964
            actconral = -1;
965
            actcon = 1;
966
            with (obj_face)
967
                instance_destroy();
968
            if (acting == 6.1)
969
                actcon = 0;
970
        }
971
    }
972
    if (actcon == 1 && !instance_exists(obj_writer) && obj_tenna_enemy_bg.addscore == 0)
973
    {
974
        with (obj_face)
975
            instance_destroy();
976
        
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();
} }
();
977
    }
978
}
979
if (state == 3)
980
{
981
    hurttimer -= 1;
982
    if (hurttimer < 0)
983
    {
984
        state = 0;
985
        tenna_actor.x = camerax() + 526;
986
        tenna_actor.y = cameray() + 260;
987
    }
988
    else
989
    {
990
        if (global.monster[myself] == 0)
991
            
scr_defeatrun
scr_defeatrun

function
scr_defeatrun()
{ if (global.chapter == 3 && i_ex(obj_tennabattleconvo_controller)) obj_tennabattleconvo_controller.enemydefeated = true; var __frozen; if (object_is_ancestor(object_index, obj_monsterparent)) { __frozen = 0; if (global.flag[51 + myself] == 6) __frozen = 1; if (__frozen == 1) { _rtext = instance_create(global.monsterx[myself], global.monstery[myself] - 40, obj_recruitanim); _rtext.image_index = 12; if (recruitable == 1) global.flag[global.monstertype[myself] + 600] = -1; global.flag[63 violenced_last] = 1; } if (recruitable == 1 && global.flag[61 disable_recruiting] == 0 && __frozen == 0) { global.flag[63 violenced_last] = 1; if (global.flag[global.monstertype[myself] + 600] != -1) { global.flag[global.monstertype[myself] + 600] = -1; _rtext = instance_create(global.monsterx[myself], global.monstery[myself] - 40, obj_recruitanim); _rtext.image_index = 7; } } } else { fatal = 0; } if (!__frozen) { if (fatal == 1) defeatanim = instance_create(x, y, obj_deathanim); else defeatanim = instance_create(x, y, obj_defeatanim); } else if (__frozen) { defeatanim = instance_create(x, y, obj_frozennpc); defeatanim.depth = depth; defeatanim.inbattle = 1; } defeatanim.sprite_index = sprite_index; defeatanim.sprite_index = hurtsprite; defeatanim.image_index = 0; defeatanim.image_xscale = image_xscale; defeatanim.image_yscale = image_yscale; instance_destroy(); }
();
992
        hurtshake += 1;
993
        if (hurtshake > 1)
994
        {
995
            if (shakex > 0)
996
                shakex -= 1;
997
            if (shakex < 0)
998
                shakex += 1;
999
            shakex = -shakex;
1000
            hurtshake = 0;
1001
        }
1002
    }
1003
}
1004
if (extrapointsviatension >= 2.5)
1005
{
1006
    extrapointsviatension -= 2.5;
1007
    points++;
1008
}
1009
if (lancerspin == true)
1010
{
1011
    lancerindex++;
1012
    if (lancerindex == 10)
1013
        lancerindex = 2;
1014
    if (lancerindex == 2)
1015
        lancermarker.sprite_index = spr_lancer_ut;
1016
    if (lancerindex == 4)
1017
        lancermarker.sprite_index = spr_lancer_rt;
1018
    if (lancerindex == 6)
1019
        lancermarker.sprite_index = spr_lancer_dt;
1020
    if (lancerindex == 8)
1021
        lancermarker.sprite_index = spr_lancer_lt;
1022
}
1023
if (lancercheat == true && i_ex(obj_tenna_enemy_bg) && obj_tenna_enemy_bg.myscore < lancercheatpoints)
1024
    obj_tenna_enemy_bg.myscore = lancercheatpoints;
1025
if (minigametransition_con == 1)
1026
{
1027
    minigametransition_timer++;
1028
    if (minigametransition_timer == 1)
1029
    {
1030
        tenna_actor.vspeed = -18;
1031
        tenna_actor.hspeed = -10.5;
1032
        tenna_actor.gravity = 2;
1033
        tenna_actor.sprite_index = spr_tenna_attack;
1034
        snd_play(snd_jump);
1035
        with (obj_tenna_enemy_bg)
1036
        {
1037
            speedup = 0;
1038
            slowdown = 1;
1039
        }
1040
    }
1041
    if (tenna_actor.y > tenna_actor.ystart && tenna_actor.vspeed > 0)
1042
    {
1043
        tenna_actor.y = tenna_actor.ystart;
1044
        tenna_actor.sprite_index = spr_tenna_grasp;
1045
        tenna_actor._static = true;
1046
        tenna_actor.vspeed = 0;
1047
        tenna_actor.hspeed = 0;
1048
        tenna_actor.gravity = 0;
1049
        tenna_actor.x = camerax() + 320;
1050
        tenna_actor.y = cameray() + 254;
1051
        snd_play(snd_impact);
1052
        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen()
{ instance_create(x, y, obj_shake); }
();
1053
        minigametransition_con = 1.5;
1054
        minigametransition_timer = 0;
1055
    }
1056
}
1057
if (minigametransition_con == 1.5)
1058
{
1059
    minigametransition_timer++;
1060
    if (minigametransition_timer == 1)
1061
    {
1062
        tenna_zoom = instance_create(tenna_actor.x, tenna_actor.y - 154, obj_tenna_zoom);
1063
        tenna_zoom.minigametype = minigametype;
1064
        tenna_zoom.minigamedifficulty = difficulty;
1065
        tenna_zoom.minigametype2 = minigametype2;
1066
        tenna_zoom.minigamedifficulty2 = difficulty2;
1067
        tenna_zoom.minigametype3 = minigametype3;
1068
        tenna_zoom.minigamedifficulty3 = difficulty3;
1069
        tenna_actor.x = -9999;
1070
        tenna_actor.y = -9999;
1071
        minigamefailcountprev = 0;
1072
        minigamefailcount = 0;
1073
    }
1074
    if (minigametransition_timer == 15)
1075
    {
1076
        minigametransition_con = 2;
1077
        minigametransition_timer = 0;
1078
    }
1079
}
1080
if (minigametransition_con == 3)
1081
{
1082
    minigametransition_timer++;
1083
    if (minigametransition_timer == 1)
1084
    {
1085
        tenna_actor.vspeed = -18;
1086
        tenna_actor.hspeed = 10.5;
1087
        tenna_actor.gravity = 2;
1088
        tenna_actor.sprite_index = spr_tenna_attack;
1089
        tenna_actor.image_xscale = -2;
1090
        snd_play(snd_jump);
1091
        if (minigamefailcount > 0)
1092
            minigamefailcon = 1;
1093
        else if (global.turntimer > 1)
1094
            global.turntimer = 1;
1095
        with (obj_tenna_enemy_bg)
1096
        {
1097
            speedup = 1;
1098
            slowdown = 0;
1099
        }
1100
    }
1101
    if (tenna_actor.y > tenna_actor.ystart && tenna_actor.vspeed > 0)
1102
    {
1103
        tenna_actor.sprite_index = spr_tenna_point_up;
1104
        tenna_actor.vspeed = 0;
1105
        tenna_actor.hspeed = 0;
1106
        tenna_actor.gravity = 0;
1107
        tenna_actor.image_xscale = 2;
1108
        tenna_actor.x = tenna_actor.xstart;
1109
        tenna_actor.y = tenna_actor.ystart;
1110
        snd_play(snd_impact);
1111
        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen()
{ instance_create(x, y, obj_shake); }
();
1112
        minigametransition_con = 0;
1113
        minigametransition_timer = 0;
1114
    }
1115
    with (obj_vfx_twinkle)
1116
        instance_destroy();
1117
    with (obj_flickerdie)
1118
        instance_destroy();
1119
    with (obj_ch3_b4_chef_fire)
1120
        instance_destroy();
1121
}
1122
if (minigamefailcount > 3)
1123
    minigamefailcount = 3;
1124
if (minigamefailcon == 1)
1125
{
1126
    if (minigamefailcount > 0 && (minigamefailtimer == 0 || minigamefailtimer == 15 || minigamefailtimer == 30))
1127
    {
1128
        minigamefailcount--;
1129
        target = mytarget;
1130
        totalfails++;
1131
        if (totalfails == 1)
1132
            damage = 56;
1133
        if (totalfails == 2)
1134
            damage = 26;
1135
        if (totalfails > 2)
1136
            damage = 18;
1137
        snd_play(snd_damage);
1138
        global.inv = -1;
1139
        if (obj_tenna_enemy.popularboy && global.hp[3] > 0)
1140
        {
1141
            target = 2;
1142
            damage *= 2;
1143
            
scr_damage
scr_damage

function
scr_damage()
{ if (global.inv < 0) {
scr_damage_cache();
if (global.chapter == 3) { with (obj_tennabattleconvo_controller) { damagecount++; damagecountthisturn++; } with (obj_tenna_enemy) gothit = true; with (obj_knight_enemy) progamer = false; } var __element = 0; if (variable_instance_exists(id, "element")) { if (is_real(element)) __element = element; } if (target < 3) { if (global.hp[global.char[target]] <= 0) {
scr_randomtarget_old();
target = mytarget; with (global.charinstance[target]) { image_blend = c_white; darkify = 0; } } } var __remtarget = -1; if (target == 4) { __remtarget = 4;
scr_randomtarget_old();
target = mytarget; if ((global.hp[global.char[target]] / global.maxhp[global.char[target]]) < (
scr_party_hpaverage() / 2))
{
scr_randomtarget_old();
target = mytarget; } if ((global.hp[global.char[target]] / global.maxhp[global.char[target]]) < (
scr_party_hpaverage() / 2))
{
scr_randomtarget_old();
target = mytarget; } if (target == 0 && (global.hp[global.char[target]] / global.maxhp[global.char[target]]) < 0.35) {
scr_randomtarget_old();
target = mytarget; } with (global.charinstance[target]) { image_blend = c_white; darkify = 0; } } var truedamage = 0; if ((global.chapter == 3 && i_ex(obj_tenna_enemy) && obj_tenna_enemy.minigameinsanity) || i_ex(obj_knight_roaring2)) truedamage = 1; chartarget = 3; if (global.chapter == 3 && i_ex(obj_knight_enemy) && truedamage == 0) { if (obj_knight_enemy.aoedamage == false) { if (target == 0) { if (global.hp[2] > 0 && global.hp[3] > 0) target = choose(1, 2); else if (global.hp[2] > 0) target = 1; else if (global.hp[3] > 0) target = 2; } if (obj_knight_enemy.myattackchoice != 13) { if (global.chararmor1[1] == 23 || global.chararmor2[1] == 23 || global.chararmor1[2] == 23 || global.chararmor2[2] == 23 || global.chararmor1[3] == 23 || global.chararmor2[3] == 23) { obj_knight_enemy.damagecounter++; if (obj_knight_enemy.damagecounter < 3) { if (global.hp[1] > 0 && (global.chararmor1[1] == 23 || global.chararmor2[1] == 23)) target = 0; if (global.hp[2] > 0 && (global.chararmor1[2] == 23 || global.chararmor2[2] == 23)) target = 1; if (global.hp[3] > 0 && (global.chararmor1[3] == 23 || global.chararmor2[3] == 23)) target = 2; } else { target = choose(0, 1, 2); repeat (2) { if (global.hp[1] < 1 && target == 0) target++; ...
();
1144
            with (obj_heroralsei)
1145
                instance_create(x + 30, y + 50, obj_tenna_x_hurt);
1146
        }
1147
        else
1148
        {
1149
            
scr_damage_all
scr_damage_all

function
scr_damage_all()
{ if (global.inv < 0) { remdamage = damage; _temptarget = target; for (ti = 0; ti < 3; ti += 1) { global.inv = -1; damage = remdamage; target = ti; if (global.hp[global.char[ti]] > 0 && global.char[ti] != 0)
scr_damage();
} global.inv = global.invc * 30; target = _temptarget; } }
();
1150
            if (global.hp[1] > 0)
1151
            {
1152
                with (obj_herokris)
1153
                    instance_create(x + 30, y + 50, obj_tenna_x_hurt);
1154
            }
1155
            if (global.hp[2] > 0)
1156
            {
1157
                with (obj_herosusie)
1158
                    instance_create(x + 30, y + 50, obj_tenna_x_hurt);
1159
            }
1160
            if (global.hp[3] > 0)
1161
            {
1162
                with (obj_heroralsei)
1163
                    instance_create(x + 30, y + 50, obj_tenna_x_hurt);
1164
            }
1165
        }
1166
        global.inv = -1;
1167
    }
1168
    minigamefailtimer++;
1169
    if (minigamefailcount == 0)
1170
    {
1171
        minigamefailtimer2++;
1172
        if (minigamefailtimer2 == 5)
1173
        {
1174
            with (obj_dmgwriter)
1175
                killactive = 1;
1176
        }
1177
        if (minigamefailtimer2 == 15)
1178
        {
1179
            minigamefailtimer = 0;
1180
            minigamefailtimer2 = 0;
1181
            minigamefailcon = 0;
1182
            if (global.turntimer > 1)
1183
                global.turntimer = 1;
1184
        }
1185
    }
1186
}
1187
if (minigamefailcount > 0 && global.turntimer < 4)
1188
    global.turntimer = 4;
1189
if (minigamefailcount > minigamefailcountprev && minigameinsanity)
1190
{
1191
    minigameinsanitydamage = true;
1192
    for (ti = 0; ti < 3; ti += 1)
1193
    {
1194
        global.inv = -1;
1195
        damage = ceil(global.hp[global.char[ti]] / 8);
1196
        if (damage < 4)
1197
            damage = 4;
1198
        target = ti;
1199
        if (global.hp[global.char[ti]] > 0 && global.char[ti] != 0)
1200
        {
1201
            
scr_damage
scr_damage

function
scr_damage()
{ if (global.inv < 0) {
scr_damage_cache();
if (global.chapter == 3) { with (obj_tennabattleconvo_controller) { damagecount++; damagecountthisturn++; } with (obj_tenna_enemy) gothit = true; with (obj_knight_enemy) progamer = false; } var __element = 0; if (variable_instance_exists(id, "element")) { if (is_real(element)) __element = element; } if (target < 3) { if (global.hp[global.char[target]] <= 0) {
scr_randomtarget_old();
target = mytarget; with (global.charinstance[target]) { image_blend = c_white; darkify = 0; } } } var __remtarget = -1; if (target == 4) { __remtarget = 4;
scr_randomtarget_old();
target = mytarget; if ((global.hp[global.char[target]] / global.maxhp[global.char[target]]) < (
scr_party_hpaverage() / 2))
{
scr_randomtarget_old();
target = mytarget; } if ((global.hp[global.char[target]] / global.maxhp[global.char[target]]) < (
scr_party_hpaverage() / 2))
{
scr_randomtarget_old();
target = mytarget; } if (target == 0 && (global.hp[global.char[target]] / global.maxhp[global.char[target]]) < 0.35) {
scr_randomtarget_old();
target = mytarget; } with (global.charinstance[target]) { image_blend = c_white; darkify = 0; } } var truedamage = 0; if ((global.chapter == 3 && i_ex(obj_tenna_enemy) && obj_tenna_enemy.minigameinsanity) || i_ex(obj_knight_roaring2)) truedamage = 1; chartarget = 3; if (global.chapter == 3 && i_ex(obj_knight_enemy) && truedamage == 0) { if (obj_knight_enemy.aoedamage == false) { if (target == 0) { if (global.hp[2] > 0 && global.hp[3] > 0) target = choose(1, 2); else if (global.hp[2] > 0) target = 1; else if (global.hp[3] > 0) target = 2; } if (obj_knight_enemy.myattackchoice != 13) { if (global.chararmor1[1] == 23 || global.chararmor2[1] == 23 || global.chararmor1[2] == 23 || global.chararmor2[2] == 23 || global.chararmor1[3] == 23 || global.chararmor2[3] == 23) { obj_knight_enemy.damagecounter++; if (obj_knight_enemy.damagecounter < 3) { if (global.hp[1] > 0 && (global.chararmor1[1] == 23 || global.chararmor2[1] == 23)) target = 0; if (global.hp[2] > 0 && (global.chararmor1[2] == 23 || global.chararmor2[2] == 23)) target = 1; if (global.hp[3] > 0 && (global.chararmor1[3] == 23 || global.chararmor2[3] == 23)) target = 2; } else { target = choose(0, 1, 2); repeat (2) { if (global.hp[1] < 1 && target == 0) target++; ...
();
1202
            if (i_ex(dmgwriter))
1203
            {
1204
                if (ti == 0)
1205
                    dmgwriter.x -= 70;
1206
                if (ti == 1)
1207
                    dmgwriter.x += 170;
1208
                if (ti == 2)
1209
                    dmgwriter.x += 420;
1210
                dmgwriter.y = 340;
1211
                dmgwriter.ystart = 340;
1212
                dmgwriter.depth = -999999999;
1213
            }
1214
        }
1215
        if (phaseturn == 18 && i_ex(dmgwriter))
1216
        {
1217
            if (ti == 1)
1218
                dmgwriter.x += 20;
1219
            dmgwriter.ystart = 280;
1220
        }
1221
    }
1222
    global.inv = global.invc * 30;
1223
    target = 3;
1224
    minigamefailcount = 0;
1225
    minigameinsanitydamage = false;
1226
}
1227
minigamefailcountprev = minigamefailcount;
1228
1229
enum e__VW
1230
{
1231
    XView,
1232
    YView,
1233
    WView,
1234
    HView,
1235
    Angle,
1236
    HBorder,
1237
    VBorder,
1238
    HSpeed,
1239
    VSpeed,
1240
    Object,
1241
    Visible,
1242
    XPort,
1243
    YPort,
1244
    WPort,
1245
    HPort,
1246
    Camera,
1247
    SurfaceID
1248
}