|
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 && obj_elnina_lanino_rematch_controller.talked == 1)
|
|
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
|
talked = 1;
|
|
7
|
talktimer = 0;
|
|
8
|
rtimer = 0;
|
|
9
|
}
|
|
10
|
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"))
|
|
11
|
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();
with (obj_guei_balloon)
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();
with (obj_guei_balloon)
instance_destroy();
global.mnfight = 1.5;
}
}
} (15);
|
|
12
|
}
|
|
13
|
if (global.mnfight == 2 && global.turntimer <= 1)
|
|
14
|
{
|
|
15
|
umbrella = 0;
|
|
16
|
warmhat = 0;
|
|
17
|
}
|
|
18
|
if (global.myfight == 3)
|
|
19
|
{
|
|
20
|
xx = __view_get(e__VW.XView, 0);
|
|
21
|
yy = __view_get(e__VW.YView, 0);
|
|
22
|
if (acting == 1 && actcon == 0)
|
|
23
|
{
|
|
24
|
actcon = 1;
|
|
25
|
msgsetloc(0, * ELNINA - She's just over the moon for Lanino.Wait for inputClose Message"* ELNINA - She's just over the moon for Lanino./%", "obj_elnina_rematch_enemy_slash_Step_0_gml_45_0" );
|
|
26
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
27
|
}
|
|
28
|
if (acting == 2 && actcon == 0)
|
|
29
|
{
|
|
30
|
umbrella_count++;
|
|
31
|
umbrella = 1;
|
|
32
|
blocker = instance_create(x, y, obj_elnina_umbrella);
|
|
33
|
if (global.mercymod[myself] < 90)
|
|
34
|
blocker.sprite_index = spr_ch3_elnina_umbrella;
|
|
35
|
if (umbrella_count == 1)
|
|
36
|
{
|
|
37
|
msgsetloc(0, * You looked at the sky and took... * An umbrella!Wait for inputClose Message"* You looked at the sky and took...&* An umbrella!/%", "obj_elnina_rematch_enemy_slash_Step_0_gml_59_0" );
|
|
38
|
msgnextloc(* Blocking rain shows your care for the weather report!Wait for inputClose Message"* Blocking rain shows your care for the weather report!/%", "obj_elnina_rematch_enemy_slash_Step_0_gml_60_0" );
|
|
39
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
40
|
actcon = 1;
|
|
41
|
global.actsimul[myself][1] = 1;
|
|
42
|
scr_spellmenu_setupscr_spellmenu_setup
function scr_spellmenu_setup()
{
var __actnamecheck = 0;
var __monstertype = global.monstertype[0];
for (__i = 1; __i < 3; __i++)
{
if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype)
__actnamecheck = 1;
}
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 6; __fj++)
{
global.battlespell[__i][__fj] = 0;
if (global.char[__i] == 1)
{
if (global.canact[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcost[0][__fj];
global.battlespellname[__i][__fj] = global.actname[0][__fj];
global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj];
global.battlespelltarget[__i][__fj] = 0;
global.battlespellspecial[__i][__fj] = 1;
}
}
if (global.char[__i] == 2)
{
if (global.canactsus[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj];
global.battlespellname[__i][__fj] = global.actnamesus[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(S-Action"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0" );
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 2;
}
}
if (global.char[__i] == 3)
{
if (global.canactral[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostral[0][__fj];
global.battlespellname[__i][__fj] = global.actnameral[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(R-Action"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0" );
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 3;
}
}
if (global.char[__i] == 4)
{
if (global.canactnoe[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj];
global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(N-Action"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0" );
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 4;
}
}
}
}
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 12; __fj++)
{
__ib = global.battleactcount[__i] + __fj;
global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj];
global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj];
global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj];
global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj];
global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj];
}
}
} ();
|
|
43
|
}
|
|
44
|
else
|
|
45
|
{
|
|
46
|
msgsetloc(0, * Took an umbrella to block rain!"* Took an umbrella to block rain!", "obj_elnina_rematch_enemy_slash_Step_0_gml_69_0" );
|
|
47
|
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");
|
|
48
|
if (simulorderkri == 0)
|
|
49
|
actcon = 20;
|
|
50
|
else
|
|
51
|
actcon = -1;
|
|
52
|
}
|
|
53
|
}
|
|
54
|
if (acting == 3 && actcon == 0)
|
|
55
|
{
|
|
56
|
warmhat_count++;
|
|
57
|
warmhat = 1;
|
|
58
|
blocker = instance_create(x, y, obj_elnina_umbrella);
|
|
59
|
if (global.mercymod[myself] < 90)
|
|
60
|
blocker.sprite_index = spr_ch3_elnina_warmhat;
|
|
61
|
var _text = stringsetloc(* Susie dreamed of sunny days!"* Susie dreamed of sunny days!", "obj_elnina_rematch_enemy_slash_Step_0_gml_83_0" );
|
|
62
|
if (warmhat_count == 1)
|
|
63
|
{
|
|
64
|
msgsetloc(0, * You looked at the sky and took... * A warm hat!Wait for inputClose Message"* You looked at the sky and took...&* A warm hat!/%", "obj_elnina_rematch_enemy_slash_Step_0_gml_87_0" );
|
|
65
|
msgnextloc(* Blocking snow shows your care for the weather report!Wait for inputClose Message"* Blocking snow shows your care for the weather report!/%", "obj_elnina_rematch_enemy_slash_Step_0_gml_88_0" );
|
|
66
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
67
|
actcon = 1;
|
|
68
|
global.actsimul[myself][2] = 1;
|
|
69
|
scr_spellmenu_setupscr_spellmenu_setup
function scr_spellmenu_setup()
{
var __actnamecheck = 0;
var __monstertype = global.monstertype[0];
for (__i = 1; __i < 3; __i++)
{
if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype)
__actnamecheck = 1;
}
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 6; __fj++)
{
global.battlespell[__i][__fj] = 0;
if (global.char[__i] == 1)
{
if (global.canact[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcost[0][__fj];
global.battlespellname[__i][__fj] = global.actname[0][__fj];
global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj];
global.battlespelltarget[__i][__fj] = 0;
global.battlespellspecial[__i][__fj] = 1;
}
}
if (global.char[__i] == 2)
{
if (global.canactsus[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj];
global.battlespellname[__i][__fj] = global.actnamesus[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(S-Action"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0" );
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 2;
}
}
if (global.char[__i] == 3)
{
if (global.canactral[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostral[0][__fj];
global.battlespellname[__i][__fj] = global.actnameral[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(R-Action"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0" );
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 3;
}
}
if (global.char[__i] == 4)
{
if (global.canactnoe[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj];
global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(N-Action"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0" );
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 4;
}
}
}
}
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 12; __fj++)
{
__ib = global.battleactcount[__i] + __fj;
global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj];
global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj];
global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj];
global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj];
global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj];
}
}
} ();
|
|
70
|
}
|
|
71
|
else
|
|
72
|
{
|
|
73
|
msgsetloc(0, * Took a warm hat to block snow!"* Took a warm hat to block snow!", "obj_elnina_rematch_enemy_slash_Step_0_gml_97_0" );
|
|
74
|
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");
|
|
75
|
if (simulorderkri == 0)
|
|
76
|
actcon = 20;
|
|
77
|
else
|
|
78
|
actcon = -1;
|
|
79
|
}
|
|
80
|
}
|
|
81
|
if (actingsus == 1 && actconsus == 1)
|
|
82
|
{
|
|
83
|
if (simulordersus == 0)
|
|
84
|
actconsus = 20;
|
|
85
|
else
|
|
86
|
actconsus = 0;
|
|
87
|
var _mercy = 8;
|
|
88
|
if ((global.mercymod[myself] + 8) > 90)
|
|
89
|
_mercy = 90 - global.mercymod[myself];
|
|
90
|
if (_mercy < 0)
|
|
91
|
_mercy = 0;
|
|
92
|
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, _mercy);
|
|
93
|
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]++;
} (obj_lanino_rematch_enemy.myself, _mercy);
|
|
94
|
var _text = stringsetloc(* Susie dreamed of sunny days!"* Susie dreamed of sunny days!", "obj_elnina_rematch_enemy_slash_Step_0_gml_115_0" );
|
|
95
|
if (simultotal == 1)
|
|
96
|
{
|
|
97
|
msgset(0, _text);
|
|
98
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
99
|
actconsus = 20;
|
|
100
|
}
|
|
101
|
else
|
|
102
|
{
|
|
103
|
msgset(0, _text);
|
|
104
|
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");
|
|
105
|
if (simulordersus == 0)
|
|
106
|
actconsus = 20;
|
|
107
|
else
|
|
108
|
actconsus = 0;
|
|
109
|
}
|
|
110
|
}
|
|
111
|
if (actingral == 1 && actconral == 1)
|
|
112
|
{
|
|
113
|
var _mercy = 8;
|
|
114
|
if ((global.mercymod[myself] + 8) > 90)
|
|
115
|
_mercy = 90 - global.mercymod[myself];
|
|
116
|
if (_mercy < 0)
|
|
117
|
_mercy = 0;
|
|
118
|
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, _mercy);
|
|
119
|
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]++;
} (obj_lanino_rematch_enemy.myself, _mercy);
|
|
120
|
var _text2 = stringsetloc(* Ralsei hoped for starry nights!"* Ralsei hoped for starry nights!", "obj_elnina_rematch_enemy_slash_Step_0_gml_142_0" );
|
|
121
|
if (simultotal == 1)
|
|
122
|
{
|
|
123
|
msgset(0, _text2);
|
|
124
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
125
|
actconral = 20;
|
|
126
|
}
|
|
127
|
else
|
|
128
|
{
|
|
129
|
msgset(0, _text2);
|
|
130
|
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");
|
|
131
|
if (simulorderral == 0)
|
|
132
|
actconral = 20;
|
|
133
|
else
|
|
134
|
actconral = 0;
|
|
135
|
}
|
|
136
|
}
|
|
137
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
138
|
{
|
|
139
|
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;
} ())
|
|
140
|
{
|
|
141
|
actconsus = -1;
|
|
142
|
actconral = -1;
|
|
143
|
actcon = 1;
|
|
144
|
}
|
|
145
|
}
|
|
146
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
147
|
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 (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 1)
{
global.charturn = 3;
global.myfight = 3;
global.currentactingchar = 0;
if (global.acting[0] == 0)
scr_nextact();
if (global.acting[0] == 1 && global.actingsimul[0] == 1)
scr_act_simul();
exit;
}
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();
}
} ();
|
|
148
|
}
|
|
149
|
if (state == 3)
|
|
150
|
{
|
|
151
|
hurttimer -= 1;
|
|
152
|
if (hurttimer < 0)
|
|
153
|
{
|
|
154
|
state = 0;
|
|
155
|
}
|
|
156
|
else
|
|
157
|
{
|
|
158
|
if (global.monster[myself] == 0)
|
|
159
|
{
|
|
160
|
global.flag[51 last_monster_end_0] = 1;
|
|
161
|
global.flag[52 last_monster_end_1] = 1;
|
|
162
|
with (obj_lanino_rematch_enemy)
|
|
163
|
scr_monsterdefeatscr_monsterdefeat
function scr_monsterdefeat()
{
if (global.monster[myself] == 1)
{
debug_message("=====Encounter Results=====");
global.monstergold[3] += global.monstergold[myself];
global.monsterexp[3] += global.monsterexp[myself];
global.monster[myself] = 0;
if (global.flag[51 + myself] == 0)
{
global.flag[51 + myself] = 2;
if (global.monsterhp[myself] <= 0)
global.flag[51 + myself] = 1;
}
if (global.flag[51 + myself] == 1)
{
global.flag[40 violences] += 1;
if (fatal == 1)
global.flag[44 kills]++;
}
if (global.flag[51 + myself] == 2)
global.flag[41 spares] += 1;
if (global.flag[51 + myself] == 3)
global.flag[42 pacifies] += 1;
if (global.flag[51 + myself] == 5)
global.flag[43 autosusie_violences] += 1;
if (global.flag[51 + myself] == 6)
{
global.flag[45 freezes] += 1;
global.monstergold[3] += 24;
}
if (scr_monsterpop() == 0)
{
_amt_add = 0;
_frozened = 0;
_violenced = 0;
_spared = 0;
_pacified = 0;
for (d_i = 0; d_i < 3; d_i += 1)
{
if (global.flag[51 + d_i] != 0)
_amt_add += 1;
if (global.flag[51 + d_i] == 1)
_violenced += 1;
if (global.flag[51 + d_i] == 2)
_spared += 1;
if (global.flag[51 + d_i] == 3)
_pacified += 1;
if (global.flag[51 + d_i] == 6)
_frozened += 1;
}
if (_frozened > 0)
global.flag[50 last_encounter_end] = 6;
if (_pacified > 0)
global.flag[50 last_encounter_end] = 3;
if (_spared > 0)
global.flag[50 last_encounter_end] = 2;
if (_violenced > 0)
global.flag[50 last_encounter_end] = 1;
if (global.flag[50 last_encounter_end] == 6)
global.flag[926 iceshocked_encounters]++;
if (global.flag[54 encounter_pointer] != 0)
{
global.flag[global.flag[54 encounter_pointer]] = global.flag[50 last_encounter_end];
debug_message("=====Encounter Results=====");
debug_message("encounter flag: global.flag[" + string(global.flag[54 encounter_pointer]) + "]=" + string(global.flag[50 last_encounter_end]));
debug_message("=======");
global.flag[54 encounter_pointer] = 0;
}
}
event_user(11);
debug_message("=======");
}
} ();
|
|
164
|
}
|
|
165
|
hurtshake += 1;
|
|
166
|
if (hurtshake > 1)
|
|
167
|
{
|
|
168
|
if (shakex > 0)
|
|
169
|
shakex -= 1;
|
|
170
|
if (shakex < 0)
|
|
171
|
shakex += 1;
|
|
172
|
shakex = -shakex;
|
|
173
|
hurtshake = 0;
|
|
174
|
}
|
|
175
|
}
|
|
176
|
}
|
|
177
|
|
|
178
|
enum e__VW
|
|
179
|
{
|
|
180
|
XView,
|
|
181
|
YView,
|
|
182
|
WView,
|
|
183
|
HView,
|
|
184
|
Angle,
|
|
185
|
HBorder,
|
|
186
|
VBorder,
|
|
187
|
HSpeed,
|
|
188
|
VSpeed,
|
|
189
|
Object,
|
|
190
|
Visible,
|
|
191
|
XPort,
|
|
192
|
YPort,
|
|
193
|
WPort,
|
|
194
|
HPort,
|
|
195
|
Camera,
|
|
196
|
SurfaceID
|
|
197
|
}
|