|
1
|
if (global.monstercomment[myself] == stringsetloc((Tired)"(Tired)", "obj_kk_enemy_slash_Step_0_gml_3_0" ))
|
|
2
|
{
|
|
3
|
global.monstercomment[myself] = " ";
|
|
4
|
global.monsterstatus[myself] = 0;
|
|
5
|
}
|
|
6
|
if (global.monster[myself] == 1)
|
|
7
|
{
|
|
8
|
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)
|
|
9
|
{
|
|
10
|
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;
}
} ();
|
|
11
|
if (!instance_exists(obj_darkener))
|
|
12
|
instance_create(0, 0, obj_darkener);
|
|
13
|
postattackscene = 0;
|
|
14
|
heal = 0;
|
|
15
|
groove = 0;
|
|
16
|
global.typer = 50;
|
|
17
|
var a = 0;
|
|
18
|
if (instance_exists(obj_sweet_enemy) && global.monsterhp[obj_sweet_enemy.myself] < global.monstermaxhp[obj_sweet_enemy.myself])
|
|
19
|
a = 1;
|
|
20
|
if (instance_exists(obj_hatguy_enemy) && global.monsterhp[obj_hatguy_enemy.myself] < global.monstermaxhp[obj_hatguy_enemy.myself])
|
|
21
|
a = 1;
|
|
22
|
rr = choose(0, 1, 2, 3);
|
|
23
|
if (dancing == 1)
|
|
24
|
{
|
|
25
|
msgsetloc(0, Dance! Dance! Everybody dance!"Dance! Dance!&Everybody dance!", "obj_kk_enemy_slash_Step_0_gml_35_0" );
|
|
26
|
}
|
|
27
|
else
|
|
28
|
{
|
|
29
|
if (rr == 0)
|
|
30
|
msgsetloc(0, I like this song."I like this song.", "obj_kk_enemy_slash_Step_0_gml_38_0" );
|
|
31
|
if (rr == 1)
|
|
32
|
msgsetloc(0, Can we dance?"Can we dance?", "obj_kk_enemy_slash_Step_0_gml_39_0" );
|
|
33
|
if (rr == 2)
|
|
34
|
msgsetloc(0, Ring-a-ding-dong."Ring-a-ding-dong.", "obj_kk_enemy_slash_Step_0_gml_40_0" );
|
|
35
|
if (rr == 3 && a == 0)
|
|
36
|
msgsetloc(0, Are we having fun?"Are we having fun?", "obj_kk_enemy_slash_Step_0_gml_41_0" );
|
|
37
|
if (rr == 3 && a == 1)
|
|
38
|
msgsetloc(0, Does anyone want this milk I found?"Does anyone want&this milk I found?", "obj_kk_enemy_slash_Step_0_gml_42_0" );
|
|
39
|
}
|
|
40
|
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);
|
|
41
|
talked = 1;
|
|
42
|
talktimer = 0;
|
|
43
|
}
|
|
44
|
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"))
|
|
45
|
{
|
|
46
|
rtimer = 0;
|
|
47
|
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);
|
|
48
|
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"))
|
|
49
|
{
|
|
50
|
if ((instance_exists(obj_sweet_enemy) && global.monsterhp[obj_sweet_enemy.myself] < 2) || (instance_exists(obj_kk_enemy) && global.monsterhp[obj_kk_enemy.myself] < 2) || (instance_exists(obj_hatguy_enemy) && global.monsterhp[obj_hatguy_enemy.myself] < 2))
|
|
51
|
{
|
|
52
|
if (obj_musical_controller.scon == 0)
|
|
53
|
obj_musical_controller.scon = 1;
|
|
54
|
with (obj_sweet_enemy)
|
|
55
|
heal = 1;
|
|
56
|
with (obj_kk_enemy)
|
|
57
|
heal = 1;
|
|
58
|
with (obj_hatguy_enemy)
|
|
59
|
heal = 1;
|
|
60
|
}
|
|
61
|
else
|
|
62
|
{
|
|
63
|
if (!instance_exists(obj_growtangle))
|
|
64
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 206, obj_growtangle);
|
|
65
|
if (!instance_exists(obj_moveheart))
|
|
66
|
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);
} ();
|
|
67
|
}
|
|
68
|
}
|
|
69
|
}
|
|
70
|
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)
|
|
71
|
{
|
|
72
|
rtimer += 1;
|
|
73
|
if (rtimer == 12)
|
|
74
|
{
|
|
75
|
rr = choose(0, 1);
|
|
76
|
if (heal == 1)
|
|
77
|
{
|
|
78
|
if (obj_musical_controller.scon == 0)
|
|
79
|
obj_musical_controller.scon = 1;
|
|
80
|
}
|
|
81
|
else if (!dancing)
|
|
82
|
{
|
|
83
|
global.monsterattackname[myself] = "musical bullets";
|
|
84
|
if (!instance_exists(obj_musicalbullet_controller))
|
|
85
|
{
|
|
86
|
dc = instance_create(x, y, obj_musicalbullet_controller);
|
|
87
|
dc.damage = global.monsterat[myself] * 5;
|
|
88
|
dc.target = mytarget;
|
|
89
|
boombox = instance_create(obj_growtangle.x - 115, obj_growtangle.y + 80, obj_musicenemy_boombox);
|
|
90
|
boombox.damage = global.monsterat[myself] * 5;
|
|
91
|
boombox.target = mytarget;
|
|
92
|
boombox = instance_create(obj_growtangle.x + 115, obj_growtangle.y + 80, obj_musicenemy_boombox);
|
|
93
|
boombox.image_xscale = -1;
|
|
94
|
boombox.damage = global.monsterat[myself] * 5;
|
|
95
|
boombox.target = mytarget;
|
|
96
|
dancer = instance_create(obj_growtangle.x - 60, obj_growtangle.y - 100, obj_musicenemy_dancer);
|
|
97
|
dancer.damage = global.monsterat[myself] * 5;
|
|
98
|
dancer.target = mytarget;
|
|
99
|
dancer = instance_create(obj_growtangle.x - 20, obj_growtangle.y - 100, obj_musicenemy_dancer);
|
|
100
|
dancer.damage = global.monsterat[myself] * 5;
|
|
101
|
dancer.target = mytarget;
|
|
102
|
dancer = instance_create(obj_growtangle.x + 20, obj_growtangle.y - 100, obj_musicenemy_dancer);
|
|
103
|
dancer.damage = global.monsterat[myself] * 5;
|
|
104
|
dancer.target = mytarget;
|
|
105
|
}
|
|
106
|
else
|
|
107
|
{
|
|
108
|
obj_musicalbullet_controller.enemy_count += 1;
|
|
109
|
}
|
|
110
|
}
|
|
111
|
global.turntimer = 235;
|
|
112
|
turns += 1;
|
|
113
|
global.typer = 6;
|
|
114
|
global.fc = 0;
|
|
115
|
event_user(1);
|
|
116
|
attacked = 1;
|
|
117
|
}
|
|
118
|
else
|
|
119
|
{
|
|
120
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (120);
|
|
121
|
}
|
|
122
|
}
|
|
123
|
if (!instance_exists(obj_sweet_enemy) && global.mnfight == 2 && global.turntimer <= 1 && postattackscene == 0)
|
|
124
|
{
|
|
125
|
with (obj_battlecontroller)
|
|
126
|
noreturn = 1;
|
|
127
|
with (obj_musical_controller)
|
|
128
|
event_user(0);
|
|
129
|
postattackscene = 1;
|
|
130
|
}
|
|
131
|
}
|
|
132
|
if (global.myfight == 3)
|
|
133
|
{
|
|
134
|
xx = __view_get(e__VW.XView, 0);
|
|
135
|
yy = __view_get(e__VW.YView, 0);
|
|
136
|
if (acting == 1 && actcon == 0)
|
|
137
|
{
|
|
138
|
actcon = 1;
|
|
139
|
msgsetloc(0, * K_K - The silly one. Looks up to the other two.Wait for inputClose Message"* K_K - The silly one. Looks up to the other two./%", "obj_kk_enemy_slash_Step_0_gml_151_0" );
|
|
140
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
141
|
}
|
|
142
|
if (acting == 2 && actcon == 0)
|
|
143
|
{
|
|
144
|
if (instance_exists(obj_sweet_enemy))
|
|
145
|
{
|
|
146
|
with (obj_sweet_enemy)
|
|
147
|
actCounter++;
|
|
148
|
}
|
|
149
|
danceCounter = 1;
|
|
150
|
scr_act_charspritescr_act_charsprite
function scr_act_charsprite(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("kris", spr_kris_dance, 0.16, 1);
|
|
151
|
if (simultotal == 1 || (global.lang == "ja" && obj_sweet_enemy.simultotal_funny == 1))
|
|
152
|
{
|
|
153
|
msgsetloc(0, * You danced!Wait for input"* You danced!/", "obj_kk_enemy_slash_Step_0_gml_172_0" );
|
|
154
|
msgnextloc(* K_K got lost in the groove!Wait for inputClose Message"* K_K got lost in the groove!/%", "obj_kk_enemy_slash_Step_0_gml_173_0" );
|
|
155
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
156
|
actcon = 4;
|
|
157
|
alarm[4] = 10; gml_Object_obj_kk_enemy_Alarm_4.gml
actcon += 1;
|
|
158
|
}
|
|
159
|
else
|
|
160
|
{
|
|
161
|
dancing = true;
|
|
162
|
if (groove == 0)
|
|
163
|
{
|
|
164
|
if (global.lang == "ja")
|
|
165
|
{
|
|
166
|
msgsetloc(0, * You danced with K_K!Wait for input"* You danced with K_K!/", "obj_kk_enemy_slash_Step_0_gml_184_0" );
|
|
167
|
msgnextloc(* K_K got lost in the groove!Wait for inputClose Message"* K_K got lost in the groove!/%", "obj_kk_enemy_slash_Step_0_gml_185_0" );
|
|
168
|
}
|
|
169
|
else
|
|
170
|
{
|
|
171
|
msgsetloc(0, * You danced with K_K!Wait for inputClose Message"* You danced with K_K!/%", "obj_kk_enemy_slash_Step_0_gml_190_0" );
|
|
172
|
}
|
|
173
|
groove = 1;
|
|
174
|
}
|
|
175
|
else
|
|
176
|
{
|
|
177
|
msgsetloc(0, * You danced with K_K!Wait for inputClose Message"* You danced with K_K!/%", "obj_kk_enemy_slash_Step_0_gml_190_0" );
|
|
178
|
}
|
|
179
|
if (global.lang == "ja")
|
|
180
|
{
|
|
181
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
182
|
actcon = 20;
|
|
183
|
}
|
|
184
|
else
|
|
185
|
{
|
|
186
|
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");
|
|
187
|
if (simulorderkri == 0)
|
|
188
|
actcon = 20;
|
|
189
|
else
|
|
190
|
actcon = 0;
|
|
191
|
}
|
|
192
|
}
|
|
193
|
}
|
|
194
|
if (acting == 3 && actcon == 0)
|
|
195
|
{
|
|
196
|
if (instance_exists(obj_sweet_enemy))
|
|
197
|
{
|
|
198
|
with (obj_sweet_enemy)
|
|
199
|
actCounter++;
|
|
200
|
}
|
|
201
|
danceCounter = 2;
|
|
202
|
scr_act_charspritescr_act_charsprite
function scr_act_charsprite(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("kris", spr_kris_dance, 0.16, 1);
|
|
203
|
scr_act_charspritescr_act_charsprite
function scr_act_charsprite(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("ralsei", spr_ralsei_dance, 0.16, 1);
|
|
204
|
scr_act_charspritescr_act_charsprite
function scr_act_charsprite(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("susie", spr_susie_dance, 0.16, 1);
|
|
205
|
msgsetloc(0, * Everyone danced with K_K! They're totally lost in the groove!Wait for inputClose Message"* Everyone danced with K_K! They're totally lost in the groove!/%", "obj_kk_enemy_slash_Step_0_gml_221_0" );
|
|
206
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
207
|
actcon = 4;
|
|
208
|
alarm[4] = 10; gml_Object_obj_kk_enemy_Alarm_4.gml
actcon += 1;
|
|
209
|
}
|
|
210
|
if (actcon == 5)
|
|
211
|
{
|
|
212
|
dancing = true;
|
|
213
|
actcon = 1;
|
|
214
|
}
|
|
215
|
if (actingsus == 1 && actconsus == 1)
|
|
216
|
{
|
|
217
|
dancing = true;
|
|
218
|
danceCounter = 1;
|
|
219
|
scr_act_charspritescr_act_charsprite
function scr_act_charsprite(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("susie", spr_susie_dance, 0.16, 1);
|
|
220
|
if (groove == 0)
|
|
221
|
{
|
|
222
|
if (global.lang == "ja")
|
|
223
|
{
|
|
224
|
msgsetloc(0, * Susie danced with K_K!Wait for input"* Susie danced with K_K!/", "obj_kk_enemy_slash_Step_0_gml_248_0" );
|
|
225
|
msgnextloc(* K_K got lost in the groove!Wait for inputClose Message"* K_K got lost in the groove!/%", "obj_kk_enemy_slash_Step_0_gml_249_0" );
|
|
226
|
}
|
|
227
|
else
|
|
228
|
{
|
|
229
|
msgsetloc(0, * Susie danced with K_K!Wait for inputClose Message"* Susie danced with K_K!/%", "obj_kk_enemy_slash_Step_0_gml_254_0" );
|
|
230
|
}
|
|
231
|
groove = 1;
|
|
232
|
}
|
|
233
|
else
|
|
234
|
{
|
|
235
|
msgsetloc(0, * Susie danced with K_K!Wait for inputClose Message"* Susie danced with K_K!/%", "obj_kk_enemy_slash_Step_0_gml_254_0" );
|
|
236
|
}
|
|
237
|
if (global.lang == "ja")
|
|
238
|
{
|
|
239
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
240
|
actconsus = 20;
|
|
241
|
}
|
|
242
|
else
|
|
243
|
{
|
|
244
|
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");
|
|
245
|
if (simulordersus == 0)
|
|
246
|
actconsus = 20;
|
|
247
|
else
|
|
248
|
actconsus = 0;
|
|
249
|
}
|
|
250
|
}
|
|
251
|
if (actingral == 1 && actconral == 1)
|
|
252
|
{
|
|
253
|
dancing = true;
|
|
254
|
danceCounter = 1;
|
|
255
|
scr_act_charspritescr_act_charsprite
function scr_act_charsprite(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("ralsei", spr_ralsei_dance, 0.16, 1);
|
|
256
|
if (groove == 0)
|
|
257
|
{
|
|
258
|
if (global.lang == "ja")
|
|
259
|
{
|
|
260
|
msgsetloc(0, * Ralsei danced with K_K!Wait for input"* Ralsei danced with K_K!/", "obj_kk_enemy_slash_Step_0_gml_287_0" );
|
|
261
|
msgnextloc(* K_K got lost in the groove!Wait for inputClose Message"* K_K got lost in the groove!/%", "obj_kk_enemy_slash_Step_0_gml_288_0" );
|
|
262
|
}
|
|
263
|
else
|
|
264
|
{
|
|
265
|
msgsetloc(0, * Ralsei danced with K_K!Wait for inputClose Message"* Ralsei danced with K_K!/%", "obj_kk_enemy_slash_Step_0_gml_293_0" );
|
|
266
|
}
|
|
267
|
groove = 1;
|
|
268
|
}
|
|
269
|
else
|
|
270
|
{
|
|
271
|
msgsetloc(0, * Ralsei danced with K_K!Wait for inputClose Message"* Ralsei danced with K_K!/%", "obj_kk_enemy_slash_Step_0_gml_293_0" );
|
|
272
|
}
|
|
273
|
if (global.lang == "ja")
|
|
274
|
{
|
|
275
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
276
|
actconral = 20;
|
|
277
|
}
|
|
278
|
else
|
|
279
|
{
|
|
280
|
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");
|
|
281
|
if (simulorderral == 0)
|
|
282
|
actconral = 20;
|
|
283
|
else
|
|
284
|
actconral = 0;
|
|
285
|
}
|
|
286
|
}
|
|
287
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
288
|
{
|
|
289
|
if (obj_sweet_enemy.dancing == true && obj_kk_enemy.dancing == true && obj_hatguy_enemy.dancing == true && obj_sweet_enemy.endcon == 0)
|
|
290
|
{
|
|
291
|
obj_sweet_enemy.endcon = 1;
|
|
292
|
}
|
|
293
|
else if (obj_sweet_enemy.endcon == 0)
|
|
294
|
{
|
|
295
|
actcon = 0;
|
|
296
|
acting = 0;
|
|
297
|
with (obj_marker)
|
|
298
|
{
|
|
299
|
if (sprite_index == spr_kris_dance || sprite_index == spr_susie_dance || sprite_index == spr_ralsei_dance)
|
|
300
|
{
|
|
301
|
instance_destroy();
|
|
302
|
with (obj_heroparent)
|
|
303
|
{
|
|
304
|
if (image_alpha == 0)
|
|
305
|
{
|
|
306
|
image_alpha = 1;
|
|
307
|
acttimer = 0;
|
|
308
|
state = 0;
|
|
309
|
global.faceaction[myself] = 0;
|
|
310
|
}
|
|
311
|
}
|
|
312
|
}
|
|
313
|
}
|
|
314
|
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();
}
} ();
|
|
315
|
}
|
|
316
|
}
|
|
317
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
318
|
{
|
|
319
|
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;
} ())
|
|
320
|
{
|
|
321
|
if (obj_sweet_enemy.dancing == true && obj_kk_enemy.dancing == true && obj_hatguy_enemy.dancing == true && obj_sweet_enemy.endcon == 0)
|
|
322
|
{
|
|
323
|
obj_sweet_enemy.endcon = 1;
|
|
324
|
}
|
|
325
|
else if (obj_sweet_enemy.endcon == 0)
|
|
326
|
{
|
|
327
|
with (obj_marker)
|
|
328
|
{
|
|
329
|
if (sprite_index == spr_kris_dance || sprite_index == spr_susie_dance || sprite_index == spr_ralsei_dance)
|
|
330
|
{
|
|
331
|
instance_destroy();
|
|
332
|
with (obj_heroparent)
|
|
333
|
{
|
|
334
|
if (image_alpha == 0)
|
|
335
|
{
|
|
336
|
image_alpha = 1;
|
|
337
|
acttimer = 0;
|
|
338
|
state = 0;
|
|
339
|
global.faceaction[myself] = 0;
|
|
340
|
}
|
|
341
|
}
|
|
342
|
}
|
|
343
|
}
|
|
344
|
actconsus = -1;
|
|
345
|
actconral = -1;
|
|
346
|
actcon = 1;
|
|
347
|
}
|
|
348
|
}
|
|
349
|
}
|
|
350
|
}
|
|
351
|
|
|
352
|
enum e__VW
|
|
353
|
{
|
|
354
|
XView,
|
|
355
|
YView,
|
|
356
|
WView,
|
|
357
|
HView,
|
|
358
|
Angle,
|
|
359
|
HBorder,
|
|
360
|
VBorder,
|
|
361
|
HSpeed,
|
|
362
|
VSpeed,
|
|
363
|
Object,
|
|
364
|
Visible,
|
|
365
|
XPort,
|
|
366
|
YPort,
|
|
367
|
WPort,
|
|
368
|
HPort,
|
|
369
|
Camera,
|
|
370
|
SurfaceID
|
|
371
|
}
|