|
1
|
with (obj_writer)
|
|
2
|
instance_destroy();
|
|
3
|
if (theystoppeddancing == 1)
|
|
4
|
{
|
|
5
|
alarm[0] = -1; gml_Object_obj_musical_controller_Alarm_0.gml
with (obj_writer)
instance_destroy();
if (theystoppeddancing == 1)
{
alarm[0] = -1;
global.typer = 6;
theystoppeddancing = 2;
scr_speaker("susie");
msgsetloc(0, * They stopped dancing!Wait for input"* They stopped dancing!/", "obj_musical_controller_slash_Alarm_0_gml_11_0" );
msgnextloc(* We need to do it again!Wait for inputClose Message"* We need to do it again!/%", "obj_musical_controller_slash_Alarm_0_gml_12_0" );
c_facenext("none", 0);
scr_battletext();
exit;
}
if ((global.hp[1] <= 0 && happyfeetscene == 0) || (obj_sweet_enemy.actCounter > 3 && happyfeetscene == 0))
{
with (obj_battlecontroller)
noreturn = 1;
obj_sweet_enemy.dancecon = 1;
obj_sweet_enemy.postattackscene = 1;
if (global.hp[2] < 1)
{
star = 1;
scr_healitemspell(abs(global.hp[2]) + 1);
}
if (global.hp[3] < 1)
{
star = 2;
scr_healitemspell(abs(global.hp[3]) + 1);
}
exit;
}
skiptext = 0;
with (obj_battlecontroller)
noreturn = 0;
with (obj_battlecontroller)
{
if (obj_musical_controller.ralseiportrait == 1)
scr_speaker("ralsei");
alarm[2] = 2;
}
|
|
6
|
global.typer = 6;
|
|
7
|
theystoppeddancing = 2;
|
|
8
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("susie");
|
|
9
|
msgsetloc(0, * They stopped dancing!Wait for input"* They stopped dancing!/", "obj_musical_controller_slash_Alarm_0_gml_11_0" );
|
|
10
|
msgnextloc(* We need to do it again!Wait for inputClose Message"* We need to do it again!/%", "obj_musical_controller_slash_Alarm_0_gml_12_0" );
|
|
11
|
c_facenextc_facenext
function c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
} ("none", 0);
|
|
12
|
scr_battletextscr_battletext
function scr_battletext()
{
xx = __view_get(e__VW.XView, 0);
yy = __view_get(e__VW.YView, 0);
if (global.fc != 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
if (global.fc == 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
myface = instance_create(xx + 26, yy + 380, obj_face);
with (battlewriter)
{
dialoguer = 1;
facer = 1;
if (global.fc == 0 && originalcharline == 33)
charline = 26;
}
return battlewriter;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ();
|
|
13
|
exit;
|
|
14
|
}
|
|
15
|
if ((global.hp[1] <= 0 && happyfeetscene == 0) || (obj_sweet_enemy.actCounter > 3 && happyfeetscene == 0))
|
|
16
|
{
|
|
17
|
with (obj_battlecontroller)
|
|
18
|
noreturn = 1;
|
|
19
|
obj_sweet_enemy.dancecon = 1;
|
|
20
|
obj_sweet_enemy.postattackscene = 1;
|
|
21
|
if (global.hp[2] < 1)
|
|
22
|
{
|
|
23
|
star = 1;
|
|
24
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (abs(global.hp[2]) + 1);
|
|
25
|
}
|
|
26
|
if (global.hp[3] < 1)
|
|
27
|
{
|
|
28
|
star = 2;
|
|
29
|
scr_healitemspellscr_healitemspell
function scr_healitemspell(arg0)
{
scr_heal(star, arg0);
global.spelldelay = 15;
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
if (global.chapter == 2 && instance_exists(o_boxingcontroller))
ha.target = o_boxingcontroller.id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
return ha;
}
} (abs(global.hp[3]) + 1);
|
|
30
|
}
|
|
31
|
exit;
|
|
32
|
}
|
|
33
|
skiptext = 0;
|
|
34
|
with (obj_battlecontroller)
|
|
35
|
noreturn = 0;
|
|
36
|
with (obj_battlecontroller)
|
|
37
|
{
|
|
38
|
if (obj_musical_controller.ralseiportrait == 1)
|
|
39
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("ralsei");
|
|
40
|
alarm[2] = 2; gml_Object_obj_musical_controller_Alarm_2.gml
with (obj_writer)
instance_destroy();
if (obj_sweet_enemy.hurtstate2 == 1)
{
if (obj_kk_enemy.hurtstate2 == 1 || obj_hatguy_enemy.hurtstate2 == 1)
msgsetloc(0, * (Sweet snapped out of the dance!)Wait for input"* (Sweet snapped out of the dance!)/", "obj_musical_controller_slash_Alarm_2_gml_8_0" );
else
msgsetloc(0, * (Sweet snapped out of the dance!)Wait for inputClose Message"* (Sweet snapped out of the dance!)/%", "obj_musical_controller_slash_Alarm_2_gml_12_0" );
obj_sweet_enemy.stoppeddancingcounter++;
}
if (obj_kk_enemy.hurtstate2 == 1)
{
if (obj_hatguy_enemy.hurtstate2 == 1)
msgsetloc(0, * (K_K snapped out of the dance!)Wait for input"* (K_K snapped out of the dance!)/", "obj_musical_controller_slash_Alarm_2_gml_20_0" );
else
msgsetloc(0, * (K_K snapped out of the dance!)Wait for inputClose Message"* (K_K snapped out of the dance!)/%", "obj_musical_controller_slash_Alarm_2_gml_24_0" );
obj_sweet_enemy.stoppeddancingcounter++;
}
if (obj_hatguy_enemy.hurtstate2 == 1)
{
msgsetloc(0, * (Cap'n snapped out of the dance!)Wait for inputClose Message"* (Cap'n snapped out of the dance!)/%", "obj_musical_controller_slash_Alarm_2_gml_30_0" );
obj_sweet_enemy.stoppeddancingcounter++;
}
scr_battletext_default();
d = 1;
|
|
41
|
}
|