|
1
|
if (oopsallacts == 1)
|
|
2
|
{
|
|
3
|
with (obj_rouxls_ch3_enemy)
|
|
4
|
dancecon = 1;
|
|
5
|
if (spadebuttonenabled == true)
|
|
6
|
{
|
|
7
|
selnoise = 0;
|
|
8
|
if (obj_rouxls_ch3_enemy.phase == 1)
|
|
9
|
{
|
|
10
|
if ((spadebuttoncount == 1 && global.bmenucoord[0][global.charturn] == 0) || (spadebuttoncount == 2 && global.bmenucoord[0][global.charturn] == 1) || (spadebuttoncount == 3 && global.bmenucoord[0][global.charturn] == 2) || (spadebuttoncount == 4 && global.bmenucoord[0][global.charturn] == 3) || (spadebuttoncount == 5 && global.bmenucoord[0][global.charturn] == 4))
|
|
11
|
{
|
|
12
|
with (obj_rouxls_ch3_enemy)
|
|
13
|
spadepower++;
|
|
14
|
snd_play(snd_coin);
|
|
15
|
}
|
|
16
|
else
|
|
17
|
{
|
|
18
|
snd_play(snd_error);
|
|
19
|
}
|
|
20
|
}
|
|
21
|
if (obj_rouxls_ch3_enemy.phase == 2)
|
|
22
|
{
|
|
23
|
if ((spadebuttoncount == 1 && global.bmenucoord[0][global.charturn] == 0) || (spadebuttoncount == 2 && global.bmenucoord[0][global.charturn] == 1) || (spadebuttoncount == 3 && global.bmenucoord[0][global.charturn] == 2) || (spadebuttoncount == 4 && global.bmenucoord[0][global.charturn] == 3) || (spadebuttoncount == 5 && global.bmenucoord[0][global.charturn] == 4))
|
|
24
|
{
|
|
25
|
with (obj_rouxls_ch3_enemy)
|
|
26
|
spadepower++;
|
|
27
|
snd_play(snd_coin);
|
|
28
|
}
|
|
29
|
else if ((heartbuttoncount == 1 && global.bmenucoord[0][global.charturn] == 0) || (heartbuttoncount == 2 && global.bmenucoord[0][global.charturn] == 1) || (heartbuttoncount == 3 && global.bmenucoord[0][global.charturn] == 2) || (heartbuttoncount == 4 && global.bmenucoord[0][global.charturn] == 3) || (heartbuttoncount == 5 && global.bmenucoord[0][global.charturn] == 4))
|
|
30
|
{
|
|
31
|
with (obj_writer)
|
|
32
|
instance_destroy();
|
|
33
|
var healamount = 30;
|
|
34
|
if (global.tension < 16)
|
|
35
|
{
|
|
36
|
msgsetloc(0, * Healed with Heart!Wait for inputClose Message"* Healed with Heart!/%", "obj_rouxls_battle_old_slash_Step_0_gml_43_0" );
|
|
37
|
}
|
|
38
|
else
|
|
39
|
{
|
|
40
|
healamount = 60;
|
|
41
|
msgsetloc(0, * Used TP to heal with Heart!Wait for inputClose Message"* Used TP to heal with Heart!/%", "obj_rouxls_battle_old_slash_Step_0_gml_48_0" );
|
|
42
|
}
|
|
43
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
44
|
var healtarget = 0;
|
|
45
|
if (global.hp[1] < 1)
|
|
46
|
{
|
|
47
|
scr_healscr_heal
function scr_heal(arg0, arg1)
{
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)
{
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;
} (0, healamount);
|
|
48
|
}
|
|
49
|
else if (global.hp[2] < 1)
|
|
50
|
{
|
|
51
|
scr_healscr_heal
function scr_heal(arg0, arg1)
{
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)
{
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, healamount);
|
|
52
|
healtarget = 1;
|
|
53
|
}
|
|
54
|
else if (global.hp[3] < 1)
|
|
55
|
{
|
|
56
|
scr_healscr_heal
function scr_heal(arg0, arg1)
{
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)
{
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, healamount);
|
|
57
|
healtarget = 2;
|
|
58
|
}
|
|
59
|
else
|
|
60
|
{
|
|
61
|
healtarget = global.charturn;
|
|
62
|
scr_healscr_heal
function scr_heal(arg0, arg1)
{
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)
{
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;
} (global.charturn, healamount);
|
|
63
|
}
|
|
64
|
ha = instance_create(global.charinstance[healtarget].x, global.charinstance[healtarget].y, obj_healanim);
|
|
65
|
ha.target = global.charinstance[healtarget].id;
|
|
66
|
dmgwr = instance_create(global.charinstance[healtarget].x, (global.charinstance[healtarget].y + global.charinstance[healtarget].myheight) - 24, obj_dmgwriter);
|
|
67
|
with (dmgwr)
|
|
68
|
{
|
|
69
|
delay = 8;
|
|
70
|
type = 3;
|
|
71
|
damage = healamount;
|
|
72
|
}
|
|
73
|
if (global.hp[global.char[global.charinstance[healtarget].myself]] >= global.maxhp[global.char[global.charinstance[healtarget].myself]])
|
|
74
|
{
|
|
75
|
with (dmgwr)
|
|
76
|
specialmessage = 3;
|
|
77
|
}
|
|
78
|
}
|
|
79
|
else if ((rouxlsbuttoncount == 1 && global.bmenucoord[0][global.charturn] == 0) || (rouxlsbuttoncount == 2 && global.bmenucoord[0][global.charturn] == 1) || (rouxlsbuttoncount == 3 && global.bmenucoord[0][global.charturn] == 2) || (rouxlsbuttoncount == 4 && global.bmenucoord[0][global.charturn] == 3) || (rouxlsbuttoncount == 5 && global.bmenucoord[0][global.charturn] == 4))
|
|
80
|
{
|
|
81
|
with (obj_writer)
|
|
82
|
instance_destroy();
|
|
83
|
msgsetloc(0, * Diamond powers up foes!Wait for inputClose Message"* Diamond powers up foes!/%", "obj_rouxls_battle_old_slash_Step_0_gml_80_0" );
|
|
84
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
85
|
if (i_ex(obj_rouxls_ch3_enemy))
|
|
86
|
obj_rouxls_ch3_enemy.powerup = true;
|
|
87
|
snd_play(snd_error);
|
|
88
|
}
|
|
89
|
else
|
|
90
|
{
|
|
91
|
with (obj_writer)
|
|
92
|
instance_destroy();
|
|
93
|
msgsetloc(0, * ACT was useless!Wait for inputClose Message"* ACT was useless!/%", "obj_rouxls_battle_old_slash_Step_0_gml_90_0" );
|
|
94
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
95
|
snd_play(snd_error);
|
|
96
|
}
|
|
97
|
}
|
|
98
|
if (obj_rouxls_ch3_enemy.phase == 3)
|
|
99
|
{
|
|
100
|
if ((spadebuttoncount == 1 && global.bmenucoord[0][global.charturn] == 0) || (spadebuttoncount == 2 && global.bmenucoord[0][global.charturn] == 1) || (spadebuttoncount == 3 && global.bmenucoord[0][global.charturn] == 2) || (spadebuttoncount == 4 && global.bmenucoord[0][global.charturn] == 3) || (spadebuttoncount == 5 && global.bmenucoord[0][global.charturn] == 4))
|
|
101
|
{
|
|
102
|
with (obj_rouxls_ch3_enemy)
|
|
103
|
spadepower++;
|
|
104
|
snd_play(snd_coin);
|
|
105
|
}
|
|
106
|
else
|
|
107
|
{
|
|
108
|
msgsetloc(0, * Diamond powers up foes!Wait for inputClose Message"* Diamond powers up foes!/%", "obj_rouxls_battle_old_slash_Step_0_gml_110_0" );
|
|
109
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
110
|
if (i_ex(obj_rouxls_ch3_enemy))
|
|
111
|
obj_rouxls_ch3_enemy.powerup = true;
|
|
112
|
snd_play(snd_error);
|
|
113
|
}
|
|
114
|
}
|
|
115
|
}
|
|
116
|
global.bmenuno = 0;
|
|
117
|
scr_nextheroscr_nexthero
function scr_nexthero()
{
moveswapped = 0;
prevturn = global.charturn;
if (global.charturn == 0)
{
moveswapped = 1;
if (global.charmove[1] == 1 && scr_charcan(1))
global.charturn = 1;
else if (global.charmove[2] == 1 && scr_charcan(2))
global.charturn = 2;
else
scr_endturn();
}
if (global.charturn == 1 && moveswapped == 0)
{
moveswapped = 1;
if (scr_charcan(2) && global.acting[1] == 0)
global.charturn = 2;
else
scr_endturn();
}
var endturn = false;
if (global.charturn == 2 && global.chapter == 3 && i_ex(obj_heroralsei) && (obj_heroralsei.sprite_index == spr_ralseib_yarn_1 || obj_heroralsei.sprite_index == spr_ralseib_yarn_2))
endturn = true;
if ((global.charturn == 2 && moveswapped == 0) || endturn == true)
scr_endturn();
if (moveswapped == 1)
global.bmenuno = 0;
if (global.charturn > 0)
{
global.temptension[global.charturn] = global.tension;
for (i = 0; i < 12; i += 1)
tempitem[i][global.charturn] = tempitem[i][prevturn];
}
} ();
|
|
118
|
exit;
|
|
119
|
}
|