|
1
|
function scr_spellconsumebscr_spellconsumeb
function scr_spellconsumeb()
{
global.tension -= floor(floor((cost / global.maxtension) * 100) * 2.5);
global.faceaction[global.charturn] = 2;
global.charaction[global.charturn] = 2;
if (global.flag[34 disable_monster_acts] == 1)
global.charspecial[global.charturn] = global.spell[global.char[global.charturn]][global.bmenucoord[2][global.charturn]];
if (global.flag[34 disable_monster_acts] == 0)
global.charspecial[global.charturn] = global.battlespell[global.charturn][global.bmenucoord[2][global.charturn]];
global.tensionselect = 0;
if (spellanim == 1)
{
with (global.charinstance[global.charturn])
{
spellframes = 0;
spellsprite = spellreadysprite;
}
}
else
{
with (global.charinstance[global.charturn])
{
spellframes = remspellframes;
spellsprite = remspellsprite;
}
}
scr_nexthero();
} ()
|
|
2
|
{
|
|
3
|
global.tension -= floor(floor((cost / global.maxtension) * 100) * 2.5);
|
|
4
|
global.faceaction[global.charturn] = 2;
|
|
5
|
global.charaction[global.charturn] = 2;
|
|
6
|
if (global.flag[34 disable_monster_acts] == 1)
|
|
7
|
global.charspecial[global.charturn] = global.spell[global.char[global.charturn]][global.bmenucoord[2][global.charturn]];
|
|
8
|
if (global.flag[34 disable_monster_acts] == 0)
|
|
9
|
global.charspecial[global.charturn] = global.battlespell[global.charturn][global.bmenucoord[2][global.charturn]];
|
|
10
|
global.tensionselect = 0;
|
|
11
|
if (spellanim == 1)
|
|
12
|
{
|
|
13
|
with (global.charinstance[global.charturn])
|
|
14
|
{
|
|
15
|
spellframes = 0;
|
|
16
|
spellsprite = spellreadysprite;
|
|
17
|
}
|
|
18
|
}
|
|
19
|
else
|
|
20
|
{
|
|
21
|
with (global.charinstance[global.charturn])
|
|
22
|
{
|
|
23
|
spellframes = remspellframes;
|
|
24
|
spellsprite = remspellsprite;
|
|
25
|
}
|
|
26
|
}
|
|
27
|
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) && obj_battlecontroller.skipsusieturn == false) || (i_ex(obj_sound_of_justice_enemy) && i_ex(obj_herokris)))
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();
}
if (global.charturn == 2 && moveswapped == 0)
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];
}
if (disablesusieattack == 1 && global.charturn == 1)
global.bmenucoord[0][global.charturn] = 1;
} ();
|
|
28
|
}
|