1 |
if (global.monster[myself] == 1) |
2 |
{ |
3 |
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) |
4 |
{ |
5 |
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;
}
} (); |
6 |
global.typer = 50; |
7 |
if (attackorder == 3) |
8 |
attackorder = 0; |
9 |
if (attackorder == 0) |
10 |
rr = 1; |
11 |
if (attackorder == 1) |
12 |
rr = 2; |
13 |
if (attackorder == 2) |
14 |
rr = 0; |
15 |
attackorder++; |
16 |
if (rr == 0) |
17 |
{ |
18 |
if (duckmode) |
19 |
msgsetloc(0, Fly, mine Duckie! Fly!Wait for inputClose Message"Fly, mine Duckie! Fly!/%", "obj_rouxls_enemy_slash_Step_0_gml_19_0" ); |
20 |
else |
21 |
msgsetloc(0, Go forth, my caravan!Wait for inputClose Message"Go forth,&my caravan!/%", "obj_rouxls_enemy_slash_Step_0_gml_22_0" ); |
22 |
chosenattack = 1; |
23 |
} |
24 |
else if (rr == 1) |
25 |
{ |
26 |
msgsetloc(0, Solveth my puzzleth, yon Maties!Wait for inputClose Message"Solveth my puzzleth,&yon Maties!/%", "obj_rouxls_enemy_slash_Step_0_gml_28_0" ); |
27 |
chosenattack = 2; |
28 |
} |
29 |
else if (rr == 2) |
30 |
{ |
31 |
msgsetloc(0, Thrashst off the Porthbow!Wait for inputClose Message"Thrashst off&the Porthbow!/%", "obj_rouxls_enemy_slash_Step_0_gml_33_0" ); |
32 |
chosenattack = 0; |
33 |
} |
34 |
talkedcon = 0; |
35 |
talktimer = 0; |
36 |
ralseitalks = 0; |
37 |
if (ballooncount == 0) |
38 |
{ |
39 |
msgsetloc(0, The Rouxls (pronounced Rules) art Simple!Wait for inputClose Message"The Rouxls&(pronounced Rules)&art Simple!/%", "obj_rouxls_enemy_slash_Step_0_gml_42_0" ); |
40 |
ballooncon = 1; |
41 |
} |
42 |
if (ballooncount == 1) |
43 |
{ |
44 |
if (hasplayerplacedhouses == 0 && global.monsterhp[myself] != global.monstermaxhp[myself]) |
45 |
msgsetloc(0, O-oweth! The houses, thoust fool! THE HOUSES!!!Wait for inputClose Message"O-oweth! The houses,&thoust fool! THE&HOUSES!!!/%", "obj_rouxls_enemy_slash_Step_0_gml_45_0" ); |
46 |
else |
47 |
msgsetloc(0, Soon, Victorie will be Mineth, and Queene will maketh me her Left Hande Man...Wait for inputClose Message"Soon, Victorie&will be Mineth,&and Queene will&maketh me her&Left Hande Man.../%", "obj_rouxls_enemy_slash_Step_0_gml_46_0" ); |
48 |
} |
49 |
if (ballooncount == 2) |
50 |
{ |
51 |
if (hasplayerplacedhouses == 0 && global.monsterhp[myself] != global.monstermaxhp[myself]) |
52 |
{ |
53 |
msgsetloc(0, STOP HITTINGETH ME AND PLAYETH MY MINI-GAME, YOU ROGUES!!!Wait for inputClose Message"STOP HITTINGETH&ME AND PLAYETH&MY MINI-GAME,&YOU ROGUES!!!/%", "obj_rouxls_enemy_slash_Step_0_gml_50_0" ); |
54 |
} |
55 |
else |
56 |
{ |
57 |
msgsetloc(0, Umm, Mr. Kaard? What happens if WE win?Wait for inputClose Message"Umm,&Mr. Kaard?&What happens&if WE win?/%", "obj_rouxls_enemy_slash_Step_0_gml_51_0" ); |
58 |
ralseitalks = 1; |
59 |
ballooncon = 2; |
60 |
} |
61 |
} |
62 |
if (ballooncount == 3 && hasplayerplacedhouses == 1) |
63 |
msgsetloc(0, STOP!!! STOP BUILDINGETH HOUSES!!! I HAVE TO WIN!!!Wait for inputClose Message"STOP!!! STOP&BUILDINGETH HOUSES!!!&I HAVE TO WIN!!!/%", "obj_rouxls_enemy_slash_Step_0_gml_57_0" ); |
64 |
ballooncount++; |
65 |
if (ralseitalks == 1 && instance_exists(obj_heroralsei)) |
66 |
{ |
67 |
global.typer = 74; |
68 |
scr_guardpeekscr_guardpeekfunction scr_guardpeek(arg0)
{
if (global.faceaction[arg0.myself] == 4)
{
var _peeker = 0;
if (arg0 == obj_heroralsei)
{
obj_heroralsei.image_alpha = 0;
_peeker = scr_battle_marker(obj_heroralsei.x, obj_heroralsei.y, spr_ralsei_defend_peek);
_peeker.depth = obj_heroralsei.depth;
_peeker.sourceobject = obj_heroralsei;
_peeker.endanimation = spr_ralsei_redefend;
}
else if (arg0 == obj_herosusie)
{
obj_herosusie.image_alpha = 0;
_peeker = scr_battle_marker(obj_herosusie.x, obj_herosusie.y, spr_susie_defend_peek);
_peeker.depth = obj_herosusie.depth;
_peeker.sourceobject = obj_herosusie;
}
return _peeker;
}
} (obj_heroralsei); |
69 |
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;
}
} (obj_heroralsei.x + 75, obj_heroralsei.y + 15, 7); |
70 |
} |
71 |
else |
72 |
{ |
73 |
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); |
74 |
} |
75 |
if (ballooncon == 0) |
76 |
{ |
77 |
talked = 1; |
78 |
talktimer = 0; |
79 |
} |
80 |
else |
81 |
{ |
82 |
talked = 0.5; |
83 |
talktimer = 0; |
84 |
} |
85 |
} |
86 |
if (talked == 0.5) |
87 |
{ |
88 |
talktimer++; |
89 |
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer)) |
90 |
{ |
91 |
with (obj_writer) |
92 |
instance_destroy(); |
93 |
with (obj_battleblcon) |
94 |
instance_destroy(); |
95 |
if (ballooncon == 1) |
96 |
{ |
97 |
msgsetloc(0, Conquer Houses! Whoeverest has the most, Winst!Wait for inputClose Message"Conquer Houses!&Whoeverest has the&most, Winst!/%", "obj_rouxls_enemy_slash_Step_0_gml_85_0" ); |
98 |
alarm[6] = 1; |
99 |
} |
100 |
if (ballooncon == 2) |
101 |
{ |
102 |
msgsetloc(0, ...Wait for inputClose Message".../%", "obj_rouxls_enemy_slash_Step_0_gml_86_0" ); |
103 |
alarm[7] = 1; |
104 |
} |
105 |
ballooncon = 0; |
106 |
talked = 0.6; |
107 |
global.typer = 50; |
108 |
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); |
109 |
} |
110 |
} |
111 |
if (talked == 0.7) |
112 |
{ |
113 |
talktimer++; |
114 |
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer)) |
115 |
{ |
116 |
with (obj_writer) |
117 |
instance_destroy(); |
118 |
with (obj_battleblcon) |
119 |
instance_destroy(); |
120 |
msgsetloc(0, Uh ohWait for inputClose Message"Uh oh/%", "obj_rouxls_enemy_slash_Step_0_gml_102_0" ); |
121 |
talked = 0.8; |
122 |
alarm[6] = 1; |
123 |
global.typer = 50; |
124 |
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); |
125 |
} |
126 |
} |
127 |
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")) |
128 |
{ |
129 |
talktimer++; |
130 |
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer)) |
131 |
{ |
132 |
with (obj_writer) |
133 |
instance_destroy(); |
134 |
with (obj_battleblcon) |
135 |
instance_destroy(); |
136 |
talkedcon = 1; |
137 |
} |
138 |
if (talkedcon == 1) |
139 |
{ |
140 |
rtimer = 0; |
141 |
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;
}
}
} (-1); |
142 |
if (global.mnfight == 2) |
143 |
global.mnfight = 7; |
144 |
} |
145 |
} |
146 |
if (global.mnfight == 7 && buildedblocks == 0) |
147 |
{ |
148 |
buildedblockstimer++; |
149 |
if (buildedblockstimer == 1) |
150 |
{ |
151 |
with (obj_rouxls_simtown) |
152 |
TurnCon = 2; |
153 |
} |
154 |
if (buildedblockstimer > 60) |
155 |
{ |
156 |
global.mnfight = 2; |
157 |
buildedblocks = 1; |
158 |
buildedblockstimer = 0; |
159 |
} |
160 |
} |
161 |
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") && buildedblocks == 1) |
162 |
{ |
163 |
buildedblocks = 2; |
164 |
rr = chosenattack; |
165 |
if (!instance_exists(obj_moveheart) && !instance_exists(obj_heart)) |
166 |
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);
} (); |
167 |
if (!instance_exists(obj_growtangle)) |
168 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); |
169 |
} |
170 |
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 && buildedblocks == 2) |
171 |
{ |
172 |
rtimer += 1; |
173 |
if (rtimer == 12) |
174 |
{ |
175 |
if (!instance_exists(obj_darkener)) |
176 |
instance_create(0, 0, obj_darkener); |
177 |
if (rr == 0) |
178 |
{ |
179 |
global.monsterattackname[myself] = "ThrashHead"; |
180 |
dc = scr_bulletspawnerscr_bulletspawnerfunction 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); |
181 |
dc.damage = global.monsterat[myself] * 5; |
182 |
dc.type = 26; |
183 |
dc.difficulty = head_difficulty; |
184 |
} |
185 |
else if (rr == 1) |
186 |
{ |
187 |
global.monsterattackname[myself] = "ThrashFoot"; |
188 |
dc = scr_bulletspawnerscr_bulletspawnerfunction 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); |
189 |
dc.damage = global.monsterat[myself] * 7; |
190 |
dc.type = 27; |
191 |
dc.difficulty = wheel_difficulty; |
192 |
} |
193 |
else |
194 |
{ |
195 |
global.monsterattackname[myself] = "PuzzleBlocks"; |
196 |
dc = scr_bulletspawnerscr_bulletspawnerfunction 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); |
197 |
dc.damage = global.monsterat[myself] * 6; |
198 |
dc.type = 28; |
199 |
} |
200 |
scr_turntimer(200); |
201 |
turns += 1; |
202 |
global.typer = 6; |
203 |
global.fc = 0; |
204 |
rr = choose(0, 1, 2, 3); |
205 |
var random_zone = irandom(2); |
206 |
if (rr == 0) |
207 |
{ |
208 |
var zone_word = zone[random_zone]; |
209 |
global.battlemsg[0] = stringsetsubloc("* You need more ~1 Zones.", zone_word, "obj_rouxls_enemy_slash_Step_0_gml_136_0"); |
210 |
} |
211 |
if (rr == 1) |
212 |
{ |
213 |
var city_word = city[random_zone]; |
214 |
global.battlemsg[0] = stringsetsubloc("* Your city is lacking ~1.", city_word, "obj_rouxls_enemy_slash_Step_0_gml_142_0"); |
215 |
} |
216 |
if (rr == 2) |
217 |
{ |
218 |
var shipStatus = stringsetloc(cool"cool", "obj_rouxls_enemy_slash_Step_0_gml_230_0" ); |
219 |
if (type == 0) |
220 |
shipStatus = stringsetloc(elegant"elegant", "obj_rouxls_enemy_slash_Step_0_gml_235_0" ); |
221 |
if (type == 1) |
222 |
shipStatus = stringsetloc(lively"lively", "obj_rouxls_enemy_slash_Step_0_gml_239_0" ); |
223 |
if (type == 2) |
224 |
shipStatus = stringsetloc(cute"cute", "obj_rouxls_enemy_slash_Step_0_gml_243_0" ); |
225 |
if (type == 3) |
226 |
shipStatus = stringsetloc(hot"hot", "obj_rouxls_enemy_slash_Step_0_gml_247_0" ); |
227 |
if (type == 5) |
228 |
shipStatus = stringsetloc(gun's"gun's", "obj_rouxls_enemy_slash_Step_0_gml_251_0" ); |
229 |
global.battlemsg[0] = duckmode ? stringsetloc(* The enemy's ship seems to have fallen in love with yours."* The enemy's ship seems to have fallen in love with yours.", "obj_rouxls_enemy_slash_Step_0_gml_147_0" ) : stringsetsubloc("* You can't help but notice the enemy's ship is very ~1.", shipStatus, "obj_rouxls_enemy_slash_Step_0_gml_147_1"); |
230 |
} |
231 |
if (rr == 3) |
232 |
global.battlemsg[0] = stringsetloc(* Smells like a model house set."* Smells like a model house set.", "obj_rouxls_enemy_slash_Step_0_gml_150_0" ); |
233 |
attacked = 1; |
234 |
buildedblocks = 0; |
235 |
} |
236 |
else |
237 |
{ |
238 |
scr_turntimer(120); |
239 |
} |
240 |
} |
241 |
} |
242 |
if (global.myfight == 3) |
243 |
{ |
244 |
xx = __view_get(e__VW.XView, 0); |
245 |
yy = __view_get(e__VW.YView, 0); |
246 |
if (acting == 1 && actcon == 0) |
247 |
{ |
248 |
actcon = 1; |
249 |
msgsetloc(0, * ROUXLS - Miniboss for hire. Will appear even if unhired. "I eventh do Partiese"Wait for inputClose Message"* ROUXLS - Miniboss for hire. Will appear even if unhired.&\"I eventh do Partiese\"/%", "obj_rouxls_enemy_slash_Step_0_gml_171_0" ); |
250 |
scr_battletext_default(); |
251 |
} |
252 |
if (acting == 2 && actcon == 0) |
253 |
{ |
254 |
msgsetloc(0, Close MessageClose Message"%%", "obj_rouxls_enemy_slash_Step_0_gml_178_0" ); |
255 |
scr_battletext_default(); |
256 |
acting = 9; |
257 |
HouseCount = 1; |
258 |
} |
259 |
if (acting == 3 && actcon == 0) |
260 |
{ |
261 |
msgsetloc(0, Close MessageClose Message"%%", "obj_rouxls_enemy_slash_Step_0_gml_187_0" ); |
262 |
scr_battletext_default(); |
263 |
acting = 9; |
264 |
HouseCount = 2; |
265 |
} |
266 |
if (acting == 4 && actcon == 0) |
267 |
{ |
268 |
msgsetloc(0, Close MessageClose Message"%%", "obj_rouxls_enemy_slash_Step_0_gml_196_0" ); |
269 |
scr_battletext_default(); |
270 |
acting = 9; |
271 |
HouseCount = 3; |
272 |
} |
273 |
if (acting == 5 && actcon == 0) |
274 |
{ |
275 |
msgsetloc(0, Close MessageClose Message"%%", "obj_rouxls_enemy_slash_Step_0_gml_205_0" ); |
276 |
scr_battletext_default(); |
277 |
acting = 9; |
278 |
HouseCount = 4; |
279 |
} |
280 |
if (actingral == 1 && actconral == 1) |
281 |
{ |
282 |
with (obj_rouxls_simtown) |
283 |
{ |
284 |
if (RalseiDistractTwice != 1) |
285 |
RalseiDistract = 1; |
286 |
} |
287 |
if (obj_rouxls_simtown.RalseiDistract == 1) |
288 |
msgsetloc(0, * Ralsei distracted! Rouxls will place one less house next turn.Wait for inputClose Message"* Ralsei distracted! Rouxls will place one less house next turn./%", "obj_rouxls_enemy_slash_Step_0_gml_214_0" ); |
289 |
else |
290 |
msgsetloc(0, * Ralsei distracted! But it failed.Wait for inputClose Message"* Ralsei distracted! But it failed./%", "obj_rouxls_enemy_slash_Step_0_gml_215_0" ); |
291 |
scr_battletext_default(); |
292 |
actcon = 1; |
293 |
actconral = 0; |
294 |
} |
295 |
if (acting == 9 && actcon == 0 && !instance_exists(obj_writer)) |
296 |
{ |
297 |
with (obj_rouxls_simtown) |
298 |
{ |
299 |
MyTurn = 1; |
300 |
TurnCon = 0; |
301 |
HouseCountMax = obj_rouxls_enemy.HouseCount; |
302 |
} |
303 |
acting = 10; |
304 |
} |
305 |
if (actcon == 20 || actconsus == 20 || actconral == 20) |
306 |
{ |
307 |
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;
} ()) |
308 |
{ |
309 |
actconsus = -1; |
310 |
actconral = -1; |
311 |
actcon = 1; |
312 |
} |
313 |
} |
314 |
if (actcon == 1 && !instance_exists(obj_writer)) |
315 |
{ |
316 |
if (endbattle == 1) |
317 |
actcon = 50; |
318 |
else |
319 |
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();
}
} (); |
320 |
} |
321 |
if (actcon == 50) |
322 |
{ |
323 |
mus_volume(global.batmusic[1], 0, 45); |
324 |
actcon = 51; |
325 |
alarm[5] = 45; |
326 |
} |
327 |
if (actcon == 52) |
328 |
{ |
329 |
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)
... ("rouxls"); |
330 |
msgsetloc(0, Face 0* It seemseth the Game hath been Overed!Wait for input"\\E0* It seemseth the Game hath been Overed!/", "obj_rouxls_enemy_slash_Step_0_gml_263_0" ); |
331 |
if (obj_rouxls_simtown.actresult == "lost") |
332 |
{ |
333 |
msgnextloc(Face 2* And lo! I haveth the moste Real Estate!Wait for input"\\E2* And lo! I haveth the moste Real Estate!/", "obj_rouxls_enemy_slash_Step_0_gml_266_0" ); |
334 |
} |
335 |
else if (obj_rouxls_simtown.actresult == "won") |
336 |
{ |
337 |
msgnextloc(Face 1* What!? Howst doth you have more Houstes?!Wait for input"\\E1* What!? Howst doth you have more Houstes?!/", "obj_rouxls_enemy_slash_Step_0_gml_270_0" ); |
338 |
} |
339 |
else |
340 |
{ |
341 |
msgnextloc(Face 5* I haveth noe idea who won or lost.Wait for input"\\E5* I haveth noe idea who won or lost./", "obj_rouxls_enemy_slash_Step_0_gml_274_0" ); |
342 |
global.flag[435 house_game_winner] = 3; |
343 |
} |
344 |
msgnextloc(Face 5* CUT THE BATTLE!!!Wait for inputClose Message"\\E5* CUT THE BATTLE!!!/%", "obj_rouxls_enemy_slash_Step_0_gml_364_0" ); |
345 |
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
} (); |
346 |
actcon = 53; |
347 |
} |
348 |
if (actcon == 53 && !instance_exists(obj_writer)) |
349 |
{ |
350 |
with (obj_simtown_acidmaker) |
351 |
instance_destroy(); |
352 |
with (obj_simtown_landmaker) |
353 |
instance_destroy(); |
354 |
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;
}
} (); |
355 |
actcon = 55; |
356 |
} |
357 |
} |
358 |
if (scr_debug()) |
359 |
{ |
360 |
if (keyboard_check_pressed(vk_numpad7) || keyboard_check_pressed(ord("1"))) |
361 |
bulletoverride = 0; |
362 |
if (keyboard_check_pressed(vk_numpad8) || keyboard_check_pressed(ord("2"))) |
363 |
bulletoverride = 1; |
364 |
if (keyboard_check_pressed(vk_numpad9) || keyboard_check_pressed(ord("3"))) |
365 |
bulletoverride = 2; |
366 |
if (keyboard_check_pressed(vk_numpad5) || keyboard_check_pressed(ord("4"))) |
367 |
bulletoverride = -1; |
368 |
if (keyboard_check_pressed(ord("H"))) |
369 |
{ |
370 |
if (instance_exists(obj_power_up_fx)) |
371 |
{ |
372 |
instance_destroy(obj_power_up_fx); |
373 |
instance_destroy(obj_power_up_thrash); |
374 |
} |
375 |
else |
376 |
{ |
377 |
d = scr_following_afterimagescr_following_afterimagefunction scr_following_afterimage()
{
var __source = (argument_count == 2) ? argument[1] : self;
afterimage = instance_create(__source.x, __source.y, argument[0]);
afterimage.parent = __source;
afterimage.sprite_index = __source.sprite_index;
afterimage.image_index = __source.image_index;
afterimage.image_blend = __source.image_blend;
afterimage.image_speed = 0;
afterimage.depth = __source.depth;
afterimage.image_xscale = __source.image_xscale;
afterimage.image_yscale = __source.image_yscale;
afterimage.image_angle = __source.image_angle;
return afterimage;
} (obj_power_up_fx, self); |
378 |
d.depth -= 1; |
379 |
d = scr_following_afterimagescr_following_afterimagefunction scr_following_afterimage()
{
var __source = (argument_count == 2) ? argument[1] : self;
afterimage = instance_create(__source.x, __source.y, argument[0]);
afterimage.parent = __source;
afterimage.sprite_index = __source.sprite_index;
afterimage.image_index = __source.image_index;
afterimage.image_blend = __source.image_blend;
afterimage.image_speed = 0;
afterimage.depth = __source.depth;
afterimage.image_xscale = __source.image_xscale;
afterimage.image_yscale = __source.image_yscale;
afterimage.image_angle = __source.image_angle;
return afterimage;
} (obj_power_up_thrash, obj_thrashmachine); |
380 |
d.depth -= 1; |
381 |
} |
382 |
} |
383 |
} |
384 |
|
385 |
enum e__VW |
386 |
{ |
387 |
XView, |
388 |
YView, |
389 |
WView, |
390 |
HView, |
391 |
Angle, |
392 |
HBorder, |
393 |
VBorder, |
394 |
HSpeed, |
395 |
VSpeed, |
396 |
Object, |
397 |
Visible, |
398 |
XPort, |
399 |
YPort, |
400 |
WPort, |
401 |
HPort, |
402 |
Camera, |
403 |
SurfaceID |
404 |
} |