|
1
|
if (global.monster[myself] == 1)
|
|
2
|
{
|
|
3
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk") && talked == 0)
|
|
4
|
{
|
|
5
|
scr_randomtargetscr_randomtarget
function scr_randomtarget()
{
abletotarget = 1;
if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0)
abletotarget = 0;
mytarget = choose(0, 1, 2);
if (abletotarget == 1)
{
while (global.charcantarget[mytarget] == 0)
mytarget = choose(0, 1, 2);
}
else
{
mytarget = 3;
}
global.targeted[mytarget] = 1;
if (global.chapter >= 2 && mytarget != 3)
{
if (global.charcantarget[0])
global.targeted[0] = 1;
if (global.charcantarget[1])
global.targeted[1] = 1;
if (global.charcantarget[2])
global.targeted[2] = 1;
mytarget = 4;
}
} ();
|
|
6
|
myattackchoice = choose(0, 1, 2);
|
|
7
|
myattackpriority = 1;
|
|
8
|
if (myattackchoice == 2)
|
|
9
|
myattackpriority = 50;
|
|
10
|
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);
|
|
11
|
if (!instance_exists(obj_darkener))
|
|
12
|
instance_create(0, 0, obj_darkener);
|
|
13
|
global.typer = 50;
|
|
14
|
rr = choose(0, 1, 2, 3);
|
|
15
|
if (rr == 0)
|
|
16
|
msgsetloc(0, Message A"Message&A", "obj_baseenemy_slash_Step_0_gml_27_0" );
|
|
17
|
if (rr == 1)
|
|
18
|
msgsetloc(0, Message B"Message&B", "obj_baseenemy_slash_Step_0_gml_28_0" );
|
|
19
|
if (rr == 2)
|
|
20
|
msgsetloc(0, Message C"Message&C", "obj_baseenemy_slash_Step_0_gml_29_0" );
|
|
21
|
if (rr == 3)
|
|
22
|
msgsetloc(0, Message D"Message&D", "obj_baseenemy_slash_Step_0_gml_30_0" );
|
|
23
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
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_long;
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;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (x - 160, y, 3);
|
|
24
|
talked = 1;
|
|
25
|
talktimer = 0;
|
|
26
|
rtimer = 0;
|
|
27
|
}
|
|
28
|
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"))
|
|
29
|
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 = 1.5;
}
}
else if (arg0 == -1)
{
if (instance_exists(obj_writer) == false)
global.mnfight = 1.5;
}
else if (arg0 == -2)
{
talktimer += 1;
if (talktimer > 15)
talktimer = talkmax;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 1.5;
}
}
} (15);
|
|
30
|
if (global.mnfight == 1.5)
|
|
31
|
{
|
|
32
|
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))
|
|
33
|
{
|
|
34
|
if (!instance_exists(obj_growtangle))
|
|
35
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
36
|
if (myattackchoice == 2)
|
|
37
|
{
|
|
38
|
with (obj_growtangle)
|
|
39
|
{
|
|
40
|
x = camerax() + 240;
|
|
41
|
maxxscale = 1.5;
|
|
42
|
}
|
|
43
|
}
|
|
44
|
if (!instance_exists(obj_moveheart))
|
|
45
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
46
|
global.mnfight = 2;
|
|
47
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (90);
|
|
48
|
}
|
|
49
|
}
|
|
50
|
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)
|
|
51
|
{
|
|
52
|
rtimer += 1;
|
|
53
|
if (rtimer == 12)
|
|
54
|
{
|
|
55
|
if (myattackchoice == 0)
|
|
56
|
{
|
|
57
|
global.monsterattackname[myself] = "HomingDiamonds";
|
|
58
|
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);
|
|
59
|
dc.type = 0;
|
|
60
|
}
|
|
61
|
else if (myattackchoice == 1)
|
|
62
|
{
|
|
63
|
global.monsterattackname[myself] = "RisingDiamonds";
|
|
64
|
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);
|
|
65
|
dc.type = 1;
|
|
66
|
}
|
|
67
|
else if (myattackchoice == 2)
|
|
68
|
{
|
|
69
|
global.monsterattackname[myself] = "SwordThrow";
|
|
70
|
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);
|
|
71
|
dc.type = 3;
|
|
72
|
}
|
|
73
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (140);
|
|
74
|
turns += 1;
|
|
75
|
global.typer = 6;
|
|
76
|
global.fc = 0;
|
|
77
|
rr = choose(0, 1, 2, 3);
|
|
78
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (random(2)))
|
|
79
|
{
|
|
80
|
var substring = string(myself);
|
|
81
|
if (rr == 0)
|
|
82
|
global.battlemsg[0] = stringsetsubloc("* Placeholder Message A~1.", substring, "obj_baseenemy_slash_Step_0_gml_105_0");
|
|
83
|
if (rr == 1)
|
|
84
|
global.battlemsg[0] = stringsetsubloc("* Placeholder Message B~1.", substring, "obj_baseenemy_slash_Step_0_gml_106_0");
|
|
85
|
if (rr == 2)
|
|
86
|
global.battlemsg[0] = stringsetsubloc("* Placeholder Message C~1.", substring, "obj_baseenemy_slash_Step_0_gml_107_0");
|
|
87
|
if (rr == 3)
|
|
88
|
global.battlemsg[0] = stringsetsubloc("* Placeholder Message D~1.", substring, "obj_baseenemy_slash_Step_0_gml_108_0");
|
|
89
|
}
|
|
90
|
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
|
|
91
|
{
|
|
92
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (100 + random(2)))
|
|
93
|
{
|
|
94
|
var substring = string(myself);
|
|
95
|
global.battlemsg[0] = stringsetsubloc("* Damaged message ~1.", substring, "obj_baseenemy_slash_Step_0_gml_114_0");
|
|
96
|
}
|
|
97
|
}
|
|
98
|
attacked = 1;
|
|
99
|
}
|
|
100
|
}
|
|
101
|
}
|
|
102
|
if (global.myfight == 3)
|
|
103
|
{
|
|
104
|
xx = __view_get(e__VW.XView, 0);
|
|
105
|
yy = __view_get(e__VW.YView, 0);
|
|
106
|
if (acting == 1 && actcon == 0)
|
|
107
|
{
|
|
108
|
actcon = 1;
|
|
109
|
msgsetloc(0, * ENEMY - AT 1 DF 1 * Susceptible to Brainshock.Wait for inputClose Message"* ENEMY - AT 1 DF 1&* Susceptible to Brainshock./%", "obj_baseenemy_slash_Step_0_gml_136_0" );
|
|
110
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
111
|
}
|
|
112
|
if (acting == 2 && actcon == 0)
|
|
113
|
{
|
|
114
|
actcon = 1;
|
|
115
|
if (global.automiss[myself] == 0)
|
|
116
|
{
|
|
117
|
msgsetloc(0, * You warned the enemy.Delay 11 * It guarded from Susie's attack.Wait for inputClose Message"* You warned the enemy^1.&* It guarded from Susie's attack./%", "obj_baseenemy_slash_Step_0_gml_145_0" );
|
|
118
|
global.monstercomment[myself] = "(Warned)";
|
|
119
|
global.automiss[myself] = 1;
|
|
120
|
}
|
|
121
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
122
|
}
|
|
123
|
if (acting == 3 && actcon == 0)
|
|
124
|
{
|
|
125
|
msgsetloc(0, * Its body was filled with a kind feeling.Wait for inputClose Message"* Its body was filled with a kind feeling./%", "obj_baseenemy_slash_Step_0_gml_155_0" );
|
|
126
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 100);
|
|
127
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
128
|
actcon = 1;
|
|
129
|
}
|
|
130
|
if (acting == 4 && actcon == 0)
|
|
131
|
{
|
|
132
|
msgsetloc(0, * Kris's simul act!"* Kris's simul act!", "obj_baseenemy_slash_Step_0_gml_164_0" );
|
|
133
|
if (simultotal == 1)
|
|
134
|
msgsetloc(0, * Kris decided to have a really long message when acting alone."* Kris decided to have a really long message when acting alone.", "obj_baseenemy_slash_Step_0_gml_165_0" );
|
|
135
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 35);
|
|
136
|
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");
|
|
137
|
if (simulorderkri == 0)
|
|
138
|
actcon = 20;
|
|
139
|
else
|
|
140
|
actcon = -1;
|
|
141
|
}
|
|
142
|
if (acting == 5 && actcon == 0)
|
|
143
|
{
|
|
144
|
msgsetloc(0, * Its body will result in a speech after attack.Wait for inputClose Message"* Its body will result in a speech after attack./%", "obj_baseenemy_slash_Step_0_gml_174_0" );
|
|
145
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
146
|
actcon = 1;
|
|
147
|
}
|
|
148
|
if (acting == 6 && actcon == 0)
|
|
149
|
{
|
|
150
|
msgsetloc(0, * Its body became tired.Wait for inputClose Message"* Its body became tired./%", "obj_baseenemy_slash_Step_0_gml_182_0" );
|
|
151
|
scr_monster_make_tiredscr_monster_make_tired
function scr_monster_make_tired(arg0)
{
if (image_alpha > 0)
{
if (global.monsterstatus[arg0] == 0)
{
__tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter);
__tiredwriter.type = 13;
global.hittarget[arg0] += 1;
snd_play_x(snd_spellcast, 0.5, 0.9);
}
global.monstercomment[arg0] = stringsetloc((Tired)"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0" );
global.monsterstatus[arg0] = 1;
}
} (myself);
|
|
152
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
153
|
actcon = 1;
|
|
154
|
}
|
|
155
|
if (actingsus == 1 && actconsus == 1)
|
|
156
|
{
|
|
157
|
msgsetloc(0, * Susie's unique act A!.Wait for inputClose Message"* Susie's unique act A!./%", "obj_baseenemy_slash_Step_0_gml_190_0" );
|
|
158
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 35);
|
|
159
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
160
|
actcon = 1;
|
|
161
|
actconsus = 0;
|
|
162
|
}
|
|
163
|
if (actingsus == 2 && actconsus == 1)
|
|
164
|
{
|
|
165
|
msgsetloc(0, * Susie's simul act!"* Susie's simul act!", "obj_baseenemy_slash_Step_0_gml_199_0" );
|
|
166
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 35);
|
|
167
|
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");
|
|
168
|
if (simulordersus == 0)
|
|
169
|
actconsus = 20;
|
|
170
|
else
|
|
171
|
actconsus = 0;
|
|
172
|
}
|
|
173
|
if (actingral == 1 && actconral == 1)
|
|
174
|
{
|
|
175
|
msgsetloc(0, * Ralsei's unique act A!.Wait for inputClose Message"* Ralsei's unique act A!./%", "obj_baseenemy_slash_Step_0_gml_208_0" );
|
|
176
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 35);
|
|
177
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
178
|
actcon = 1;
|
|
179
|
actconral = 0;
|
|
180
|
}
|
|
181
|
if (actingral == 2 && actconral == 1)
|
|
182
|
{
|
|
183
|
msgsetloc(0, * Ralsei's simul act!"* Ralsei's simul act!", "obj_baseenemy_slash_Step_0_gml_217_0" );
|
|
184
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 35);
|
|
185
|
scr_simultextscr_simultext
function scr_simultext(arg0)
{
__simulorder = 0;
if (arg0 == "kris")
__simulorder = simulorderkri;
if (arg0 == "susie")
__simulorder = simulordersus;
if (arg0 == "ralsei")
__simulorder = simulorderral;
if (arg0 == "noelle")
__simulorder = simulordernoe;
__yoffset = __simulorder * 30;
global.typer = 4;
battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer);
} ("ralsei");
|
|
186
|
if (simulorderral == 0)
|
|
187
|
actconral = 20;
|
|
188
|
else
|
|
189
|
actconral = 0;
|
|
190
|
}
|
|
191
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
192
|
{
|
|
193
|
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;
} ())
|
|
194
|
{
|
|
195
|
actconsus = -1;
|
|
196
|
actconral = -1;
|
|
197
|
actcon = 1;
|
|
198
|
}
|
|
199
|
}
|
|
200
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
201
|
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();
}
} ();
|
|
202
|
}
|
|
203
|
if (state == 3)
|
|
204
|
{
|
|
205
|
scr_enemyhurt_tired_after_damagescr_enemyhurt_tired_after_damage
function scr_enemyhurt_tired_after_damage(arg0)
{
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] * arg0))
scr_monster_make_tired(myself);
} (0.5);
|
|
206
|
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;
}
}
} ();
|
|
207
|
}
|
|
208
|
|
|
209
|
enum e__VW
|
|
210
|
{
|
|
211
|
XView,
|
|
212
|
YView,
|
|
213
|
WView,
|
|
214
|
HView,
|
|
215
|
Angle,
|
|
216
|
HBorder,
|
|
217
|
VBorder,
|
|
218
|
HSpeed,
|
|
219
|
VSpeed,
|
|
220
|
Object,
|
|
221
|
Visible,
|
|
222
|
XPort,
|
|
223
|
YPort,
|
|
224
|
WPort,
|
|
225
|
HPort,
|
|
226
|
Camera,
|
|
227
|
SurfaceID
|
|
228
|
}
|