|
1
|
if (global.monster[myself] == 1)
|
|
2
|
{
|
|
3
|
if (scr_isphasescr_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)
|
|
4
|
{
|
|
5
|
scr_randomtargetscr_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;
}
} ();
|
|
6
|
if (!instance_exists(obj_darkener))
|
|
7
|
instance_create(0, 0, obj_darkener);
|
|
8
|
if (!virokun_battle_init)
|
|
9
|
{
|
|
10
|
virokun_battle_init = true;
|
|
11
|
virokun_battle = i_ex(obj_virovirokun_enemy);
|
|
12
|
}
|
|
13
|
global.typer = 50;
|
|
14
|
rr = choose(0, 1, 2, 3);
|
|
15
|
if (rr == 0)
|
|
16
|
msgsetloc(0, You'll need TWO apples to stop ME!"You'll need TWO&apples to stop ME!", "obj_omawaroid_enemy_slash_Step_0_gml_23_0" );
|
|
17
|
if (rr == 1)
|
|
18
|
msgsetloc(0, Wee-woo-wee-woo!"Wee-woo-wee-woo!", "obj_omawaroid_enemy_slash_Step_0_gml_24_0" );
|
|
19
|
if (rr == 2)
|
|
20
|
msgsetloc(0, Did you take your bullets today?"Did you take your&bullets today?", "obj_omawaroid_enemy_slash_Step_0_gml_25_0" );
|
|
21
|
if (rr == 3)
|
|
22
|
msgsetloc(0, Where there's a wee, there's a woo."Where there's a wee,&there's a woo.", "obj_omawaroid_enemy_slash_Step_0_gml_26_0" );
|
|
23
|
if (virokun_battle)
|
|
24
|
{
|
|
25
|
if (turns == 0)
|
|
26
|
msgsetloc(0, Hey! Virus! You've gotta pay!"Hey! Virus!&You've gotta pay!", "obj_omawaroid_enemy_slash_Step_0_gml_32_0" );
|
|
27
|
if (!i_ex(obj_virovirokun_enemy))
|
|
28
|
{
|
|
29
|
rr = choose(0, 1);
|
|
30
|
if (rr == 0)
|
|
31
|
msgsetloc(0, You showed that virus, wee-woo!"You showed that virus,& wee-woo!", "obj_omawaroid_enemy_slash_Step_0_gml_38_0" );
|
|
32
|
if (rr == 1)
|
|
33
|
msgsetloc(0, Have some free bullets!"Have some&free bullets!", "obj_omawaroid_enemy_slash_Step_0_gml_39_0" );
|
|
34
|
}
|
|
35
|
}
|
|
36
|
if (global.mercymod[myself] >= global.mercymax[myself])
|
|
37
|
msgsetloc(0, All in a day's work, wee-woo."All in a day's&work, wee-woo.", "obj_omawaroid_enemy_slash_Step_0_gml_45_0" );
|
|
38
|
if (nact_count == 1 && !nact_balloon)
|
|
39
|
{
|
|
40
|
nact_balloon = true;
|
|
41
|
msgsetloc(0, This girl is so sweet... Let's give her free bullets!"This girl is so sweet...&Let's give her free bullets!", "obj_omawaroid_enemy_slash_Step_0_gml_51_0" );
|
|
42
|
}
|
|
43
|
if (ultimatehealprompt == 1)
|
|
44
|
{
|
|
45
|
msgsetloc(0, (That's the worst healing I've seen)"(That's the worst&healing I've seen)", "obj_omawaroid_enemy_slash_Step_0_gml_56_0" );
|
|
46
|
if (myself == 1)
|
|
47
|
msgsetloc(0, (Is she charging for that?)"(Is she charging&for that?)", "obj_omawaroid_enemy_slash_Step_0_gml_59_0" );
|
|
48
|
ultimatehealprompt = 0;
|
|
49
|
}
|
|
50
|
scr_enemyblconscr_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);
|
|
51
|
talked = 1;
|
|
52
|
talktimer = 0;
|
|
53
|
}
|
|
54
|
if (talked == 1 && scr_isphasescr_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"))
|
|
55
|
{
|
|
56
|
rtimer = 0;
|
|
57
|
scr_blconskipscr_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);
|
|
58
|
if (scr_isphasescr_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"))
|
|
59
|
{
|
|
60
|
if (!instance_exists(obj_moveheart))
|
|
61
|
scr_moveheartscr_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);
} ();
|
|
62
|
if (!instance_exists(obj_growtangle))
|
|
63
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
64
|
}
|
|
65
|
}
|
|
66
|
if (scr_isphasescr_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)
|
|
67
|
{
|
|
68
|
rtimer += 1;
|
|
69
|
if (rtimer == 16)
|
|
70
|
{
|
|
71
|
rr = choose(0, 1);
|
|
72
|
if (rr == 0 && chasecheck == 0)
|
|
73
|
{
|
|
74
|
global.monsterattackname[myself] = "Vaccine";
|
|
75
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
76
|
dc.type = 15;
|
|
77
|
}
|
|
78
|
else
|
|
79
|
{
|
|
80
|
global.monsterattackname[myself] = "CarChase";
|
|
81
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
82
|
dc.type = 16;
|
|
83
|
if (chasecheck != 0)
|
|
84
|
dc.special = chasecheck;
|
|
85
|
chasecheck = 0;
|
|
86
|
}
|
|
87
|
chasecheck = 0;
|
|
88
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (140);
|
|
89
|
turns += 1;
|
|
90
|
global.typer = 6;
|
|
91
|
global.fc = 0;
|
|
92
|
rr = choose(0, 1, 2, 3, 4);
|
|
93
|
if (rr == 0)
|
|
94
|
global.battlemsg[0] = stringsetloc(* Ambyu-Lance is sucking up coffee out of a tall glass."* Ambyu-Lance is sucking up coffee out of a tall glass.", "obj_omawaroid_enemy_slash_Step_0_gml_103_0" );
|
|
95
|
if (rr == 1)
|
|
96
|
global.battlemsg[0] = stringsetloc(* Ambyu-Lance puts a clown nose on to make you comfortable."* Ambyu-Lance puts a clown nose on to make you comfortable.", "obj_omawaroid_enemy_slash_Step_0_gml_104_0" );
|
|
97
|
if (rr == 2)
|
|
98
|
global.battlemsg[0] = stringsetloc(* Ambyu-Lance is comparing the battle to a dentist visit."* Ambyu-Lance is comparing the battle to a dentist visit.", "obj_omawaroid_enemy_slash_Step_0_gml_105_0" );
|
|
99
|
if (rr == 3)
|
|
100
|
global.battlemsg[0] = stringsetloc(* Ambyu-Lance is making siren noises with its mouth."* Ambyu-Lance is making siren noises with its mouth.", "obj_omawaroid_enemy_slash_Step_0_gml_106_0" );
|
|
101
|
if (rr == 4)
|
|
102
|
global.battlemsg[0] = stringsetloc(* Smells like isopropyl."* Smells like isopropyl.", "obj_omawaroid_enemy_slash_Step_0_gml_107_0" );
|
|
103
|
attacked = 1;
|
|
104
|
}
|
|
105
|
else
|
|
106
|
{
|
|
107
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (120);
|
|
108
|
}
|
|
109
|
}
|
|
110
|
}
|
|
111
|
if (global.myfight == 3)
|
|
112
|
{
|
|
113
|
xx = __view_get(e__VW.XView, 0);
|
|
114
|
yy = __view_get(e__VW.YView, 0);
|
|
115
|
if (acting == 1 && actcon == 0)
|
|
116
|
{
|
|
117
|
actcon = 1;
|
|
118
|
msgsetloc(0, * AMBYU-LANCE - If it doesn't find an accident, it'll make one!Wait for inputClose Message"* AMBYU-LANCE - If it doesn't find an accident, it'll make one!/%", "obj_omawaroid_enemy_slash_Step_0_gml_130_0" );
|
|
119
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
120
|
}
|
|
121
|
if (acting == 2 && actcon == 0)
|
|
122
|
{
|
|
123
|
if (!scr_havecharscr_havechar
function scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (4))
|
|
124
|
{
|
|
125
|
actcon = 1;
|
|
126
|
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");
|
|
127
|
msgsetloc(0, Face 5* Ambulance? Hell no. Like doctors even GET me!Wait for input"\\E5* Ambulance? Hell no. Like doctors even GET me!/", "obj_omawaroid_enemy_slash_Step_0_gml_147_0" );
|
|
128
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("no_name", 0);
|
|
129
|
msgnextloc(* (Susie told you to avoid getting hit by the ambulances!)Wait for inputClose Message"* (Susie told you to \\cYavoid getting hit\\cW by the ambulances!)/%", "obj_omawaroid_enemy_slash_Step_0_gml_149_0" );
|
|
130
|
chasecheck = 1;
|
|
131
|
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
} ();
|
|
132
|
}
|
|
133
|
else
|
|
134
|
{
|
|
135
|
nact_count++;
|
|
136
|
with (obj_omawaroid_enemy)
|
|
137
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_playsound = 0;
}
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 100);
|
|
138
|
if (scr_sideb_get_phasescr_sideb_get_phase
function scr_sideb_get_phase()
{
var phase = 0;
if (global.flag[916 snowgrave_fail] == 0)
{
if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4)
phase = 1;
if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7)
phase = 2;
if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20)
phase = 3;
if (global.flag[915 snowgrave_plot] >= 20)
phase = 4;
}
return phase;
} () >= 2)
|
|
139
|
{
|
|
140
|
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)
... ("no_name");
|
|
141
|
msgsetloc(0, * Noelle mutters to herself about saws and needles.Wait for inputClose Message"* Noelle mutters to herself about saws and needles./%", "obj_omawaroid_enemy_slash_Step_0_gml_179_0" );
|
|
142
|
}
|
|
143
|
else if (nact_count == 1)
|
|
144
|
{
|
|
145
|
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)
... ("no_name");
|
|
146
|
msgsetloc(0, * Noelle acted warmly towards Ambyu-Lance!Wait for input"* Noelle acted warmly towards Ambyu-Lance!/", "obj_omawaroid_enemy_slash_Step_0_gml_169_0" );
|
|
147
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("noelle", "2");
|
|
148
|
msgnextloc(Face 2* Needles aren't scary...Delay 11 medicine's important,Delay 11 you know?Wait for inputClose Message"\\E2* Needles aren't scary..^1. medicine's important^1, you know?/%", "obj_omawaroid_enemy_slash_Step_0_gml_171_0" );
|
|
149
|
}
|
|
150
|
else
|
|
151
|
{
|
|
152
|
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)
... ("no_name");
|
|
153
|
msgsetloc(0, * Noelle muttered absentmindedly about hospital tools!Wait for inputClose Message"* Noelle muttered absentmindedly about hospital tools!/%", "obj_omawaroid_enemy_slash_Step_0_gml_183_0_b" );
|
|
154
|
}
|
|
155
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
156
|
actcon = 5;
|
|
157
|
alarm[4] = 15; gml_Object_obj_omawaroid_enemy_Alarm_4.gml
actcon += 1;
|
|
158
|
}
|
|
159
|
}
|
|
160
|
else if (acting == 3 && actcon == 0)
|
|
161
|
{
|
|
162
|
actcon = 1;
|
|
163
|
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");
|
|
164
|
msgsetloc(0, Face H* We'll use your service,Delay 11 friends!Wait for input"\\EH* We'll use your service^1, friends!/", "obj_omawaroid_enemy_slash_Step_0_gml_199_0" );
|
|
165
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("no_name", 0);
|
|
166
|
msgnextloc(* (Ralsei encouraged you to get hit by the ambulances!)Wait for inputClose Message"* (Ralsei encouraged you to \\cYget hit\\cW by the ambulances!)/%", "obj_omawaroid_enemy_slash_Step_0_gml_201_0" );
|
|
167
|
chasecheck = -1;
|
|
168
|
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
} ();
|
|
169
|
}
|
|
170
|
if (actcon == 6 && !d_ex())
|
|
171
|
actcon = 1;
|
|
172
|
if (actingsus == 1 && actconsus == 1)
|
|
173
|
{
|
|
174
|
var simultext = (simultotal == 1) ? stringsetloc(* Susie lies about how often she brushes and flosses!Wait for inputClose Message"* Susie lies about how often she brushes and flosses!/%", "obj_omawaroid_enemy_slash_Step_0_gml_227_0" ) : stringsetloc(* Susie lies about her health!Wait for inputClose Message"* Susie lies about her health!/%", "obj_omawaroid_enemy_slash_Step_0_gml_227_1" );
|
|
175
|
msgset(0, simultext);
|
|
176
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_playsound = 0;
}
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 50);
|
|
177
|
scr_simultextscr_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");
|
|
178
|
actconsus = (simulordersus == 0) ? 20 : 0;
|
|
179
|
}
|
|
180
|
if (actingral == 1 && actconral == 1)
|
|
181
|
{
|
|
182
|
var simultext = (simultotal == 1) ? stringsetloc(* Ralsei washes his hands for 60 seconds!Wait for inputClose Message"* Ralsei washes his hands for 60 seconds!/%", "obj_omawaroid_enemy_slash_Step_0_gml_238_0" ) : stringsetloc(* Ralsei washes his hands!Wait for inputClose Message"* Ralsei washes his hands!/%", "obj_omawaroid_enemy_slash_Step_0_gml_238_1" );
|
|
183
|
msgset(0, simultext);
|
|
184
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_playsound = 0;
}
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 50);
|
|
185
|
scr_simultextscr_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");
|
|
186
|
actconral = (simulorderral == 0) ? 20 : 0;
|
|
187
|
}
|
|
188
|
if (actingnoe == 1 && actconnoe == 1)
|
|
189
|
{
|
|
190
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_playsound = 0;
}
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 50);
|
|
191
|
msgsetloc(0, * Noelle takes on and off her nurse hat really fast!Wait for inputClose Message"* Noelle takes on and off her nurse hat really fast!/%", "obj_omawaroid_enemy_slash_Step_0_gml_253_0" );
|
|
192
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
193
|
actcon = 1;
|
|
194
|
actconnoe = 0;
|
|
195
|
}
|
|
196
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
197
|
{
|
|
198
|
scr_act_charsprite_endscr_act_charsprite_end
function scr_act_charsprite_end()
{
for (i = 0; i < 10; i++)
{
with (_charactsprite[i])
instance_destroy();
}
with (obj_heroparent)
{
if (image_alpha == 0)
{
image_alpha = 1;
acttimer = 0;
state = 0;
global.faceaction[myself] = 0;
}
}
} ();
|
|
199
|
scr_nextactscr_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();
}
} ();
|
|
200
|
}
|
|
201
|
if (actcon == 20 || actconsus == 20 || actconral == 20 || actconnoe == 20)
|
|
202
|
{
|
|
203
|
if (scr_terminate_writerscr_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;
} ())
|
|
204
|
{
|
|
205
|
actconsus = -1;
|
|
206
|
actconral = -1;
|
|
207
|
actconnoe = -1;
|
|
208
|
actcon = 1;
|
|
209
|
}
|
|
210
|
}
|
|
211
|
}
|
|
212
|
|
|
213
|
enum e__VW
|
|
214
|
{
|
|
215
|
XView,
|
|
216
|
YView,
|
|
217
|
WView,
|
|
218
|
HView,
|
|
219
|
Angle,
|
|
220
|
HBorder,
|
|
221
|
VBorder,
|
|
222
|
HSpeed,
|
|
223
|
VSpeed,
|
|
224
|
Object,
|
|
225
|
Visible,
|
|
226
|
XPort,
|
|
227
|
YPort,
|
|
228
|
WPort,
|
|
229
|
HPort,
|
|
230
|
Camera,
|
|
231
|
SurfaceID
|
|
232
|
}
|