|
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
|
if (!instance_exists(obj_darkener))
|
|
7
|
instance_create(0, 0, obj_darkener);
|
|
8
|
global.typer = 50;
|
|
9
|
msgsetloc(0, Graze!"Graze!", "obj_dojograzeenemy_slash_Step_0_gml_15_0" );
|
|
10
|
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);
|
|
11
|
talked = 1;
|
|
12
|
talktimer = 0;
|
|
13
|
}
|
|
14
|
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"))
|
|
15
|
{
|
|
16
|
rtimer = 0;
|
|
17
|
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);
|
|
18
|
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"))
|
|
19
|
{
|
|
20
|
if (!instance_exists(obj_moveheart))
|
|
21
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
22
|
if (!instance_exists(obj_growtangle))
|
|
23
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
24
|
}
|
|
25
|
}
|
|
26
|
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)
|
|
27
|
{
|
|
28
|
rtimer += 1;
|
|
29
|
if (rtimer == 12)
|
|
30
|
{
|
|
31
|
rr = 0;
|
|
32
|
if (rr == 0)
|
|
33
|
{
|
|
34
|
global.inv = 0;
|
|
35
|
global.monsterattackname[myself] = "HomingDiamonds";
|
|
36
|
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);
|
|
37
|
dc.type = 48;
|
|
38
|
dc.btimer = 135;
|
|
39
|
dc.damage = global.monsterat[myself] * 5;
|
|
40
|
dc.timermax = 20;
|
|
41
|
dc.grazepoints = 7;
|
|
42
|
fighttimer = 0;
|
|
43
|
speedtimer = 0;
|
|
44
|
bulletgrazecon = 1;
|
|
45
|
global.flag[39 dojo_abort?] = 1;
|
|
46
|
}
|
|
47
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (999999);
|
|
48
|
turns += 1;
|
|
49
|
global.typer = 6;
|
|
50
|
global.fc = 0;
|
|
51
|
rr = 0;
|
|
52
|
if (rr == 0)
|
|
53
|
global.battlemsg[0] = stringsetloc(* How'd you get past!?"* How'd you get past!?", "obj_dojograzeenemy_slash_Step_0_gml_71_0" );
|
|
54
|
attacked = 1;
|
|
55
|
}
|
|
56
|
else
|
|
57
|
{
|
|
58
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (120);
|
|
59
|
}
|
|
60
|
}
|
|
61
|
}
|
|
62
|
if (global.myfight == 3)
|
|
63
|
{
|
|
64
|
xx = __view_get(e__VW.XView, 0);
|
|
65
|
yy = __view_get(e__VW.YView, 0);
|
|
66
|
if (acting == 1 && actcon == 0)
|
|
67
|
{
|
|
68
|
actcon = 1;
|
|
69
|
msgsetloc(0, * GRAZECHALLENGE - Graze the bullets!Wait for inputClose Message"* GRAZECHALLENGE - Graze the bullets!/%", "obj_dojograzeenemy_slash_Step_0_gml_91_0" );
|
|
70
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
71
|
}
|
|
72
|
if (actingsus == 1 && actconsus == 1)
|
|
73
|
{
|
|
74
|
msgsetloc(0, * Susie acted!Wait for inputClose Message"* Susie acted!/%", "obj_dojograzeenemy_slash_Step_0_gml_97_0" );
|
|
75
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
76
|
actcon = 1;
|
|
77
|
actconsus = 0;
|
|
78
|
}
|
|
79
|
if (actingral == 1 && actconral == 1)
|
|
80
|
{
|
|
81
|
msgsetloc(0, * Ralsei acted!Wait for inputClose Message"* Ralsei acted!/%", "obj_dojograzeenemy_slash_Step_0_gml_106_0" );
|
|
82
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
83
|
actcon = 1;
|
|
84
|
actconral = 0;
|
|
85
|
}
|
|
86
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
87
|
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();
}
} ();
|
|
88
|
}
|
|
89
|
if (bulletgrazecon == 1)
|
|
90
|
{
|
|
91
|
global.turntimer = 999;
|
|
92
|
fighttimer++;
|
|
93
|
speedtimer++;
|
|
94
|
if (speedtimer >= 30 && i_ex(dc))
|
|
95
|
{
|
|
96
|
if (dc.timermax > 8)
|
|
97
|
dc.timermax--;
|
|
98
|
speedtimer = 0;
|
|
99
|
}
|
|
100
|
if (global.tension == global.maxtension)
|
|
101
|
{
|
|
102
|
global.flag[39 dojo_abort?] = 1;
|
|
103
|
hspeed = 10;
|
|
104
|
global.turntimer = -1;
|
|
105
|
bulletgrazecon = 2;
|
|
106
|
}
|
|
107
|
else if (global.inv > 0)
|
|
108
|
{
|
|
109
|
global.flag[36 dojo_failure] = 1;
|
|
110
|
global.flag[39 dojo_abort?] = 1;
|
|
111
|
global.turntimer = -1;
|
|
112
|
hspeed = 10;
|
|
113
|
bulletgrazecon = 1;
|
|
114
|
}
|
|
115
|
}
|
|
116
|
|
|
117
|
enum e__VW
|
|
118
|
{
|
|
119
|
XView,
|
|
120
|
YView,
|
|
121
|
WView,
|
|
122
|
HView,
|
|
123
|
Angle,
|
|
124
|
HBorder,
|
|
125
|
VBorder,
|
|
126
|
HSpeed,
|
|
127
|
VSpeed,
|
|
128
|
Object,
|
|
129
|
Visible,
|
|
130
|
XPort,
|
|
131
|
YPort,
|
|
132
|
WPort,
|
|
133
|
HPort,
|
|
134
|
Camera,
|
|
135
|
SurfaceID
|
|
136
|
}
|