|
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
|
global.typer = 50;
|
|
9
|
rr = choose(0, 1, 2, 3);
|
|
10
|
if (rr == 0)
|
|
11
|
msgsetloc(0, meowowme owowmeow"meowowme&owowmeow", "obj_tasque_enemy_slash_Step_0_gml_16_0" );
|
|
12
|
if (rr == 1)
|
|
13
|
msgsetloc(0, meowowme meowmeow"meowowme&meowmeow", "obj_tasque_enemy_slash_Step_0_gml_17_0" );
|
|
14
|
if (rr == 2)
|
|
15
|
msgsetloc(0, meowowme owowowow"meowowme&owowowow", "obj_tasque_enemy_slash_Step_0_gml_18_0" );
|
|
16
|
if (rr == 3)
|
|
17
|
msgsetloc(0, meowowow meowowow"meowowow&meowowow", "obj_tasque_enemy_slash_Step_0_gml_19_0" );
|
|
18
|
if (petted)
|
|
19
|
{
|
|
20
|
petted = false;
|
|
21
|
msgsetloc(0, owowowmememeowme owmemeowowmemeow owmeowmemeowmeow"owowowmememeowme&owmemeowowmemeow&owmeowmemeowmeow", "obj_tasque_enemy_slash_Step_0_gml_24_0" );
|
|
22
|
}
|
|
23
|
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);
|
|
24
|
talked = 1;
|
|
25
|
talktimer = 0;
|
|
26
|
}
|
|
27
|
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"))
|
|
28
|
{
|
|
29
|
rtimer = 0;
|
|
30
|
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);
|
|
31
|
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"))
|
|
32
|
{
|
|
33
|
if (!instance_exists(obj_moveheart))
|
|
34
|
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);
} ();
|
|
35
|
if (!instance_exists(obj_growtangle))
|
|
36
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
37
|
}
|
|
38
|
}
|
|
39
|
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)
|
|
40
|
{
|
|
41
|
if (rtimer == 0)
|
|
42
|
rr = choose(0, 1);
|
|
43
|
rtimer += 1;
|
|
44
|
if (rtimer == 15)
|
|
45
|
{
|
|
46
|
if (rr == 0)
|
|
47
|
{
|
|
48
|
global.monsterattackname[myself] = "YarnBalls";
|
|
49
|
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);
|
|
50
|
dc.type = 2;
|
|
51
|
dc.element = 6;
|
|
52
|
}
|
|
53
|
else if (rr > 0)
|
|
54
|
{
|
|
55
|
global.monsterattackname[myself] = "MeowWow";
|
|
56
|
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);
|
|
57
|
dc.type = 3;
|
|
58
|
dc.element = 6;
|
|
59
|
if (rr == 2)
|
|
60
|
dc.difficulty = 1;
|
|
61
|
}
|
|
62
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (140);
|
|
63
|
turns += 1;
|
|
64
|
global.typer = 6;
|
|
65
|
global.fc = 0;
|
|
66
|
if (global.monsterstatus[myself] == 1)
|
|
67
|
{
|
|
68
|
global.battlemsg[0] = stringsetloc(* Tasque is beeping dangerously."* Tasque is beeping dangerously.", "obj_tasque_enemy_slash_Step_0_gml_89_0" );
|
|
69
|
}
|
|
70
|
else if (global.mercymod[myself] >= global.mercymax[myself])
|
|
71
|
{
|
|
72
|
global.battlemsg[0] = stringsetloc(* Tasque is emitting an 8-bit purr."* Tasque is emitting an 8-bit purr.", "obj_tasque_enemy_slash_Step_0_gml_92_0" );
|
|
73
|
}
|
|
74
|
else
|
|
75
|
{
|
|
76
|
rr = choose(0, 1, 2, 3, 4);
|
|
77
|
if (rr == 0)
|
|
78
|
global.battlemsg[0] = stringsetloc(* Tasque is batting a ball of low-poly yarn."* Tasque is batting a ball of low-poly yarn.", "obj_tasque_enemy_slash_Step_0_gml_96_0" );
|
|
79
|
if (rr == 1)
|
|
80
|
{
|
|
81
|
var maxmin = (choose(0, 1) == 0) ? stringsetloc(minimized"minimized", "obj_tasque_enemy_slash_Step_0_gml_99_0" ) : stringsetloc(maximized"maximized", "obj_tasque_enemy_slash_Step_0_gml_99_1" );
|
|
82
|
global.battlemsg[0] = stringsetsubloc("* Tasque is meowing to be ~1.", maxmin, "obj_tasque_enemy_slash_Step_0_gml_100_0");
|
|
83
|
}
|
|
84
|
if (rr == 2)
|
|
85
|
global.battlemsg[0] = stringsetloc(* Tasque cleans with a sawtooth tongue."* Tasque cleans with a sawtooth tongue.", "obj_tasque_enemy_slash_Step_0_gml_102_0" );
|
|
86
|
if (rr == 3)
|
|
87
|
global.battlemsg[0] = stringsetloc(* Tasque wags its tail in a sine wave."* Tasque wags its tail in a sine wave.", "obj_tasque_enemy_slash_Step_0_gml_103_0" );
|
|
88
|
if (rr == 4)
|
|
89
|
global.battlemsg[0] = stringsetloc(* Smells like plastic cartridge."* Smells like plastic cartridge.", "obj_tasque_enemy_slash_Step_0_gml_104_0" );
|
|
90
|
}
|
|
91
|
attacked = 1;
|
|
92
|
}
|
|
93
|
else
|
|
94
|
{
|
|
95
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (120);
|
|
96
|
}
|
|
97
|
}
|
|
98
|
}
|
|
99
|
if (global.myfight == 3)
|
|
100
|
{
|
|
101
|
xx = __view_get(e__VW.XView, 0);
|
|
102
|
yy = __view_get(e__VW.YView, 0);
|
|
103
|
if (acting == 1 && actcon == 0)
|
|
104
|
{
|
|
105
|
actcon = 1;
|
|
106
|
msgsetloc(0, * TASQUE - This stray cat is in need of some management.Wait for inputClose Message"* TASQUE - This stray cat is in need of some management./%", "obj_tasque_enemy_slash_Step_0_gml_126_0" );
|
|
107
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
108
|
}
|
|
109
|
if (acting == 2 && actcon == 0)
|
|
110
|
{
|
|
111
|
petted = true;
|
|
112
|
var simultext = (simultotal == 1) ? stringsetloc(* You pet Tasque. It liked that.Wait for inputClose Message"* You pet Tasque. It liked that./%", "obj_tasque_enemy_slash_Step_0_gml_133_0" ) : stringsetloc(* You pet Tasque!Wait for inputClose Message"* You pet Tasque!/%", "obj_tasque_enemy_slash_Step_0_gml_133_1" );
|
|
113
|
msgset(0, simultext);
|
|
114
|
if (global.mercymod[myself] < global.mercymax[myself])
|
|
115
|
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);
|
|
116
|
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);
} ("kris");
|
|
117
|
actcon = (simulorderkri == 0) ? 20 : -1;
|
|
118
|
}
|
|
119
|
if (acting == 3 && actcon == 0)
|
|
120
|
{
|
|
121
|
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))
|
|
122
|
{
|
|
123
|
sact_count++;
|
|
124
|
if (sact_count == 1)
|
|
125
|
scr_smallfacescr_smallface
function scr_smallface(arg0, arg1, arg2, arg3, arg4, arg5)
{
scr_smallface_reset(arg0);
global.smsprite[arg0] = spr_face_susie_alt;
if (is_string(arg1))
{
if (arg1 == "susie")
global.smsprite[arg0] = spr_face_susie_alt;
if (arg1 == "ralsei")
global.smsprite[arg0] = spr_face_r_nohat;
if (arg1 == "lancer")
global.smsprite[arg0] = spr_face_l0;
if (arg1 == "noelle")
global.smsprite[arg0] = spr_face_n_matome;
if (arg1 == "noelle_cropped")
global.smsprite[arg0] = spr_face_n_matome_cropped;
if (arg1 == "queen")
global.smsprite[arg0] = scr_84_get_sprite("spr_face_queen");
if (arg1 == "rouxls")
global.smsprite[arg0] = spr_face_rurus;
if (arg1 == "berdly")
global.smsprite[arg0] = spr_face_berdly_dark;
if (arg1 == "rudy")
global.smsprite[arg0] = spr_face_rudy;
if (arg1 == "none" || arg1 == "empty")
global.smsprite[arg0] = spr_empty;
}
else
{
global.smsprite[arg0] = arg1;
if (arg1 == 0)
global.smsprite[arg0] = spr_empty;
}
global.smimage[arg0] = arg2;
if (is_string(arg3))
{
if (global.fighting == 1)
{
if (arg3 == "left")
global.smxx[arg0] = 60;
if (arg3 == "leftmid")
global.smxx[arg0] = 160;
if (arg3 == "mid" || arg3 == "middle")
global.smxx[arg0] = 260;
if (arg3 == "rightmid")
global.smxx[arg0] = 360;
if (arg3 == "right")
global.smxx[arg0] = 460;
}
else
{
if (arg3 == "left")
global.smxx[arg0] = 70;
if (arg3 == "leftmid")
global.smxx[arg0] = 160;
if (arg3 == "mid" || arg3 == "middle")
global.smxx[arg0] = 260;
if (arg3 == "rightmid")
global.smxx[arg0] = 360;
if (arg3 == "right")
global.smxx[arg0] = 400;
}
}
else
{
global.smxx[arg0] = arg3;
}
if (is_string(arg4))
{
if (global.fighting == 1)
{
if (arg4 == "top")
global.smyy[arg0] = -10;
if (arg4 == "mid" || arg4 == "middle")
global.smyy[arg0] = 30;
if (arg4 == "bottommid")
global.smyy[arg0] = 45;
if (arg4 == "bottom")
global.smyy[arg0] = 56;
if (arg4 == "bottom" || arg4 == "bottommid")
{
global.smdir[arg0] = 90;
global.smspeed[arg0] = 4;
global.smalarm[arg0] = 10;
global.smyy[arg0] += 40;
global.smxx[arg0] -= 40;
}
}
else
{
if (arg4 == "top")
global.smyy[arg0] = -10;
if (arg4 == "mid" || arg4 == "middle")
global.smyy[arg0] = 30;
if (arg4 == "bottommid")
global.smyy[arg0] = 50;
if (arg4 == "bottom")
global.smyy[arg0] = 68;
if (global.darkzone == 0)
{
if (arg4 == "top")
... (0, "ralsei", 20, "right", "middle", stringsetloc(It's just a cat..."It's just a cat...", "obj_tasque_enemy_slash_Step_0_gml_150_0" ));
|
|
126
|
var sentenceEnd = (sact_count == 1) ? "/" : "/%";
|
|
127
|
msgsetsubloc(0, "* Susie roared!! The enemies became TIRED.~1", sentenceEnd, "obj_tasque_enemy_slash_Step_0_gml_155_0");
|
|
128
|
snd_play(snd_sussurprise);
|
|
129
|
if (sact_count == 1)
|
|
130
|
{
|
|
131
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("susie", 2);
|
|
132
|
msgnextloc(Face 2* Who's king of the jungle now!?Mini text 0 Wait for inputClose Message"\\E2* Who's king of the jungle now!?\\f0/%", "obj_tasque_enemy_slash_Step_0_gml_160_0" );
|
|
133
|
}
|
|
134
|
with (obj_monsterparent)
|
|
135
|
{
|
|
136
|
if (global.monsterstatus[myself] != 1)
|
|
137
|
scr_monster_make_tiredscr_monster_make_tired
function scr_monster_make_tired(arg0)
{
global.monstercomment[arg0] = stringsetloc((Tired)"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0" );
global.monsterstatus[arg0] = 1;
} (myself);
|
|
138
|
}
|
|
139
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
140
|
actcon = 1;
|
|
141
|
}
|
|
142
|
else
|
|
143
|
{
|
|
144
|
nact_count++;
|
|
145
|
var sentenceEnd = (nact_count == 1) ? "/" : "/%";
|
|
146
|
msgsetsubloc(0, "* You and Noelle pet the enemies!~1", sentenceEnd, "obj_tasque_enemy_slash_Step_0_gml_177_0");
|
|
147
|
if (nact_count == 1)
|
|
148
|
{
|
|
149
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("noelle", 4);
|
|
150
|
msgnextloc(Face 4* Th-there,Delay 11 there...Delay 11 (It's not too different from Catti...)Wait for inputClose Message"\\E4* Th-there^1, there..^1. (It's not too different from Catti...)/%", "obj_tasque_enemy_slash_Step_0_gml_182_0" );
|
|
151
|
}
|
|
152
|
with (obj_monsterparent)
|
|
153
|
{
|
|
154
|
if (global.mercymod[myself] < global.mercymax[myself])
|
|
155
|
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);
|
|
156
|
}
|
|
157
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
158
|
actcon = 1;
|
|
159
|
}
|
|
160
|
}
|
|
161
|
if (acting == 4 && actcon == 0)
|
|
162
|
{
|
|
163
|
ract_count++;
|
|
164
|
if (ract_count == 1)
|
|
165
|
scr_smallfacescr_smallface
function scr_smallface(arg0, arg1, arg2, arg3, arg4, arg5)
{
scr_smallface_reset(arg0);
global.smsprite[arg0] = spr_face_susie_alt;
if (is_string(arg1))
{
if (arg1 == "susie")
global.smsprite[arg0] = spr_face_susie_alt;
if (arg1 == "ralsei")
global.smsprite[arg0] = spr_face_r_nohat;
if (arg1 == "lancer")
global.smsprite[arg0] = spr_face_l0;
if (arg1 == "noelle")
global.smsprite[arg0] = spr_face_n_matome;
if (arg1 == "noelle_cropped")
global.smsprite[arg0] = spr_face_n_matome_cropped;
if (arg1 == "queen")
global.smsprite[arg0] = scr_84_get_sprite("spr_face_queen");
if (arg1 == "rouxls")
global.smsprite[arg0] = spr_face_rurus;
if (arg1 == "berdly")
global.smsprite[arg0] = spr_face_berdly_dark;
if (arg1 == "rudy")
global.smsprite[arg0] = spr_face_rudy;
if (arg1 == "none" || arg1 == "empty")
global.smsprite[arg0] = spr_empty;
}
else
{
global.smsprite[arg0] = arg1;
if (arg1 == 0)
global.smsprite[arg0] = spr_empty;
}
global.smimage[arg0] = arg2;
if (is_string(arg3))
{
if (global.fighting == 1)
{
if (arg3 == "left")
global.smxx[arg0] = 60;
if (arg3 == "leftmid")
global.smxx[arg0] = 160;
if (arg3 == "mid" || arg3 == "middle")
global.smxx[arg0] = 260;
if (arg3 == "rightmid")
global.smxx[arg0] = 360;
if (arg3 == "right")
global.smxx[arg0] = 460;
}
else
{
if (arg3 == "left")
global.smxx[arg0] = 70;
if (arg3 == "leftmid")
global.smxx[arg0] = 160;
if (arg3 == "mid" || arg3 == "middle")
global.smxx[arg0] = 260;
if (arg3 == "rightmid")
global.smxx[arg0] = 360;
if (arg3 == "right")
global.smxx[arg0] = 400;
}
}
else
{
global.smxx[arg0] = arg3;
}
if (is_string(arg4))
{
if (global.fighting == 1)
{
if (arg4 == "top")
global.smyy[arg0] = -10;
if (arg4 == "mid" || arg4 == "middle")
global.smyy[arg0] = 30;
if (arg4 == "bottommid")
global.smyy[arg0] = 45;
if (arg4 == "bottom")
global.smyy[arg0] = 56;
if (arg4 == "bottom" || arg4 == "bottommid")
{
global.smdir[arg0] = 90;
global.smspeed[arg0] = 4;
global.smalarm[arg0] = 10;
global.smyy[arg0] += 40;
global.smxx[arg0] -= 40;
}
}
else
{
if (arg4 == "top")
global.smyy[arg0] = -10;
if (arg4 == "mid" || arg4 == "middle")
global.smyy[arg0] = 30;
if (arg4 == "bottommid")
global.smyy[arg0] = 50;
if (arg4 == "bottom")
global.smyy[arg0] = 68;
if (global.darkzone == 0)
{
if (arg4 == "top")
... (0, "susie", 12, "middle", "bottom", stringsetloc(Isn't that just how he normally talks?"Isn't that just how he normally talks?", "obj_tasque_enemy_slash_Step_0_gml_203_0" ));
|
|
166
|
var sentenceEnd = (ract_count == 1) ? "/" : "/%";
|
|
167
|
msgsetsubloc(0, "* Ralsei talked in a soft voice to the enemies!~1", sentenceEnd, "obj_tasque_enemy_slash_Step_0_gml_207_0");
|
|
168
|
if (ract_count == 1)
|
|
169
|
{
|
|
170
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("ralsei", 2);
|
|
171
|
msgnextloc(Face 2* There,Delay 11 there,Delay 11 it's okay,Delay 11 little kitty...Mini text 0 Wait for inputClose Message"\\E2* There^1, there^1, it's okay^1, little kitty...\\f0/%", "obj_tasque_enemy_slash_Step_0_gml_212_0" );
|
|
172
|
}
|
|
173
|
with (obj_monsterparent)
|
|
174
|
{
|
|
175
|
if (global.mercymod[myself] < global.mercymax[myself])
|
|
176
|
{
|
|
177
|
if (global.monstertype[myself] == 32Tasque)
|
|
178
|
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);
|
|
179
|
else if (global.monstertype[myself] == 42Tasque Manager)
|
|
180
|
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, 5);
|
|
181
|
else
|
|
182
|
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);
|
|
183
|
}
|
|
184
|
}
|
|
185
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
186
|
actcon = 1;
|
|
187
|
}
|
|
188
|
if (actingsus == 1 && actconsus == 1)
|
|
189
|
{
|
|
190
|
var simultext = (simultotal == 1) ? stringsetloc(* Susie yelled at Tasque to get off her lawn.Wait for inputClose Message"* Susie yelled at Tasque to get off her lawn./%", "obj_tasque_enemy_slash_Step_0_gml_228_0" ) : stringsetloc(* Susie roared like a lion!Wait for inputClose Message"* Susie roared like a lion!/%", "obj_tasque_enemy_slash_Step_0_gml_228_1" );
|
|
191
|
msgset(0, simultext);
|
|
192
|
if (global.mercymod[myself] < global.mercymax[myself])
|
|
193
|
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);
|
|
194
|
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");
|
|
195
|
actconsus = (simulordersus == 0) ? 20 : 0;
|
|
196
|
}
|
|
197
|
if (actingral == 1 && actconral == 1)
|
|
198
|
{
|
|
199
|
var simultext = (simultotal == 1) ? stringsetloc(* Ralsei cooed gently at Tasque!Wait for inputClose Message"* Ralsei cooed gently at Tasque!/%", "obj_tasque_enemy_slash_Step_0_gml_240_0" ) : stringsetloc(* Ralsei blinks at Tasque!Wait for inputClose Message"* Ralsei blinks at Tasque!/%", "obj_tasque_enemy_slash_Step_0_gml_240_1" );
|
|
200
|
msgset(0, simultext);
|
|
201
|
if (global.mercymod[myself] < global.mercymax[myself])
|
|
202
|
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);
|
|
203
|
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");
|
|
204
|
actconral = (simulorderral == 0) ? 20 : 0;
|
|
205
|
}
|
|
206
|
if (actingnoe == 1 && actconnoe == 1)
|
|
207
|
{
|
|
208
|
var nact_text = (choose(0, 1) == 0) ? stringsetloc(* Noelle got rubbed on by Tasque!Wait for inputClose Message"* Noelle got rubbed on by Tasque!/%", "obj_tasque_enemy_slash_Step_0_gml_252_0" ) : stringsetloc(* Tasque showed its belly to Noelle!Wait for inputClose Message"* Tasque showed its belly to Noelle!/%", "obj_tasque_enemy_slash_Step_0_gml_252_1" );
|
|
209
|
msgset(0, nact_text);
|
|
210
|
if (global.mercymod[myself] < global.mercymax[myself])
|
|
211
|
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);
|
|
212
|
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);
} ("noelle");
|
|
213
|
actconnoe = (simulordernoe == 0) ? 20 : 0;
|
|
214
|
}
|
|
215
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
216
|
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();
}
} ();
|
|
217
|
if (actcon == 20 || actconsus == 20 || actconral == 20 || actconnoe == 20)
|
|
218
|
{
|
|
219
|
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;
} ())
|
|
220
|
{
|
|
221
|
actconsus = -1;
|
|
222
|
actconral = -1;
|
|
223
|
actconnoe = -1;
|
|
224
|
actcon = 1;
|
|
225
|
}
|
|
226
|
}
|
|
227
|
}
|
|
228
|
|
|
229
|
enum e__VW
|
|
230
|
{
|
|
231
|
XView,
|
|
232
|
YView,
|
|
233
|
WView,
|
|
234
|
HView,
|
|
235
|
Angle,
|
|
236
|
HBorder,
|
|
237
|
VBorder,
|
|
238
|
HSpeed,
|
|
239
|
VSpeed,
|
|
240
|
Object,
|
|
241
|
Visible,
|
|
242
|
XPort,
|
|
243
|
YPort,
|
|
244
|
WPort,
|
|
245
|
HPort,
|
|
246
|
Camera,
|
|
247
|
SurfaceID
|
|
248
|
}
|