1 |
if (global.monster[myself] == 1) |
2 |
{ |
3 |
if (global.monstercomment[myself] == "(Tired)") |
4 |
{ |
5 |
global.monstercomment[myself] = " "; |
6 |
global.monsterstatus[myself] = 0; |
7 |
} |
8 |
solotimer = round(audio_sound_get_track_position(solo_music) * 30); |
9 |
sweetdanceprev = obj_sweet_enemy.dancing; |
10 |
capndanceprev = obj_hatguy_enemy.dancing; |
11 |
kkdanceprev = obj_kk_enemy.dancing; |
12 |
if (scr_isphasescr_isphasefunction 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) |
13 |
{ |
14 |
scr_randomtargetscr_randomtargetfunction 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;
}
} (); |
15 |
if (!instance_exists(obj_darkener)) |
16 |
instance_create(0, 0, obj_darkener); |
17 |
postattackscene = 0; |
18 |
heal = 0; |
19 |
groove = 0; |
20 |
obj_musical_controller.scon = 0; |
21 |
simultotal_funny = 0; |
22 |
global.typer = 50; |
23 |
rr = choose(0, 1, 2, 3); |
24 |
if (dancing == 1) |
25 |
{ |
26 |
msgsetloc(0, Hey,Delay 11 I love this song!!"Hey^1, I love&this song!!", "obj_sweet_enemy_slash_Step_0_gml_27_0" ); |
27 |
} |
28 |
else |
29 |
{ |
30 |
if (rr == 0) |
31 |
msgsetloc(0, Feel the beat,Delay 11 feel the beatdown!"Feel the beat^1,&feel the beatdown!", "obj_sweet_enemy_slash_Step_0_gml_30_0" ); |
32 |
if (rr == 1) |
33 |
msgsetloc(0, Boom,Delay 11 du-boom,Delay 11 du-boom,"Boom^1, du-boom^1,&du-boom,", "obj_sweet_enemy_slash_Step_0_gml_31_0" ); |
34 |
if (rr == 2) |
35 |
msgsetloc(0, Get mixed,Delay 11 get remixed!"Get mixed^1,&get remixed!", "obj_sweet_enemy_slash_Step_0_gml_32_0" ); |
36 |
if (rr == 3) |
37 |
msgsetloc(0, Taste the rhythm,Delay 11 prism!"Taste the rhythm^1,&prism!", "obj_sweet_enemy_slash_Step_0_gml_33_0" ); |
38 |
} |
39 |
scr_enemyblconscr_enemyblconfunction 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); |
40 |
talked = 1; |
41 |
talktimer = 0; |
42 |
} |
43 |
if (talked == 1 && scr_isphasescr_isphasefunction 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")) |
44 |
{ |
45 |
rtimer = 0; |
46 |
scr_blconskipscr_blconskipfunction 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); |
47 |
if (scr_isphasescr_isphasefunction 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")) |
48 |
{ |
49 |
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)) |
50 |
{ |
51 |
if (obj_musical_controller.scon == 0) |
52 |
obj_musical_controller.scon = 1; |
53 |
with (obj_sweet_enemy) |
54 |
heal = 1; |
55 |
with (obj_kk_enemy) |
56 |
heal = 1; |
57 |
with (obj_hatguy_enemy) |
58 |
heal = 1; |
59 |
} |
60 |
else if (obj_sweet_enemy.learnedhowtoact == 1) |
61 |
{ |
62 |
postattackscene = 1; |
63 |
with (obj_battlecontroller) |
64 |
noreturn = 1; |
65 |
with (obj_musical_controller) |
66 |
event_user(0); |
67 |
with (obj_heroparent) |
68 |
darkify = 0; |
69 |
with (obj_darkener) |
70 |
instance_destroy(); |
71 |
} |
72 |
else |
73 |
{ |
74 |
if (!instance_exists(obj_growtangle)) |
75 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 206, obj_growtangle); |
76 |
if (!instance_exists(obj_moveheart)) |
77 |
scr_moveheartscr_moveheartfunction 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);
} (); |
78 |
with (obj_growtangle) |
79 |
{ |
80 |
maxxscale = 2; |
81 |
maxyscale = 2.5; |
82 |
} |
83 |
} |
84 |
} |
85 |
} |
86 |
if (scr_isphasescr_isphasefunction 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) |
87 |
{ |
88 |
rtimer += 1; |
89 |
if (rtimer == 12) |
90 |
{ |
91 |
rr = choose(0, 1); |
92 |
if (heal == 1) |
93 |
{ |
94 |
if (obj_musical_controller.scon == 0) |
95 |
obj_musical_controller.scon = 1; |
96 |
} |
97 |
else if (!dancing) |
98 |
{ |
99 |
global.monsterattackname[myself] = "musical bullets"; |
100 |
if (!instance_exists(obj_musicalbullet_controller)) |
101 |
{ |
102 |
if (turns == 0 || turns == 2 || turns == 4) |
103 |
mytarget = 0; |
104 |
dc = instance_create(x, y, obj_musicalbullet_controller); |
105 |
dc.damage = global.monsterat[myself] * 5; |
106 |
dc.target = mytarget; |
107 |
boombox = instance_create(obj_growtangle.x - 115, obj_growtangle.y + 80, obj_musicenemy_boombox); |
108 |
boombox.damage = global.monsterat[myself] * 5; |
109 |
boombox.target = mytarget; |
110 |
boombox = instance_create(obj_growtangle.x + 115, obj_growtangle.y + 80, obj_musicenemy_boombox); |
111 |
boombox.image_xscale = -1; |
112 |
boombox.damage = global.monsterat[myself] * 5; |
113 |
boombox.target = mytarget; |
114 |
dancer = instance_create(obj_growtangle.x - 60, obj_growtangle.y - 100, obj_musicenemy_dancer); |
115 |
dancer.damage = global.monsterat[myself] * 5; |
116 |
dancer.target = mytarget; |
117 |
dancer = instance_create(obj_growtangle.x - 20, obj_growtangle.y - 100, obj_musicenemy_dancer); |
118 |
dancer.damage = global.monsterat[myself] * 5; |
119 |
dancer.target = mytarget; |
120 |
dancer = instance_create(obj_growtangle.x + 20, obj_growtangle.y - 100, obj_musicenemy_dancer); |
121 |
dancer.damage = global.monsterat[myself] * 5; |
122 |
dancer.target = mytarget; |
123 |
} |
124 |
else |
125 |
{ |
126 |
obj_musicalbullet_controller.enemy_count += 1; |
127 |
} |
128 |
} |
129 |
global.turntimer = 235; |
130 |
turns += 1; |
131 |
global.typer = 6; |
132 |
global.fc = 0; |
133 |
rr = choose(0, 1, 2, 3); |
134 |
if (rr == 0) |
135 |
global.battlemsg[0] = stringsetloc(* Sweet shimmies defiantly."* Sweet shimmies defiantly.", "obj_sweet_enemy_slash_Step_0_gml_110_0" ); |
136 |
if (rr == 1) |
137 |
global.battlemsg[0] = stringsetloc(* Cap'n spins his cap around."* Cap'n spins his cap around.", "obj_sweet_enemy_slash_Step_0_gml_111_0" ); |
138 |
if (rr == 2) |
139 |
global.battlemsg[0] = stringsetloc(* K_K is a CD player."* K_K is a CD player.", "obj_sweet_enemy_slash_Step_0_gml_112_0" ); |
140 |
if (rr == 3) |
141 |
global.battlemsg[0] = stringsetloc(* Smells like music."* Smells like music.", "obj_sweet_enemy_slash_Step_0_gml_113_0" ); |
142 |
attacked = 1; |
143 |
} |
144 |
else |
145 |
{ |
146 |
scr_turntimer(120); |
147 |
} |
148 |
} |
149 |
if (global.mnfight == 2 && dancecon < 5) |
150 |
{ |
151 |
if (global.turntimer <= 1 && postattackscene == 0) |
152 |
{ |
153 |
if (!learnedAct && scr_monsterpop() == 3) |
154 |
{ |
155 |
if (letsdance && !stoppeddance && turns == 3 && actCounter < 3) |
156 |
{ |
157 |
stoppeddance = true; |
158 |
postattackscene = 1; |
159 |
with (obj_battlecontroller) |
160 |
noreturn = 1; |
161 |
with (obj_musical_controller) |
162 |
{ |
163 |
event_user(0); |
164 |
theystoppeddancing = 1; |
165 |
} |
166 |
} |
167 |
} |
168 |
if (obj_battlecontroller.noreturn == 0) |
169 |
{ |
170 |
postattackscene = 1; |
171 |
with (obj_battlecontroller) |
172 |
noreturn = 1; |
173 |
with (obj_musical_controller) |
174 |
event_user(0); |
175 |
} |
176 |
} |
177 |
} |
178 |
} |
179 |
if (dancecon == 1) |
180 |
{ |
181 |
learnedAct = true; |
182 |
with (obj_hatguy_enemy) |
183 |
learnedAct = true; |
184 |
with (obj_kk_enemy) |
185 |
learnedAct = true; |
186 |
if (global.hp[1] <= 0) |
187 |
{ |
188 |
scr_speakerscr_speakerfunction scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if ( global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("susie"); |
189 |
msgsetloc(0, Face Z* K... Kris!? Hey, Kris!Wait for input"\\EZ* K... Kris!? Hey, Kris!/", "obj_sweet_enemy_slash_Step_0_gml_184_0" ); |
190 |
msgnextloc(Face K* ...The hell do we do now!?Wait for input"\\EK* ...The hell do we do now!?/", "obj_sweet_enemy_slash_Step_0_gml_185_0" ); |
191 |
msgnextloc(Face C* ...We can't ACT if Kris is down!Wait for input"\\EC* ...We can't ACT if Kris is down!/", "obj_sweet_enemy_slash_Step_0_gml_186_0" ); |
192 |
scr_anyface_next("ralsei", "2"); |
193 |
msgnextloc(Face 2* Don't worry,Delay 11 Susie! I'll just heal them, and...Wait for input"\\E2* Don't worry^1, Susie! I'll just heal them, and.../", "obj_sweet_enemy_slash_Step_0_gml_188_0" ); |
194 |
scr_anyface_next("susie", "L"); |
195 |
msgnextloc(Face L* ... hey, wait.Delay 11 Why can't we ACT without Kris?Wait for input"\\EL* ... hey, wait^1. Why can't we ACT without Kris?/", "obj_sweet_enemy_slash_Step_0_gml_190_0" ); |
196 |
} |
197 |
else |
198 |
{ |
199 |
scr_speakerscr_speakerfunction scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if ( global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("susie"); |
200 |
msgsetloc(0, Face K* Hey, is this really working!?Wait for input"\\EK* Hey, is this really working!?/", "obj_sweet_enemy_slash_Step_0_gml_280_0" ); |
201 |
scr_anyface_next("ralsei", "L"); |
202 |
msgnextloc(Face L* Maybe if Kris... um...Wait for input"\\EL* Maybe if Kris... um.../", "obj_sweet_enemy_slash_Step_0_gml_198_0" ); |
203 |
msgnextloc(Face K* Maybe if we tried ballroom dancing instead?Wait for input"\\EK* Maybe if we tried ballroom dancing instead?/", "obj_sweet_enemy_slash_Step_0_gml_199_0" ); |
204 |
scr_anyface_next("susie", "H"); |
205 |
msgnextloc(Face H* Hey,Delay 11 why the hell do we need Kris to ACT?Wait for input"\\EH* Hey^1, why the hell do we need Kris to ACT?/", "obj_sweet_enemy_slash_Step_0_gml_201_0" ); |
206 |
} |
207 |
scr_anyface_next("ralsei", "Q"); |
208 |
msgnextloc(Face Q* B-because that's um,Delay 11 Kris's unique talent, so...Wait for input"\\EQ* B-because that's um^1, Kris's unique talent, so.../", "obj_sweet_enemy_slash_Step_0_gml_204_0" ); |
209 |
scr_anyface_next("susie", "5"); |
210 |
msgnextloc(Face 5* You think I'm too stupid to dance by myself!?Wait for inputClose Message"\\E5* You think I'm too stupid to dance by myself!?/%", "obj_sweet_enemy_slash_Step_0_gml_206_0" ); |
211 |
scr_battletextscr_battletextfunction scr_battletext()
{
xx = __view_get(e__VW.XView, 0);
yy = __view_get(e__VW.YView, 0);
if (global.fc != 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
if (global.fc == 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
myface = instance_create(xx + 26, yy + 380, obj_face);
with (battlewriter)
{
dialoguer = 1;
facer = 1;
if (global.fc == 0 && originalcharline == 33)
charline = 26;
}
return battlewriter;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (); |
212 |
dancecon = 1.1; |
213 |
} |
214 |
if (dancecon == 1.1 && !instance_exists(obj_writer)) |
215 |
{ |
216 |
susi = scr_act_charspritescr_act_charspritefunction 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); |
217 |
susi.depth = obj_heroralsei.depth + 1; |
218 |
with (obj_afterimage) |
219 |
instance_destroy(); |
220 |
with (obj_oflash) |
221 |
instance_destroy(); |
222 |
global.flag[34 disable_monster_acts] = 0; |
223 |
learnedhowtoact = 1; |
224 |
global.canact[myself][2] = 0; |
225 |
global.actname[myself][2] = ""; |
226 |
global.actcost[myself][2] = 0; |
227 |
global.actactor[myself][2] = 0; |
228 |
global.canact[obj_kk_enemy.myself][2] = 0; |
229 |
global.actname[obj_kk_enemy.myself][2] = ""; |
230 |
global.actcost[obj_kk_enemy.myself][2] = 0; |
231 |
global.actactor[obj_kk_enemy.myself][2] = 0; |
232 |
global.canact[obj_hatguy_enemy.myself][2] = 0; |
233 |
global.actname[obj_hatguy_enemy.myself][2] = ""; |
234 |
global.actcost[obj_hatguy_enemy.myself][2] = 0; |
235 |
global.actactor[obj_hatguy_enemy.myself][2] = 0; |
236 |
scr_spellmenu_setupscr_spellmenu_setupfunction scr_spellmenu_setup()
{
var __actnamecheck = 0;
var __monstertype = global.monstertype[0];
for (__i = 1; __i < 3; __i++)
{
if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype)
__actnamecheck = 1;
}
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 6; __fj++)
{
global.battlespell[__i][__fj] = 0;
if (global.char[__i] == 1)
{
if (global.canact[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcost[0][__fj];
global.battlespellname[__i][__fj] = global.actname[0][__fj];
global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj];
global.battlespelltarget[__i][__fj] = 0;
global.battlespellspecial[__i][__fj] = 1;
}
}
if (global.char[__i] == 2)
{
if (global.canactsus[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj];
global.battlespellname[__i][__fj] = global.actnamesus[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc( S-Action"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0" );
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 2;
}
}
if (global.char[__i] == 3)
{
if (global.canactral[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostral[0][__fj];
global.battlespellname[__i][__fj] = global.actnameral[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc( R-Action"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0" );
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 3;
}
}
if (global.char[__i] == 4)
{
if (global.canactnoe[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj];
global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc( N-Action"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0" );
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 4;
}
}
}
}
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 12; __fj++)
{
__ib = global.battleactcount[__i] + __fj;
global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj];
global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj];
global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj];
global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj];
global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj];
}
}
} (); |
237 |
scr_speakerscr_speakerfunction scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if ( global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("none"); |
238 |
msgsetloc(0, * Susie learned S-Action! She can ACT from her MAGIC menu!Wait for input"* Susie learned \\cSS-Action\\cW! She can ACT from her \\cYMAGIC\\cW menu!/", "obj_sweet_enemy_slash_Step_0_gml_266_0" ); |
239 |
scr_anyface_next("ralsei", "L"); |
240 |
msgnextloc(Face L* S-Susie,Delay 11 I-I don't think you should...Wait for inputClose Message"\\EL* S-Susie^1, I-I don't think you should.../%", "obj_sweet_enemy_slash_Step_0_gml_268_0" ); |
241 |
scr_battletextscr_battletextfunction scr_battletext()
{
xx = __view_get(e__VW.XView, 0);
yy = __view_get(e__VW.YView, 0);
if (global.fc != 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
if (global.fc == 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
myface = instance_create(xx + 26, yy + 380, obj_face);
with (battlewriter)
{
dialoguer = 1;
facer = 1;
if (global.fc == 0 && originalcharline == 33)
charline = 26;
}
return battlewriter;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (); |
242 |
dancecon = 1.15; |
243 |
} |
244 |
if (dancecon == 1.15 && !instance_exists(obj_writer)) |
245 |
{ |
246 |
with (susi) |
247 |
move_towards_point(obj_heroralsei.x + 100, obj_heroralsei.y + 5, 10); |
248 |
if (susi.y >= (obj_heroralsei.y - 3)) |
249 |
{ |
250 |
susi.x = obj_heroralsei.x + 100; |
251 |
susi.y = obj_heroralsei.y + 5; |
252 |
susi.speed = 0; |
253 |
dancecon = 1.2; |
254 |
} |
255 |
} |
256 |
if (dancecon == 1.2 || (dancescenetimer > 0 && dancescenetimer <= 146)) |
257 |
{ |
258 |
dancescenetimer++; |
259 |
if (dancescenetimer == 1) |
260 |
{ |
261 |
scr_act_charsprite_endscr_act_charsprite_endfunction 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;
}
}
} (); |
262 |
susi = scr_act_charspritescr_act_charspritefunction 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.5, 1); |
263 |
susi.depth = obj_heroralsei.depth + 1; |
264 |
with (obj_afterimage) |
265 |
instance_destroy(); |
266 |
with (obj_oflash) |
267 |
instance_destroy(); |
268 |
susi.hspeed = -5; |
269 |
susi.x = obj_heroralsei.x + 100; |
270 |
susi.y = obj_heroralsei.y + 5; |
271 |
} |
272 |
if (dancescenetimer == 10) |
273 |
{ |
274 |
susi.hspeed = 10; |
275 |
dancescenetimer2 = 1; |
276 |
rals = scr_act_charspritescr_act_charspritefunction scr_act_charsprite(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("ralsei", spr_ralsei_hurt_fixed, 0.16, 1); |
277 |
with (obj_afterimage) |
278 |
instance_destroy(); |
279 |
with (obj_oflash) |
280 |
instance_destroy(); |
281 |
} |
282 |
if (dancescenetimer == 15) |
283 |
susi.hspeed = -5; |
284 |
if (dancescenetimer == 25) |
285 |
{ |
286 |
susi.hspeed = 10; |
287 |
dancescenetimer2 = 1; |
288 |
scr_speakerscr_speakerfunction scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if ( global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("susie"); |
289 |
msgsetloc(0, Face H* Happy feet dumbass!Wait for inputClose Message"\\EH* Happy feet dumbass!/%", "obj_sweet_enemy_slash_Step_0_gml_307_0" ); |
290 |
scr_battletextscr_battletextfunction scr_battletext()
{
xx = __view_get(e__VW.XView, 0);
yy = __view_get(e__VW.YView, 0);
if (global.fc != 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
if (global.fc == 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
myface = instance_create(xx + 26, yy + 380, obj_face);
with (battlewriter)
{
dialoguer = 1;
facer = 1;
if (global.fc == 0 && originalcharline == 33)
charline = 26;
}
return battlewriter;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (); |
291 |
} |
292 |
if (dancescenetimer == 30) |
293 |
susi.hspeed = -5; |
294 |
if (dancescenetimer == 40) |
295 |
{ |
296 |
susi.hspeed = 10; |
297 |
dancescenetimer2 = 1; |
298 |
dancescenetimer = 25; |
299 |
} |
300 |
if (dancescenetimer2 > 0) |
301 |
{ |
302 |
dancescenetimer2++; |
303 |
if (dancescenetimer2 > 1 && dancescenetimer2 <= 6) |
304 |
{ |
305 |
rals.x = obj_heroralsei.x + random_range((6 - dancescenetimer2) * -1, 6 - dancescenetimer2); |
306 |
rals.y = obj_heroralsei.y + random_range((6 - dancescenetimer2) * -1, 6 - dancescenetimer2); |
307 |
} |
308 |
if (dancescenetimer2 == 7) |
309 |
{ |
310 |
rals.x = obj_heroralsei.x; |
311 |
rals.y = obj_heroralsei.y; |
312 |
} |
313 |
if (dancescenetimer2 > 6 && dancescenetimer2 < 12) |
314 |
{ |
315 |
} |
316 |
if (dancescenetimer2 == 12) |
317 |
dancescenetimer2 = 0; |
318 |
} |
319 |
if (dancescenetimer >= 36 && !instance_exists(obj_writer)) |
320 |
{ |
321 |
dancescenetimer = 0; |
322 |
susi.hspeed = 0; |
323 |
rals.image_xscale = 2; |
324 |
rals.image_yscale = 2; |
325 |
dancecon = 2.3; |
326 |
} |
327 |
} |
328 |
if (dancecon == 2.3 && !instance_exists(obj_writer)) |
329 |
{ |
330 |
scr_act_charsprite_endscr_act_charsprite_endfunction 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;
}
}
} (); |
331 |
susi = scr_act_charspritescr_act_charspritefunction 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.5, 1); |
332 |
susi.x = obj_heroralsei.x + 80; |
333 |
susi.y = obj_heroralsei.y + 5; |
334 |
scr_act_charspritescr_act_charspritefunction scr_act_charsprite(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("ralsei", spr_ralsei_hurt_fixed, 0.16, 1); |
335 |
with (obj_afterimage) |
336 |
instance_destroy(); |
337 |
with (obj_oflash) |
338 |
instance_destroy(); |
339 |
dancecon = 2.4; |
340 |
} |
341 |
if (dancecon == 2.4 && !instance_exists(obj_writer)) |
342 |
{ |
343 |
scr_act_charsprite_endscr_act_charsprite_endfunction 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;
}
}
} (); |
344 |
scr_speakerscr_speakerfunction scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if ( global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("none"); |
345 |
susi = scr_act_charspritescr_act_charspritefunction 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); |
346 |
susi.x = obj_heroralsei.x + 100; |
347 |
susi.y = obj_heroralsei.y + 5; |
348 |
scr_act_charspritescr_act_charspritefunction 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); |
349 |
msgsetloc(0, * (Susie made Ralsei learn R-Action even though he didn't want to!)Wait for input"* (Susie made Ralsei learn \\cVR-Action\\cW even though he didn't want to!)/", "obj_sweet_enemy_slash_Step_0_gml_354_0" ); |
350 |
scr_anyface_next("ralsei", "U"); |
351 |
msgnextloc(Face U* (I... I'm sorry,Delay 11 Kris!!!)Wait for inputClose Message"\\EU* (I... I'm sorry^1, Kris!!!)/%", "obj_sweet_enemy_slash_Step_0_gml_356_0" ); |
352 |
scr_battletextscr_battletextfunction scr_battletext()
{
xx = __view_get(e__VW.XView, 0);
yy = __view_get(e__VW.YView, 0);
if (global.fc != 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
if (global.fc == 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
myface = instance_create(xx + 26, yy + 380, obj_face);
with (battlewriter)
{
dialoguer = 1;
facer = 1;
if (global.fc == 0 && originalcharline == 33)
charline = 26;
}
return battlewriter;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (); |
353 |
with (obj_musical_controller) |
354 |
happyfeetscene = 1; |
355 |
if (danceCounter > 1) |
356 |
danceCounter = 1; |
357 |
if (obj_hatguy_enemy.danceCounter > 1) |
358 |
obj_hatguy_enemy.danceCounter = 1; |
359 |
if (obj_kk_enemy.danceCounter > 1) |
360 |
obj_kk_enemy.danceCounter = 1; |
361 |
happyfeetscenejusthappened = 1; |
362 |
with (obj_afterimage) |
363 |
instance_destroy(); |
364 |
with (obj_oflash) |
365 |
instance_destroy(); |
366 |
global.flag[34 disable_monster_acts] = 0; |
367 |
dancecon = 2.5; |
368 |
} |
369 |
if (dancecon == 2.5 && !instance_exists(obj_writer)) |
370 |
{ |
371 |
with (susi) |
372 |
{ |
373 |
move_towards_point(obj_herosusie.x, obj_herosusie.y, 10); |
374 |
depth = obj_heroralsei.depth + 1; |
375 |
} |
376 |
if (susi.y <= (obj_herosusie.y + 8)) |
377 |
{ |
378 |
susi.x = obj_herosusie.x; |
379 |
susi.y = obj_herosusie.y; |
380 |
susi.speed = 0; |
381 |
dancecon = 4; |
382 |
} |
383 |
} |
384 |
if (dancecon == 4 && !instance_exists(obj_writer)) |
385 |
{ |
386 |
scr_act_charsprite_endscr_act_charsprite_endfunction 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;
}
}
} (); |
387 |
dancecon = 0; |
388 |
with (obj_musical_controller) |
389 |
event_user(0); |
390 |
scr_speakerscr_speakerfunction scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if ( global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("none"); |
391 |
} |
392 |
if (global.myfight == 3) |
393 |
{ |
394 |
xx = __view_get(e__VW.XView, 0); |
395 |
yy = __view_get(e__VW.YView, 0); |
396 |
if (acting == 1 && actcon == 0) |
397 |
{ |
398 |
actcon = 1; |
399 |
msgsetloc(0, * SWEET - The energetic one. Looks up to K_K.Wait for inputClose Message"* SWEET - The energetic one. Looks up to K_K./%", "obj_sweet_enemy_slash_Step_0_gml_403_0" ); |
400 |
scr_battletext_default(); |
401 |
} |
402 |
if (acting == 2 && actcon == 0) |
403 |
{ |
404 |
actCounter++; |
405 |
danceCounter = 1; |
406 |
scr_act_charspritescr_act_charspritefunction 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); |
407 |
if (simultotal == 1 || (global.lang == "ja" && simultotal_funny == 1)) |
408 |
{ |
409 |
msgsetloc(0, * You danced!Wait for input"* You danced!/", "obj_sweet_enemy_slash_Step_0_gml_422_0" ); |
410 |
msgnextloc(* Sweet got lost in the groove!Wait for inputClose Message"* Sweet got lost in the groove!/%", "obj_sweet_enemy_slash_Step_0_gml_423_0" ); |
411 |
scr_battletext_default(); |
412 |
actcon = 4; |
413 |
alarm[4] = 10; |
414 |
} |
415 |
else |
416 |
{ |
417 |
dancing = true; |
418 |
if (groove == 0) |
419 |
{ |
420 |
if (global.lang == "ja") |
421 |
{ |
422 |
msgsetloc(0, * You danced with Sweet!Wait for input"* You danced with Sweet!/", "obj_sweet_enemy_slash_Step_0_gml_435_0" ); |
423 |
msgnextloc(* Sweet got lost in the groove!Wait for inputClose Message"* Sweet got lost in the groove!/%", "obj_sweet_enemy_slash_Step_0_gml_436_0" ); |
424 |
} |
425 |
else |
426 |
{ |
427 |
msgsetloc(0, * You danced with Sweet!Wait for inputClose Message"* You danced with Sweet!/%", "obj_sweet_enemy_slash_Step_0_gml_534_0" ); |
428 |
} |
429 |
groove = 1; |
430 |
} |
431 |
else |
432 |
{ |
433 |
msgsetloc(0, * You danced with Sweet!Wait for inputClose Message"* You danced with Sweet!/%", "obj_sweet_enemy_slash_Step_0_gml_441_0" ); |
434 |
} |
435 |
if (global.lang == "ja") |
436 |
{ |
437 |
scr_battletext_default(); |
438 |
actcon = 20; |
439 |
} |
440 |
else |
441 |
{ |
442 |
scr_simultextscr_simultextfunction 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"); |
443 |
if (simulorderkri == 0) |
444 |
actcon = 20; |
445 |
else |
446 |
actcon = 0; |
447 |
} |
448 |
} |
449 |
} |
450 |
if (acting == 3 && actcon == 0) |
451 |
{ |
452 |
actCounter++; |
453 |
danceCounter = 2; |
454 |
scr_act_charspritescr_act_charspritefunction 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); |
455 |
scr_act_charspritescr_act_charspritefunction 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); |
456 |
scr_act_charspritescr_act_charspritefunction 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); |
457 |
msgsetloc(0, * Everyone danced with Sweet! They're totally lost in the groove!Wait for inputClose Message"* Everyone danced with Sweet! They're totally lost in the groove!/%", "obj_sweet_enemy_slash_Step_0_gml_470_0" ); |
458 |
scr_battletext_default(); |
459 |
actcon = 4; |
460 |
alarm[4] = 10; |
461 |
} |
462 |
if (actcon == 5) |
463 |
{ |
464 |
dancing = true; |
465 |
actcon = 1; |
466 |
} |
467 |
if (actingsus == 1 && actconsus == 1) |
468 |
{ |
469 |
dancing = true; |
470 |
danceCounter = 1; |
471 |
scr_act_charspritescr_act_charspritefunction 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); |
472 |
if (groove == 0) |
473 |
{ |
474 |
if (global.lang == "ja") |
475 |
{ |
476 |
msgsetloc(0, * Susie danced with Sweet!Wait for input"* Susie danced with Sweet!/", "obj_sweet_enemy_slash_Step_0_gml_495_0" ); |
477 |
msgnextloc(* Sweet got lost in the groove!Wait for inputClose Message"* Sweet got lost in the groove!/%", "obj_sweet_enemy_slash_Step_0_gml_496_0" ); |
478 |
} |
479 |
else |
480 |
{ |
481 |
msgsetloc(0, * Susie danced with Sweet!Wait for inputClose Message"* Susie danced with Sweet!/%", "obj_sweet_enemy_slash_Step_0_gml_501_0" ); |
482 |
} |
483 |
groove = 1; |
484 |
} |
485 |
else |
486 |
{ |
487 |
msgsetloc(0, * Susie danced with Sweet!Wait for inputClose Message"* Susie danced with Sweet!/%", "obj_sweet_enemy_slash_Step_0_gml_501_0" ); |
488 |
} |
489 |
if (global.lang == "ja") |
490 |
{ |
491 |
scr_battletext_default(); |
492 |
actconsus = 20; |
493 |
} |
494 |
else |
495 |
{ |
496 |
scr_simultextscr_simultextfunction 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"); |
497 |
if (simulordersus == 0) |
498 |
actconsus = 20; |
499 |
else |
500 |
actconsus = 0; |
501 |
} |
502 |
} |
503 |
if (actingral == 1 && actconral == 1) |
504 |
{ |
505 |
dancing = true; |
506 |
danceCounter = 1; |
507 |
scr_act_charspritescr_act_charspritefunction 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); |
508 |
if (groove == 0) |
509 |
{ |
510 |
if (global.lang == "ja") |
511 |
{ |
512 |
msgsetloc(0, * Ralsei danced with Sweet!Wait for input"* Ralsei danced with Sweet!/", "obj_sweet_enemy_slash_Step_0_gml_532_0" ); |
513 |
msgnextloc(* Sweet got lost in the groove!Wait for inputClose Message"* Sweet got lost in the groove!/%", "obj_sweet_enemy_slash_Step_0_gml_533_0" ); |
514 |
} |
515 |
else |
516 |
{ |
517 |
msgsetloc(0, * Ralsei danced with Sweet!Wait for inputClose Message"* Ralsei danced with Sweet!/%", "obj_sweet_enemy_slash_Step_0_gml_538_0" ); |
518 |
} |
519 |
groove = 1; |
520 |
} |
521 |
else |
522 |
{ |
523 |
msgsetloc(0, * Ralsei danced with Sweet!Wait for inputClose Message"* Ralsei danced with Sweet!/%", "obj_sweet_enemy_slash_Step_0_gml_538_0" ); |
524 |
} |
525 |
if (global.lang == "ja") |
526 |
{ |
527 |
scr_battletext_default(); |
528 |
actconral = 20; |
529 |
} |
530 |
else |
531 |
{ |
532 |
scr_simultextscr_simultextfunction 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"); |
533 |
if (simulorderral == 0) |
534 |
actconral = 20; |
535 |
else |
536 |
actconral = 0; |
537 |
} |
538 |
} |
539 |
if (actcon == 1 && !instance_exists(obj_writer)) |
540 |
{ |
541 |
if (obj_sweet_enemy.dancing == true && obj_kk_enemy.dancing == true && obj_hatguy_enemy.dancing == true && endcon == 0) |
542 |
{ |
543 |
endcon = 1; |
544 |
} |
545 |
else if (endcon == 0) |
546 |
{ |
547 |
with (obj_marker) |
548 |
{ |
549 |
if (sprite_index == spr_kris_dance || sprite_index == spr_susie_dance || sprite_index == spr_ralsei_dance) |
550 |
{ |
551 |
instance_destroy(); |
552 |
with (obj_heroparent) |
553 |
{ |
554 |
if (image_alpha == 0) |
555 |
{ |
556 |
image_alpha = 1; |
557 |
acttimer = 0; |
558 |
state = 0; |
559 |
global.faceaction[myself] = 0; |
560 |
} |
561 |
} |
562 |
} |
563 |
} |
564 |
scr_nextactscr_nextactfunction 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();
}
} (); |
565 |
} |
566 |
} |
567 |
if (actcon == 20 || actconsus == 20 || actconral == 20) |
568 |
{ |
569 |
if (scr_terminate_writerscr_terminate_writerfunction 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;
} ()) |
570 |
{ |
571 |
if (obj_sweet_enemy.dancing == true && obj_kk_enemy.dancing == true && obj_hatguy_enemy.dancing == true && endcon == 0) |
572 |
{ |
573 |
endcon = 1; |
574 |
} |
575 |
else if (endcon == 0) |
576 |
{ |
577 |
with (obj_marker) |
578 |
{ |
579 |
if (sprite_index == spr_kris_dance || sprite_index == spr_susie_dance || sprite_index == spr_ralsei_dance) |
580 |
{ |
581 |
instance_destroy(); |
582 |
with (obj_heroparent) |
583 |
{ |
584 |
if (image_alpha == 0) |
585 |
{ |
586 |
image_alpha = 1; |
587 |
acttimer = 0; |
588 |
state = 0; |
589 |
global.faceaction[myself] = 0; |
590 |
} |
591 |
} |
592 |
} |
593 |
} |
594 |
actconsus = -1; |
595 |
actconral = -1; |
596 |
actcon = 1; |
597 |
} |
598 |
} |
599 |
} |
600 |
} |
601 |
if (endcon == 1) |
602 |
{ |
603 |
endcon = 1.5; |
604 |
var a = " "; |
605 |
var b = stringsetloc(* Everyone is dancing!"* Everyone is dancing!", "obj_sweet_enemy_slash_Step_0_gml_699_0" ); |
606 |
msgset(0, b + a); |
607 |
scr_battletext_default(); |
608 |
with (obj_writer) |
609 |
{ |
610 |
rate = 3; |
611 |
skippable = 0; |
612 |
} |
613 |
snd_volume(cyber_battle_backing, 0, 15); |
614 |
snd_volume(cyber_battle_backing_solo, 0, 15); |
615 |
} |
616 |
if (endcon == 1.5) |
617 |
{ |
618 |
endtimer++; |
619 |
if (endtimer > 150) |
620 |
endcon = 2; |
621 |
} |
622 |
if (endcon == 2) |
623 |
{ |
624 |
with (obj_writer) |
625 |
instance_destroy(); |
626 |
instance_create(x, y, obj_musical_battle_end); |
627 |
endcon = 3; |
628 |
} |
629 |
if (endcon == 4) |
630 |
{ |
631 |
endcon = 5; |
632 |
with (obj_kk_enemy) |
633 |
scr_act_charsprite_endscr_act_charsprite_endfunction 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;
}
}
} (); |
634 |
with (obj_hatguy_enemy) |
635 |
scr_act_charsprite_endscr_act_charsprite_endfunction 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;
}
}
} (); |
636 |
scr_act_charsprite_endscr_act_charsprite_endfunction 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;
}
}
} (); |
637 |
obj_battlecontroller.skipvictory = 1; |
638 |
scr_wincombatscr_wincombatfunction scr_wincombat()
{
if ( global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1)
{
global.myfight = 7;
global.mnfight = -1;
with (obj_battlecontroller)
victory = 1;
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
}
else
{
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0;
for (__j = 0; __j < 3; __j++)
{
if (global.monstertype[__j] != 0 (None))
{
_newmonster = scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800;
global.monsterinstance[_newmonster].y = global.monstermakey[__j];
with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
}
}
global.myfight = 5;
myfightreturntimer = 15;
global.mnfight = -1;
}
} (); |
639 |
} |
640 |
if (scr_debug()) |
641 |
{ |
642 |
if (keyboard_check_pressed(ord("M"))) |
643 |
{ |
644 |
if (songplaying) |
645 |
{ |
646 |
songtime = audio_sound_get_track_position(global.batmusic[1]); |
647 |
audio_pause_sound(global.batmusic[1]); |
648 |
songplaying = 0; |
649 |
} |
650 |
} |
651 |
} |
652 |
|
653 |
enum e__VW |
654 |
{ |
655 |
XView, |
656 |
YView, |
657 |
WView, |
658 |
HView, |
659 |
Angle, |
660 |
HBorder, |
661 |
VBorder, |
662 |
HSpeed, |
663 |
VSpeed, |
664 |
Object, |
665 |
Visible, |
666 |
XPort, |
667 |
YPort, |
668 |
WPort, |
669 |
HPort, |
670 |
Camera, |
671 |
SurfaceID |
672 |
} |