|
1
|
if (global.monster[myself] == 1)
|
|
2
|
{
|
|
3
|
if (!done_intro)
|
|
4
|
global.charturn = 3;
|
|
5
|
if (global.mnfight == 0 && !done_intro)
|
|
6
|
{
|
|
7
|
msgset_add_func(function()
|
|
8
|
{
|
|
9
|
talked = -1;
|
|
10
|
scr_var_delayscr_var_delay
function scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_var_delayed(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_delay_var(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_delay_var_until(arg0, arg1, arg2)
{
scr_script_delayed_until(scr_var, arg2, arg0, arg1);
} ("talked", 1, 10);
|
|
11
|
});
|
|
12
|
msgset_add(stringsetloc(That's it, CRIMINELLS! No more MERCYS!!Wait for inputClose Message"That's it,&CRIMINELLS!&No more MERCYS!!/%", "obj_blue_enemy_slash_Step_0_gml_13_0" ), obj_yellow_enemy.x - 20, obj_yellow_enemy.y + 35, 10, 50, function()
|
|
13
|
{
|
|
14
|
obj_yellow_enemy.idlesprite = spr_yellow_point_left;
|
|
15
|
obj_yellow_enemy.x -= 28;
|
|
16
|
});
|
|
17
|
msgset_add(stringsetloc(EVERY CRIMES in our CASTLE!!Wait for inputClose Message"EVERY CRIMES in&our CASTLE!!/%", "obj_blue_enemy_slash_Step_0_gml_17_0" ), obj_yellow_enemy.x - 20, obj_yellow_enemy.y + 35, 10, 50);
|
|
18
|
msgset_add(stringsetloc(I know they was ALL YOU!!! Now eat JUSTICE!!!Wait for inputClose Message"I know they was&ALL YOU!!!&Now eat JUSTICE!!!/%", "obj_blue_enemy_slash_Step_0_gml_18_0" ), obj_yellow_enemy.x - 20, obj_yellow_enemy.y + 35, 10, 50);
|
|
19
|
msgset_add(stringsetloc(O,Delay 11 you three! If you'd like to survive your punishment...Wait for inputClose Message"O^1, you three!&If you'd like to&survive your&punishment.../%", "obj_blue_enemy_slash_Step_0_gml_19_0" ), x + 10, y + 35, 10, 50, function()
|
|
20
|
{
|
|
21
|
obj_yellow_enemy.idlesprite = spr_yellow_idle;
|
|
22
|
obj_yellow_enemy.x += 28;
|
|
23
|
});
|
|
24
|
msgset_add(stringsetloc(Find the TRUE culprit of 4 UNSOLVED CASES.Wait for inputClose Message"Find the TRUE&culprit of 4&UNSOLVED CASES./%", "obj_blue_enemy_slash_Step_0_gml_23_0" ), x + 10, y + 35, 10, 50);
|
|
25
|
msgset_add(stringsetloc(Yellow's "JUSTICE" ACT will begin each trial.Wait for inputClose Message"Yellow's \"JUSTICE\"&ACT will begin&each trial./%", "obj_blue_enemy_slash_Step_0_gml_24_0" ), x + 10, y + 35, 10, 50);
|
|
26
|
msgset_add(stringsetloc(...Delay 11 and if you lack EVIDENCE, please ACT on me. Hoho.Wait for inputClose Message"..^1. and if you&lack EVIDENCE,&please ACT on me.&Hoho./%", "obj_blue_enemy_slash_Step_0_gml_25_0" ), x + 10, y + 35, 10, 50);
|
|
27
|
msgset_add_func(function()
|
|
28
|
{
|
|
29
|
obj_battlecontroller.alarm[2] = 1;
|
|
30
|
done_intro = true;
|
|
31
|
global.charturn = 0;
|
|
32
|
});
|
|
33
|
blue_balloon();
|
|
34
|
rtimer = 0;
|
|
35
|
global.mnfight = 1.25;
|
|
36
|
}
|
|
37
|
if (global.mnfight == 1.25)
|
|
38
|
{
|
|
39
|
if (talked == 1 && cantalk)
|
|
40
|
scr_blconskip_bossscr_blconskip_boss
function scr_blconskip_boss(arg0)
{
if (arg0 >= 0)
{
talktimer++;
if ((button3_p() && talktimer > arg0) || !instance_exists(obj_writer))
{
with (obj_writer)
instance_destroy();
if (i_ex(obj_balloon_queue))
msgset_fromqueue();
else
global.mnfight = 1.5;
}
}
else if (arg0 == -1)
{
if (!instance_exists(obj_writer))
{
if (i_ex(obj_balloon_queue))
msgset_fromqueue();
else
global.mnfight = 1.5;
}
}
else if (arg0 == -2)
{
talktimer++;
if (talktimer > 15)
talktimer = talkmax;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
if (i_ex(obj_balloon_queue))
msgset_fromqueue();
else
global.mnfight = 1.5;
}
}
} (15);
|
|
41
|
exit;
|
|
42
|
}
|
|
43
|
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)
|
|
44
|
{
|
|
45
|
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;
}
} ();
|
|
46
|
setbattlemsg = false;
|
|
47
|
event_user(1);
|
|
48
|
myattackpriority = 1;
|
|
49
|
scr_attackpriorityscr_attackpriority
function scr_attackpriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.attackpriority < arg0)
{
obj_battlecontroller.attackpriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (myattackpriority - 1);
|
|
50
|
if (!instance_exists(obj_darkener))
|
|
51
|
instance_create(0, 0, obj_darkener);
|
|
52
|
var synch_var;
|
|
53
|
with (obj_yellow_enemy)
|
|
54
|
synch_var = talk_var;
|
|
55
|
if (synch_var == 0)
|
|
56
|
msgset_add(stringsetloc(Innocent until proven guilty.Wait for inputClose Message"Innocent until&proven guilty./%", "obj_blue_enemy_slash_Step_0_gml_70_0" ), x + 5, y + 35, 10, 50);
|
|
57
|
if (synch_var == 1)
|
|
58
|
msgset_add(stringsetloc(Justice is blind.Wait for inputClose Message"Justice is blind./%", "obj_blue_enemy_slash_Step_0_gml_71_0" ), x + 5, y + 35, 10, 50);
|
|
59
|
if (synch_var == 2)
|
|
60
|
msgset_add(stringsetloc(We only seek... to find the truth.Wait for inputClose Message"We only seek...&to find the truth./%", "obj_blue_enemy_slash_Step_0_gml_72_0" ), x + 5, y + 35, 10, 50);
|
|
61
|
if (synch_var == 3)
|
|
62
|
msgset_add(stringsetloc(Who revolves - the world,Delay 11 or I?Wait for inputClose Message"Who revolves -&the world^1, or I?/%", "obj_blue_enemy_slash_Step_0_gml_73_0" ), x + 5, y + 35, 10, 50);
|
|
63
|
if (synch_var == 4)
|
|
64
|
msgset_add(stringsetloc(Hmm...Delay 11 a flower- pressing item...Wait for inputClose Message"Hmm..^1. a flower-&pressing item.../%", "obj_blue_enemy_slash_Step_0_gml_76_0" ), x + 5, y + 35, 10, 50);
|
|
65
|
if (synch_var == 5)
|
|
66
|
msgset_add(stringsetloc(The yellow cloth... Could it have been burnt?Wait for inputClose Message"The yellow cloth...&Could it have&been burnt?/%", "obj_blue_enemy_slash_Step_0_gml_77_0" ), x + 5, y + 35, 10, 50);
|
|
67
|
if (synch_var == 6)
|
|
68
|
msgset_add(stringsetloc(Hmm...Delay 11 if she used red food coloring...Wait for inputClose Message"Hmm..^1. if she&used red food&coloring.../%", "obj_blue_enemy_slash_Step_0_gml_78_0" ), x + 5, y + 35, 10, 50);
|
|
69
|
if (synch_var == 7)
|
|
70
|
msgset_add(stringsetloc(...Wait for inputClose Message".../%", "obj_blue_enemy_slash_Step_0_gml_79_0" ), x + 5, y + 35, 10, 50);
|
|
71
|
if (synch_var == 8)
|
|
72
|
msgset_add(stringsetloc(...Delay 11 they did WANT to be smashed.Wait for inputClose Message"..^1. they did&WANT to be&smashed./%", "obj_blue_enemy_slash_Step_0_gml_81_0" ), x + 5, y + 35, 10, 50);
|
|
73
|
if (synch_var == 9)
|
|
74
|
msgset_add(stringsetloc(...Delay 11 any regrets, Yellow?Wait for inputClose Message"..^1. any regrets,&Yellow?/%", "obj_blue_enemy_slash_Step_0_gml_82_0" ), x + 5, y + 35, 10, 50);
|
|
75
|
if (synch_var == 10)
|
|
76
|
msgset_add(stringsetloc(So that hole's red splatter was food coloring!Wait for inputClose Message"So that hole's&red splatter was&food coloring!/%", "obj_blue_enemy_slash_Step_0_gml_83_0" ), x + 5, y + 35, 10, 50);
|
|
77
|
blue_balloon();
|
|
78
|
}
|
|
79
|
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"))
|
|
80
|
scr_blconskip_bossscr_blconskip_boss
function scr_blconskip_boss(arg0)
{
if (arg0 >= 0)
{
talktimer++;
if ((button3_p() && talktimer > arg0) || !instance_exists(obj_writer))
{
with (obj_writer)
instance_destroy();
if (i_ex(obj_balloon_queue))
msgset_fromqueue();
else
global.mnfight = 1.5;
}
}
else if (arg0 == -1)
{
if (!instance_exists(obj_writer))
{
if (i_ex(obj_balloon_queue))
msgset_fromqueue();
else
global.mnfight = 1.5;
}
}
else if (arg0 == -2)
{
talktimer++;
if (talktimer > 15)
talktimer = talkmax;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
if (i_ex(obj_balloon_queue))
msgset_fromqueue();
else
global.mnfight = 1.5;
}
}
} (15);
|
|
81
|
if (global.mnfight == 1.5)
|
|
82
|
{
|
|
83
|
if (scr_attackpriorityscr_attackpriority
function scr_attackpriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.attackpriority < arg0)
{
obj_battlecontroller.attackpriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (myattackpriority))
|
|
84
|
{
|
|
85
|
if (i_ex(obj_yellow_enemy) && global.monsterhp[obj_yellow_enemy.myself] < (global.monstermaxhp[obj_yellow_enemy.myself] * 0.5) && obj_yellow_enemy.healingraincon == 0)
|
|
86
|
obj_yellow_enemy.healingraincon = 1;
|
|
87
|
else if (!instance_exists(obj_growtangle))
|
|
88
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
89
|
if (myattackchoice == 0)
|
|
90
|
{
|
|
91
|
with (obj_growtangle)
|
|
92
|
{
|
|
93
|
x -= 50;
|
|
94
|
with (obj_heart)
|
|
95
|
x -= 50;
|
|
96
|
}
|
|
97
|
}
|
|
98
|
if (myattackchoice == 1)
|
|
99
|
{
|
|
100
|
with (obj_growtangle)
|
|
101
|
{
|
|
102
|
maxxscale = 3.5;
|
|
103
|
y += 48;
|
|
104
|
}
|
|
105
|
}
|
|
106
|
if (myattackchoice == 2)
|
|
107
|
{
|
|
108
|
with (obj_growtangle)
|
|
109
|
{
|
|
110
|
x -= 50;
|
|
111
|
maxxscale = 3;
|
|
112
|
}
|
|
113
|
}
|
|
114
|
if (myattackchoice == 3)
|
|
115
|
{
|
|
116
|
with (obj_growtangle)
|
|
117
|
maxxscale = 3;
|
|
118
|
}
|
|
119
|
if (!instance_exists(obj_moveheart) && obj_yellow_enemy.healingraincon == 0)
|
|
120
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
121
|
global.mnfight = 2;
|
|
122
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (90);
|
|
123
|
}
|
|
124
|
}
|
|
125
|
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)
|
|
126
|
{
|
|
127
|
rtimer++;
|
|
128
|
if (rtimer == 12 && i_ex(obj_yellow_enemy) && obj_yellow_enemy.healingraincon == 0)
|
|
129
|
{
|
|
130
|
if (myattackchoice == 0)
|
|
131
|
{
|
|
132
|
global.monsterattackname[myself] = "GuidedBullet";
|
|
133
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
134
|
dc.type = 301;
|
|
135
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (300);
|
|
136
|
}
|
|
137
|
if (myattackchoice == 1)
|
|
138
|
{
|
|
139
|
global.monsterattackname[myself] = "Dancers";
|
|
140
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
141
|
dc.type = 302;
|
|
142
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (270);
|
|
143
|
}
|
|
144
|
if (myattackchoice == 2)
|
|
145
|
{
|
|
146
|
global.monsterattackname[myself] = "ShootingGallery";
|
|
147
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
148
|
dc.type = 303;
|
|
149
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (225);
|
|
150
|
}
|
|
151
|
if (myattackchoice == 3)
|
|
152
|
{
|
|
153
|
global.monsterattackname[myself] = "BlueSinging";
|
|
154
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
155
|
dc.type = 304;
|
|
156
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (300);
|
|
157
|
}
|
|
158
|
turns++;
|
|
159
|
attacked = 1;
|
|
160
|
}
|
|
161
|
}
|
|
162
|
}
|
|
163
|
if (global.myfight == 3)
|
|
164
|
{
|
|
165
|
xx = __view_get(e__VW.XView, 0);
|
|
166
|
yy = __view_get(e__VW.YView, 0);
|
|
167
|
if (acting == 1 && actcon == 0)
|
|
168
|
{
|
|
169
|
actcon = 0.1;
|
|
170
|
msgsetloc(0, * You searched out evidence!Wait for inputClose Message"* You searched out evidence!/%", "obj_blue_enemy_slash_Step_0_gml_209_0" );
|
|
171
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("kris");
|
|
172
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("susie");
|
|
173
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("ralsei");
|
|
174
|
scr_battletextscr_battletext
function scr_battletext()
{
xx = camerax();
yy = cameray();
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;
} ();
|
|
175
|
}
|
|
176
|
if (acting == 2 && actcon == 0)
|
|
177
|
{
|
|
178
|
actcon = 0.3;
|
|
179
|
msgsetloc(0, * You asked for help...!Wait for inputClose Message"* You asked for help...!/%", "obj_blue_enemy_slash_Step_0_gml_242_0" );
|
|
180
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("kris");
|
|
181
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("susie");
|
|
182
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("ralsei");
|
|
183
|
scr_battletextscr_battletext
function scr_battletext()
{
xx = camerax();
yy = cameray();
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;
} ();
|
|
184
|
}
|
|
185
|
if (actcon == 0.1)
|
|
186
|
{
|
|
187
|
if (!i_ex(obj_writer))
|
|
188
|
{
|
|
189
|
actcon = 0.11;
|
|
190
|
var all_evident = true;
|
|
191
|
for (var a = 0; a < 7; a++)
|
|
192
|
{
|
|
193
|
if (!obj_yellow_enemy.evidence_obtained[a])
|
|
194
|
all_evident = false;
|
|
195
|
}
|
|
196
|
if (all_evident)
|
|
197
|
{
|
|
198
|
global.typer = 6;
|
|
199
|
msgset(0, blue_evidence_4);
|
|
200
|
scr_battletextscr_battletext
function scr_battletext()
{
xx = camerax();
yy = cameray();
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;
} ();
|
|
201
|
msgset_add_func(function()
|
|
202
|
{
|
|
203
|
actcon = 0.5;
|
|
204
|
});
|
|
205
|
}
|
|
206
|
else
|
|
207
|
{
|
|
208
|
idlesprite = spr_blue_poses;
|
|
209
|
image_index = 0;
|
|
210
|
image_speed = 0;
|
|
211
|
msgset_add(blue_evidence_1, x - 30, y + 55, 10, 50);
|
|
212
|
msgset_add(blue_evidence_2, x - 30, y + 55, 10, 50);
|
|
213
|
msgset_add_func(function()
|
|
214
|
{
|
|
215
|
snd_play(snd_item);
|
|
216
|
with (obj_yellow_enemy)
|
|
217
|
gain_evidence();
|
|
218
|
global.typer = 6;
|
|
219
|
msgset(0, blue_evidence_3);
|
|
220
|
scr_battletextscr_battletext
function scr_battletext()
{
xx = camerax();
yy = cameray();
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;
} ();
|
|
221
|
});
|
|
222
|
msgset_add_func(function()
|
|
223
|
{
|
|
224
|
actcon = 0.5;
|
|
225
|
});
|
|
226
|
}
|
|
227
|
blue_balloon();
|
|
228
|
}
|
|
229
|
}
|
|
230
|
if (actcon == 0.2)
|
|
231
|
{
|
|
232
|
if (!i_ex(obj_writer))
|
|
233
|
{
|
|
234
|
actcon = 0.11;
|
|
235
|
give_hint();
|
|
236
|
blue_balloon();
|
|
237
|
}
|
|
238
|
}
|
|
239
|
if (actcon == 0.11)
|
|
240
|
{
|
|
241
|
if (!i_ex(obj_writer))
|
|
242
|
blue_balloon();
|
|
243
|
}
|
|
244
|
if (actcon == 0.3)
|
|
245
|
{
|
|
246
|
if (!i_ex(obj_writer))
|
|
247
|
{
|
|
248
|
if (global.hp[2] <= 0 || global.hp[3] <= 0)
|
|
249
|
{
|
|
250
|
msgsetloc(0, * BLUE took pity on the party!Wait for inputClose Message"* BLUE took pity on the party!/%", "obj_blue_enemy_slash_Step_0_gml_320_0" );
|
|
251
|
actcon = 0.399;
|
|
252
|
}
|
|
253
|
else
|
|
254
|
{
|
|
255
|
msgsetloc(0, * ...Delay 11 but,Delay 11 no party member was DOWNED.Wait for inputClose Message"* ..^1. but^1, no party member was DOWNED./%", "obj_blue_enemy_slash_Step_0_gml_325_0" );
|
|
256
|
actcon = 0.5;
|
|
257
|
}
|
|
258
|
scr_battletextscr_battletext
function scr_battletext()
{
xx = camerax();
yy = cameray();
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;
} ();
|
|
259
|
}
|
|
260
|
}
|
|
261
|
if (actcon == 0.399)
|
|
262
|
{
|
|
263
|
if (!i_ex(obj_writer))
|
|
264
|
{
|
|
265
|
actcon = 0.3995;
|
|
266
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
}
function scr_script_delayed_until()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed_function);
__scriptdelay.script = argument[0];
__scriptdelay.condition = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
}
function delay_function(arg0, arg1)
{
return scr_script_delayed(arg0, arg1);
} (function()
|
|
267
|
{
|
|
268
|
actcon = 0.4;
|
|
269
|
}, 30);
|
|
270
|
snd_play(snd_rain_short);
|
|
271
|
if (global.hp[2] <= 0)
|
|
272
|
{
|
|
273
|
with (global.charinstance[1])
|
|
274
|
{
|
|
275
|
with (instance_create(x + 34, y, obj_bulletparent))
|
|
276
|
{
|
|
277
|
depth = -520;
|
|
278
|
sprite_index = spr_blue_cloud_rain;
|
|
279
|
image_speed = 1;
|
|
280
|
}
|
|
281
|
}
|
|
282
|
}
|
|
283
|
if (global.hp[3] <= 0)
|
|
284
|
{
|
|
285
|
with (global.charinstance[2])
|
|
286
|
{
|
|
287
|
with (instance_create(x + 34, y, obj_bulletparent))
|
|
288
|
{
|
|
289
|
depth = -530;
|
|
290
|
sprite_index = spr_blue_cloud_rain;
|
|
291
|
image_speed = 1;
|
|
292
|
}
|
|
293
|
}
|
|
294
|
}
|
|
295
|
}
|
|
296
|
}
|
|
297
|
if (actcon == 0.4)
|
|
298
|
{
|
|
299
|
if (!i_ex(obj_writer))
|
|
300
|
{
|
|
301
|
with (obj_bulletparent)
|
|
302
|
{
|
|
303
|
if (sprite_index == spr_blue_cloud_rain)
|
|
304
|
instance_destroy();
|
|
305
|
}
|
|
306
|
snd_stop(snd_rain_short);
|
|
307
|
actcon = 0.5;
|
|
308
|
if (global.hp[2] <= 0)
|
|
309
|
{
|
|
310
|
with (global.charinstance[1])
|
|
311
|
{
|
|
312
|
var dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
if (tu < -1)
tu = -1;
return instance_create(x, (y + myheight) - 40 - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
313
|
with (dmgwr)
|
|
314
|
{
|
|
315
|
delay = 1;
|
|
316
|
type = 3;
|
|
317
|
}
|
|
318
|
dmgwr.damage = -global.hp[2] + 60;
|
|
319
|
scr_healscr_heal
function scr_heal(arg0, arg1, arg2 = true)
{
abovemaxhp = 0;
belowzero = 0;
hltarget = global.char[arg0];
_curhp = global.hp[hltarget];
if (global.hp[hltarget] <= 0)
belowzero = 1;
if (global.hp[hltarget] > global.maxhp[hltarget])
abovemaxhp = 1;
if (abovemaxhp == 0)
{
global.hp[hltarget] += arg1;
if (global.hp[hltarget] > global.maxhp[hltarget])
global.hp[hltarget] = global.maxhp[hltarget];
}
if (belowzero == 1 && global.hp[hltarget] >= 0 && arg2)
{
if (global.hp[hltarget] < ceil(global.maxhp[hltarget] / 6))
global.hp[hltarget] = ceil(global.maxhp[hltarget] / 6);
scr_revive(arg0);
}
snd_stop(snd_power);
snd_play(snd_power);
return global.hp[hltarget] - _curhp;
} (1, -global.hp[2] + 60, false);
|
|
320
|
scr_revivescr_revive
function scr_revive(arg0)
{
global.charmove[arg0] = 1;
global.charcantarget[arg0] = 1;
global.chardead[arg0] = 0;
} (1);
|
|
321
|
var _flash = scr_oflashscr_oflash
function scr_oflash()
{
_oflash = instance_create(x, y, obj_oflash);
_oflash.image_xscale = image_xscale;
_oflash.image_speed = 0;
_oflash.image_angle = image_angle;
_oflash.image_index = image_index;
_oflash.image_yscale = image_yscale;
_oflash.sprite_index = sprite_index;
_oflash.depth = depth - 1;
_oflash.target = id;
return _oflash;
} ();
|
|
322
|
_flash.depth = depth - 1;
|
|
323
|
}
|
|
324
|
}
|
|
325
|
if (global.hp[3] <= 0)
|
|
326
|
{
|
|
327
|
with (global.charinstance[2])
|
|
328
|
{
|
|
329
|
var dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
if (tu < -1)
tu = -1;
return instance_create(x, (y + myheight) - 40 - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
330
|
with (dmgwr)
|
|
331
|
{
|
|
332
|
delay = 1;
|
|
333
|
type = 3;
|
|
334
|
}
|
|
335
|
dmgwr.damage = -global.hp[3] + 60;
|
|
336
|
scr_healscr_heal
function scr_heal(arg0, arg1, arg2 = true)
{
abovemaxhp = 0;
belowzero = 0;
hltarget = global.char[arg0];
_curhp = global.hp[hltarget];
if (global.hp[hltarget] <= 0)
belowzero = 1;
if (global.hp[hltarget] > global.maxhp[hltarget])
abovemaxhp = 1;
if (abovemaxhp == 0)
{
global.hp[hltarget] += arg1;
if (global.hp[hltarget] > global.maxhp[hltarget])
global.hp[hltarget] = global.maxhp[hltarget];
}
if (belowzero == 1 && global.hp[hltarget] >= 0 && arg2)
{
if (global.hp[hltarget] < ceil(global.maxhp[hltarget] / 6))
global.hp[hltarget] = ceil(global.maxhp[hltarget] / 6);
scr_revive(arg0);
}
snd_stop(snd_power);
snd_play(snd_power);
return global.hp[hltarget] - _curhp;
} (2, -global.hp[3] + 60, false);
|
|
337
|
scr_revivescr_revive
function scr_revive(arg0)
{
global.charmove[arg0] = 1;
global.charcantarget[arg0] = 1;
global.chardead[arg0] = 0;
} (2);
|
|
338
|
var _flash = scr_oflashscr_oflash
function scr_oflash()
{
_oflash = instance_create(x, y, obj_oflash);
_oflash.image_xscale = image_xscale;
_oflash.image_speed = 0;
_oflash.image_angle = image_angle;
_oflash.image_index = image_index;
_oflash.image_yscale = image_yscale;
_oflash.sprite_index = sprite_index;
_oflash.depth = depth - 1;
_oflash.target = id;
return _oflash;
} ();
|
|
339
|
_flash.depth = depth - 1;
|
|
340
|
}
|
|
341
|
}
|
|
342
|
scr_tensionhealscr_tensionheal
function scr_tensionheal(arg0)
{
global.tension += arg0;
if (global.tension > global.maxtension)
global.tension = global.maxtension;
if (global.chapter == 5 && i_ex(obj_tensionbar) && global.tension > obj_tensionbar.maxtensionlimit)
global.tension = obj_tensionbar.maxtensionlimit;
} (-global.tension * 0.5);
|
|
343
|
msgsetloc(0, * Everyone was revived!Wait for input"* Everyone was revived!/", "obj_blue_enemy_slash_Step_0_gml_412_0" );
|
|
344
|
msgsetloc(1, * TP was halved!Wait for inputClose Message"* TP was halved!/%", "obj_blue_enemy_slash_Step_0_gml_413_0" );
|
|
345
|
scr_battletextscr_battletext
function scr_battletext()
{
xx = camerax();
yy = cameray();
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;
} ();
|
|
346
|
}
|
|
347
|
}
|
|
348
|
if (actcon == 0.5)
|
|
349
|
{
|
|
350
|
if (!i_ex(obj_writer))
|
|
351
|
{
|
|
352
|
image_speed = 0.16666666666666666;
|
|
353
|
idlesprite = spr_enemy_blue_ballet;
|
|
354
|
hurtsprite = spr_enemy_blue_ballet;
|
|
355
|
sparedsprite = spr_enemy_blue_ballet;
|
|
356
|
talked = 0;
|
|
357
|
actcon = 1;
|
|
358
|
}
|
|
359
|
}
|
|
360
|
if (actingsus == 1 && actconsus == 1)
|
|
361
|
{
|
|
362
|
snd_play_x(snd_mercyadd, 0.8, 1);
|
|
363
|
scr_tensionhealscr_tensionheal
function scr_tensionheal(arg0)
{
global.tension += arg0;
if (global.tension > global.maxtension)
global.tension = global.maxtension;
if (global.chapter == 5 && i_ex(obj_tensionbar) && global.tension > obj_tensionbar.maxtensionlimit)
global.tension = obj_tensionbar.maxtensionlimit;
} (60);
|
|
364
|
var susiesim1 = stringsetloc(* Susie gathers red herrings!"* Susie gathers red herrings!", "obj_blue_enemy_slash_Step_0_gml_436_0" );
|
|
365
|
var susiesim2 = stringsetloc(* Susie objects!"* Susie objects!", "obj_blue_enemy_slash_Step_0_gml_437_0" );
|
|
366
|
var simchoice;
|
|
367
|
if (irandom(1))
|
|
368
|
{
|
|
369
|
simchoice = susiesim1;
|
|
370
|
if (global.lang == "ja")
|
|
371
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
if (arg3 == -1)
maxframes = -1;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_lawyer, 0.16666666666666666, true);
|
|
372
|
else
|
|
373
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
if (arg3 == -1)
maxframes = -1;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_lawyer_herring, 0.16666666666666666, true);
|
|
374
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("susie");
|
|
375
|
}
|
|
376
|
else
|
|
377
|
{
|
|
378
|
simchoice = susiesim2;
|
|
379
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
if (arg3 == -1)
maxframes = -1;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_lawyer, 0.16666666666666666, true);
|
|
380
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("susie");
|
|
381
|
}
|
|
382
|
if (simulcheck || simultotal == 1)
|
|
383
|
{
|
|
384
|
msgset(0, help_out_3);
|
|
385
|
global.typer = 4;
|
|
386
|
battlewriter = instance_create(xx + 30, yy + 376 + (simultotal * 30), obj_writer);
|
|
387
|
}
|
|
388
|
simulcheck = true;
|
|
389
|
msgset(0, simchoice);
|
|
390
|
if (simultotal == 1)
|
|
391
|
{
|
|
392
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
393
|
actconsus = 20;
|
|
394
|
}
|
|
395
|
else
|
|
396
|
{
|
|
397
|
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");
|
|
398
|
if (simulordersus == 0)
|
|
399
|
actconsus = 20;
|
|
400
|
else
|
|
401
|
actconsus = 0;
|
|
402
|
}
|
|
403
|
}
|
|
404
|
if (actingral == 1 && actconral == 1)
|
|
405
|
{
|
|
406
|
snd_play_x(snd_mercyadd, 0.8, 1);
|
|
407
|
scr_tensionhealscr_tensionheal
function scr_tensionheal(arg0)
{
global.tension += arg0;
if (global.tension > global.maxtension)
global.tension = global.maxtension;
if (global.chapter == 5 && i_ex(obj_tensionbar) && global.tension > obj_tensionbar.maxtensionlimit)
global.tension = obj_tensionbar.maxtensionlimit;
} (60);
|
|
408
|
var ralseisim1 = stringsetloc(* Ralsei uses clairvoyance!"* Ralsei uses clairvoyance!", "obj_blue_enemy_slash_Step_0_gml_487_0" );
|
|
409
|
var ralseisim2 = stringsetloc(* Ralsei draws court sketches!"* Ralsei draws court sketches!", "obj_blue_enemy_slash_Step_0_gml_488_0" );
|
|
410
|
var simchoice;
|
|
411
|
if (irandom(1))
|
|
412
|
{
|
|
413
|
simchoice = ralseisim1;
|
|
414
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
if (arg3 == -1)
maxframes = -1;
global.faceaction[myself] = 0;
}
}
} ("ralsei", spr_ralsei_lawyer_psychic, 0.16666666666666666, true);
|
|
415
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("ralsei");
|
|
416
|
}
|
|
417
|
else
|
|
418
|
{
|
|
419
|
simchoice = ralseisim2;
|
|
420
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
if (arg3 == -1)
maxframes = -1;
global.faceaction[myself] = 0;
}
}
} ("ralsei", spr_ralsei_lawyer_psychic, 0.16666666666666666, true);
|
|
421
|
scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
scr_oflash();
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;
}
}
} ("ralsei");
|
|
422
|
}
|
|
423
|
if (simulcheck || simultotal == 1)
|
|
424
|
{
|
|
425
|
msgset(0, help_out_3);
|
|
426
|
global.typer = 4;
|
|
427
|
battlewriter = instance_create(xx + 30, yy + 376 + (simultotal * 30), obj_writer);
|
|
428
|
}
|
|
429
|
simulcheck = true;
|
|
430
|
msgset(0, simchoice);
|
|
431
|
if (simultotal == 1)
|
|
432
|
{
|
|
433
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
434
|
actconral = 20;
|
|
435
|
}
|
|
436
|
else
|
|
437
|
{
|
|
438
|
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");
|
|
439
|
if (simulorderral == 0)
|
|
440
|
actconral = 20;
|
|
441
|
else
|
|
442
|
actconral = 0;
|
|
443
|
}
|
|
444
|
}
|
|
445
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
446
|
{
|
|
447
|
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;
} ())
|
|
448
|
{
|
|
449
|
actconsus = -1;
|
|
450
|
actconral = -1;
|
|
451
|
actcon = 1;
|
|
452
|
simulcheck = false;
|
|
453
|
scr_battle_sprite_resetscr_battle_sprite_reset
function scr_battle_sprite_reset(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 0;
hurt = 0;
attacktimer = 0;
attacked = 0;
global.faceaction[myself] = 0;
}
}
} ("susie");
|
|
454
|
scr_battle_sprite_resetscr_battle_sprite_reset
function scr_battle_sprite_reset(arg0)
{
_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;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 0;
hurt = 0;
attacktimer = 0;
attacked = 0;
global.faceaction[myself] = 0;
}
}
} ("ralsei");
|
|
455
|
}
|
|
456
|
}
|
|
457
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
458
|
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();
}
} ();
|
|
459
|
}
|
|
460
|
if (state == 3)
|
|
461
|
scr_enemy_hurtscr_enemy_hurt
function scr_enemy_hurt()
{
hurttimer -= 1;
if (hurttimer < 0)
{
state = 0;
}
else
{
if (global.monster[myself] == 0)
scr_defeatrun();
hurtshake += 1;
if (hurtshake > 1)
{
if (shakex > 0)
shakex -= 1;
if (shakex < 0)
shakex += 1;
shakex = -shakex;
hurtshake = 0;
}
}
} ();
|
|
462
|
|
|
463
|
enum e__VW
|
|
464
|
{
|
|
465
|
XView,
|
|
466
|
YView,
|
|
467
|
WView,
|
|
468
|
HView,
|
|
469
|
Angle,
|
|
470
|
HBorder,
|
|
471
|
VBorder,
|
|
472
|
HSpeed,
|
|
473
|
VSpeed,
|
|
474
|
Object,
|
|
475
|
Visible,
|
|
476
|
XPort,
|
|
477
|
YPort,
|
|
478
|
WPort,
|
|
479
|
HPort,
|
|
480
|
Camera,
|
|
481
|
SurfaceID
|
|
482
|
}
|