Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_hatguy_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (global.monstercomment[myself] == stringsetloc(
(Tired)
"(Tired)", "obj_hatguy_enemy_slash_Step_0_gml_4_0"
))
2
{
3
    global.monstercomment[myself] = " ";
4
    global.monsterstatus[myself] = 0;
5
}
6
if (global.monster[myself] == 1)
7
{
8
    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)
9
    {
10
        
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; } }
();
11
        if (!instance_exists(obj_darkener))
12
            instance_create(0, 0, obj_darkener);
13
        postattackscene = 0;
14
        heal = 0;
15
        groove = 0;
16
        global.typer = 50;
17
        rr = choose(0, 1, 2, 3);
18
        if (dancing == 1 && dancedwithsusie == 0)
19
        {
20
            msgsetloc(0, 
What, you wanna
see my moves?
"What, you wanna&see my moves?", "obj_hatguy_enemy_slash_Step_0_gml_29_0"
);
21
        }
22
        else if (dancing == 1 && dancedwithsusie == 1)
23
        {
24
            msgsetloc(0, 
Ah-ha, if it's
a madimoizel...
"Ah-ha, if it's&a madimoizel...", "obj_hatguy_enemy_slash_Step_0_gml_30_0"
);
25
        }
26
        else
27
        {
28
            if (rr == 0)
29
                msgsetloc(0, 
Hey, don't touch
the hat.
"Hey, don't touch&the hat.", "obj_hatguy_enemy_slash_Step_0_gml_33_0"
);
30
            if (rr == 1)
31
                msgsetloc(0, 
Isn't this mix...
schway?
"Isn't this mix...&schway?", "obj_hatguy_enemy_slash_Step_0_gml_34_0"
);
32
            if (rr == 2)
33
                msgsetloc(0, 
Alright, alright.
Alright alright alright.
"Alright, alright.&Alright alright alright.", "obj_hatguy_enemy_slash_Step_0_gml_35_0"
);
34
            if (rr == 3)
35
                msgsetloc(0, 
So did they pay
the venue fee?
"So did they pay&the venue fee?", "obj_hatguy_enemy_slash_Step_0_gml_36_0"
);
36
        }
37
        
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } }
(x - 10, global.monstery[myself], 10);
38
        dancedwithsusie = 0;
39
        talked = 1;
40
        talktimer = 0;
41
    }
42
    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"))
43
    {
44
        rtimer = 0;
45
        
scr_blconskip
scr_blconskip

function
scr_blconskip(arg0)
{ if (arg0 >= 0) { if (button1_p() && talktimer > arg0) talktimer = talkmax; talktimer += 1; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); global.mnfight = 2; } } else if (arg0 == -1) { if (instance_exists(obj_writer) == false) global.mnfight = 2; } else if (arg0 == -2) { talktimer += 1; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); global.mnfight = 2; } } }
(15);
46
        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"))
47
        {
48
            if ((instance_exists(obj_sweet_enemy) && global.monsterhp[obj_sweet_enemy.myself] < 2) || (instance_exists(obj_kk_enemy) && global.monsterhp[obj_kk_enemy.myself] < 2) || (instance_exists(obj_hatguy_enemy) && global.monsterhp[obj_hatguy_enemy.myself] < 2))
49
            {
50
                if (obj_musical_controller.scon == 0)
51
                    obj_musical_controller.scon = 1;
52
                with (obj_sweet_enemy)
53
                    heal = 1;
54
                with (obj_kk_enemy)
55
                    heal = 1;
56
                with (obj_hatguy_enemy)
57
                    heal = 1;
58
            }
59
            else
60
            {
61
                if (!instance_exists(obj_growtangle))
62
                    instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 206, obj_growtangle);
63
                if (!instance_exists(obj_moveheart))
64
                    
scr_moveheart
scr_moveheart

function
scr_moveheart()
{ global.inv = 0; if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy)) return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart); else return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart); }
();
65
            }
66
        }
67
    }
68
    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)
69
    {
70
        rtimer += 1;
71
        if (rtimer == 12)
72
        {
73
            rr = choose(0, 1);
74
            if (heal == 1)
75
            {
76
                if (obj_musical_controller.scon == 0)
77
                    obj_musical_controller.scon = 1;
78
            }
79
            else if (!dancing)
80
            {
81
                global.monsterattackname[myself] = "musical bullets";
82
                if (!instance_exists(obj_musicalbullet_controller))
83
                {
84
                    dc = instance_create(x, y, obj_musicalbullet_controller);
85
                    dc.damage = global.monsterat[myself] * 5;
86
                    dc.target = mytarget;
87
                    boombox = instance_create(obj_growtangle.x - 115, obj_growtangle.y + 80, obj_musicenemy_boombox);
88
                    boombox.damage = global.monsterat[myself] * 5;
89
                    boombox.target = mytarget;
90
                    boombox = instance_create(obj_growtangle.x + 115, obj_growtangle.y + 80, obj_musicenemy_boombox);
91
                    boombox.image_xscale = -1;
92
                    boombox.damage = global.monsterat[myself] * 5;
93
                    boombox.target = mytarget;
94
                    dancer = instance_create(obj_growtangle.x - 60, obj_growtangle.y - 100, obj_musicenemy_dancer);
95
                    dancer.damage = global.monsterat[myself] * 5;
96
                    dancer.target = mytarget;
97
                    dancer = instance_create(obj_growtangle.x - 20, obj_growtangle.y - 100, obj_musicenemy_dancer);
98
                    dancer.damage = global.monsterat[myself] * 5;
99
                    dancer.target = mytarget;
100
                    dancer = instance_create(obj_growtangle.x + 20, obj_growtangle.y - 100, obj_musicenemy_dancer);
101
                    dancer.damage = global.monsterat[myself] * 5;
102
                    dancer.target = mytarget;
103
                }
104
                else
105
                {
106
                    obj_musicalbullet_controller.enemy_count += 1;
107
                }
108
            }
109
            global.turntimer = 235;
110
            turns += 1;
111
            global.typer = 6;
112
            global.fc = 0;
113
            rr = choose(0, 1, 2, 3);
114
            if (rr == 0)
115
                global.battlemsg[0] = "";
116
            if (rr == 1)
117
                global.battlemsg[0] = "";
118
            if (rr == 2)
119
                global.battlemsg[0] = "";
120
            if (rr == 3)
121
                global.battlemsg[0] = "";
122
            attacked = 1;
123
        }
124
        else
125
        {
126
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(120);
127
        }
128
    }
129
    if (!instance_exists(obj_kk_enemy) && !instance_exists(obj_sweet_enemy) && global.mnfight == 2 && global.turntimer <= 1 && postattackscene == 0)
130
    {
131
        with (obj_battlecontroller)
132
            noreturn = 1;
133
        with (obj_musical_controller)
134
            event_user(0);
135
        postattackscene = 1;
136
    }
137
}
138
if (global.myfight == 3)
139
{
140
    xx = __view_get(e__VW.XView, 0);
141
    yy = __view_get(e__VW.YView, 0);
142
    if (acting == 1 && actcon == 0)
143
    {
144
        actcon = 1;
145
        msgsetloc(0, 
* CAP'N - The smooth one. Looks up to K_K.Wait for inputClose Message
"* CAP'N - The smooth one. Looks up to K_K./%", "obj_hatguy_enemy_slash_Step_0_gml_143_0"
);
146
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
147
    }
148
    if (acting == 2 && actcon == 0)
149
    {
150
        if (instance_exists(obj_sweet_enemy))
151
        {
152
            with (obj_sweet_enemy)
153
                actCounter++;
154
        }
155
        danceCounter = 1;
156
        
scr_act_charsprite
scr_act_charsprite

function
scr_act_charsprite(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] =
scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1) image_speed = arg2; a =
scr_afterimage();
a.hspeed = 2.5; a.depth = depth + 1; b =
scr_afterimage();
b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("kris", spr_kris_dance, 0.16, 1);
157
        if (simultotal == 1 || (global.lang == "ja" && obj_sweet_enemy.simultotal_funny == 1))
158
        {
159
            msgsetloc(0, 
* You danced!Wait for input
"* You danced!/", "obj_hatguy_enemy_slash_Step_0_gml_165_0"
);
160
            msgnextloc(
* Cap'n got lost in the groove!Wait for inputClose Message
"* Cap'n got lost in the groove!/%", "obj_hatguy_enemy_slash_Step_0_gml_166_0"
);
161
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
162
            actcon = 4;
163
            alarm[4]
 = 10;
gml_Object_obj_hatguy_enemy_Alarm_4.gml

actcon += 1;
164
        }
165
        else
166
        {
167
            dancing = true;
168
            if (groove == 0)
169
            {
170
                if (global.lang == "ja")
171
                {
172
                    msgsetloc(0, 
* You danced with Cap'n!Wait for input
"* You danced with Cap'n!/", "obj_hatguy_enemy_slash_Step_0_gml_177_0"
);
173
                    msgnextloc(
* Cap'n got lost in the groove!Wait for inputClose Message
"* Cap'n got lost in the groove!/%", "obj_hatguy_enemy_slash_Step_0_gml_178_0"
);
174
                }
175
                else
176
                {
177
                    msgsetloc(0, 
* You danced with Cap'n!Wait for inputClose Message
"* You danced with Cap'n!/%", "obj_hatguy_enemy_slash_Step_0_gml_183_0"
);
178
                }
179
                groove = 1;
180
            }
181
            else
182
            {
183
                msgsetloc(0, 
* You danced with Cap'n!Wait for inputClose Message
"* You danced with Cap'n!/%", "obj_hatguy_enemy_slash_Step_0_gml_183_0"
);
184
            }
185
            if (global.lang == "ja")
186
            {
187
                
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
188
                actcon = 20;
189
            }
190
            else
191
            {
192
                
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");
193
                if (simulorderkri == 0)
194
                    actcon = 20;
195
                else
196
                    actcon = 0;
197
            }
198
        }
199
    }
200
    if (acting == 3 && actcon == 0)
201
    {
202
        if (instance_exists(obj_sweet_enemy))
203
        {
204
            with (obj_sweet_enemy)
205
                actCounter++;
206
        }
207
        danceCounter = 2;
208
        
scr_act_charsprite
scr_act_charsprite

function
scr_act_charsprite(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] =
scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1) image_speed = arg2; a =
scr_afterimage();
a.hspeed = 2.5; a.depth = depth + 1; b =
scr_afterimage();
b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("kris", spr_kris_dance, 0.16, 1);
209
        
scr_act_charsprite
scr_act_charsprite

function
scr_act_charsprite(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] =
scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1) image_speed = arg2; a =
scr_afterimage();
a.hspeed = 2.5; a.depth = depth + 1; b =
scr_afterimage();
b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("ralsei", spr_ralsei_dance, 0.16, 1);
210
        
scr_act_charsprite
scr_act_charsprite

function
scr_act_charsprite(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] =
scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1) image_speed = arg2; a =
scr_afterimage();
a.hspeed = 2.5; a.depth = depth + 1; b =
scr_afterimage();
b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("susie", spr_susie_dance, 0.16, 1);
211
        msgsetloc(0, 
* Everyone danced with Cap'n! They're totally lost in the groove!Wait for inputClose Message
"* Everyone danced with Cap'n! They're totally lost in the groove!/%", "obj_hatguy_enemy_slash_Step_0_gml_214_0"
);
212
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
213
        actcon = 4;
214
        alarm[4]
 = 10;
gml_Object_obj_hatguy_enemy_Alarm_4.gml

actcon += 1;
215
    }
216
    if (actcon == 5)
217
    {
218
        dancing = true;
219
        actcon = 1;
220
    }
221
    if (actingsus == 1 && actconsus == 1)
222
    {
223
        dancing = true;
224
        danceCounter = 1;
225
        dancedwithsusie = 1;
226
        
scr_act_charsprite
scr_act_charsprite

function
scr_act_charsprite(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] =
scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1) image_speed = arg2; a =
scr_afterimage();
a.hspeed = 2.5; a.depth = depth + 1; b =
scr_afterimage();
b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("susie", spr_susie_dance, 0.16, 1);
227
        if (groove == 0)
228
        {
229
            if (global.lang == "ja")
230
            {
231
                msgsetloc(0, 
* Susie danced with Cap'n!Wait for input
"* Susie danced with Cap'n!/", "obj_hatguy_enemy_slash_Step_0_gml_241_0"
);
232
                msgnextloc(
* Cap'n got lost in the groove!Wait for inputClose Message
"* Cap'n got lost in the groove!/%", "obj_hatguy_enemy_slash_Step_0_gml_242_0"
);
233
            }
234
            else
235
            {
236
                msgsetloc(0, 
* Susie danced with Cap'n!Wait for inputClose Message
"* Susie danced with Cap'n!/%", "obj_hatguy_enemy_slash_Step_0_gml_247_0"
);
237
            }
238
            groove = 1;
239
        }
240
        else
241
        {
242
            msgsetloc(0, 
* Susie danced with Cap'n!Wait for inputClose Message
"* Susie danced with Cap'n!/%", "obj_hatguy_enemy_slash_Step_0_gml_247_0"
);
243
        }
244
        if (global.lang == "ja")
245
        {
246
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
247
            actconsus = 20;
248
        }
249
        else
250
        {
251
            
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");
252
            if (simulordersus == 0)
253
                actconsus = 20;
254
            else
255
                actconsus = 0;
256
        }
257
    }
258
    if (actingral == 1 && actconral == 1)
259
    {
260
        dancing = true;
261
        danceCounter = 1;
262
        
scr_act_charsprite
scr_act_charsprite

function
scr_act_charsprite(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] =
scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1) image_speed = arg2; a =
scr_afterimage();
a.hspeed = 2.5; a.depth = depth + 1; b =
scr_afterimage();
b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("ralsei", spr_ralsei_dance, 0.16, 1);
263
        if (groove == 0)
264
        {
265
            if (global.lang == "ja")
266
            {
267
                msgsetloc(0, 
* Ralsei danced with Cap'n!Wait for input
"* Ralsei danced with Cap'n!/", "obj_hatguy_enemy_slash_Step_0_gml_279_0"
);
268
                msgnextloc(
* Cap'n got lost in the groove!Wait for inputClose Message
"* Cap'n got lost in the groove!/%", "obj_hatguy_enemy_slash_Step_0_gml_280_0"
);
269
            }
270
            else
271
            {
272
                msgsetloc(0, 
* Ralsei danced with Cap'n!Wait for inputClose Message
"* Ralsei danced with Cap'n!/%", "obj_hatguy_enemy_slash_Step_0_gml_285_0"
);
273
            }
274
            groove = 1;
275
        }
276
        else
277
        {
278
            msgsetloc(0, 
* Ralsei danced with Cap'n!Wait for inputClose Message
"* Ralsei danced with Cap'n!/%", "obj_hatguy_enemy_slash_Step_0_gml_285_0"
);
279
        }
280
        if (global.lang == "ja")
281
        {
282
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
283
            actconral = 20;
284
        }
285
        else
286
        {
287
            
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");
288
            if (simulorderral == 0)
289
                actconral = 20;
290
            else
291
                actconral = 0;
292
        }
293
    }
294
    if (actcon == 1 && !instance_exists(obj_writer))
295
    {
296
        if (obj_sweet_enemy.dancing == true && obj_kk_enemy.dancing == true && obj_hatguy_enemy.dancing == true && obj_sweet_enemy.endcon == 0)
297
        {
298
            obj_sweet_enemy.endcon = 1;
299
        }
300
        else if (obj_sweet_enemy.endcon == 0)
301
        {
302
            with (obj_marker)
303
            {
304
                if (sprite_index == spr_kris_dance || sprite_index == spr_susie_dance || sprite_index == spr_ralsei_dance)
305
                {
306
                    instance_destroy();
307
                    with (obj_heroparent)
308
                    {
309
                        if (image_alpha == 0)
310
                        {
311
                            image_alpha = 1;
312
                            acttimer = 0;
313
                            state = 0;
314
                            global.faceaction[myself] = 0;
315
                        }
316
                    }
317
                }
318
            }
319
            
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();
} }
();
320
        }
321
    }
322
    if (actcon == 20 || actconsus == 20 || actconral == 20)
323
    {
324
        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; }
())
325
        {
326
            if (obj_sweet_enemy.dancing == true && obj_kk_enemy.dancing == true && obj_hatguy_enemy.dancing == true && obj_sweet_enemy.endcon == 0)
327
            {
328
                obj_sweet_enemy.endcon = 1;
329
            }
330
            else if (obj_sweet_enemy.endcon == 0)
331
            {
332
                with (obj_marker)
333
                {
334
                    if (sprite_index == spr_kris_dance || sprite_index == spr_susie_dance || sprite_index == spr_ralsei_dance)
335
                    {
336
                        instance_destroy();
337
                        with (obj_heroparent)
338
                        {
339
                            if (image_alpha == 0)
340
                            {
341
                                image_alpha = 1;
342
                                acttimer = 0;
343
                                state = 0;
344
                                global.faceaction[myself] = 0;
345
                            }
346
                        }
347
                    }
348
                }
349
                actconsus = -1;
350
                actconral = -1;
351
                actcon = 1;
352
            }
353
        }
354
    }
355
}
356
357
enum e__VW
358
{
359
    XView,
360
    YView,
361
    WView,
362
    HView,
363
    Angle,
364
    HBorder,
365
    VBorder,
366
    HSpeed,
367
    VSpeed,
368
    Object,
369
    Visible,
370
    XPort,
371
    YPort,
372
    WPort,
373
    HPort,
374
    Camera,
375
    SurfaceID
376
}