|
1
|
if (scr_debugscr_debug
function scr_debug()
{
return 0;
}
())
|
|
2
|
{
|
|
3
|
}
|
|
4
|
if (global.monster[myself] == 1)
|
|
5
|
{
|
|
6
|
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)
|
|
7
|
{
|
|
8
|
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;
}
}
();
|
|
9
|
if (!instance_exists(obj_darkener))
|
|
10
|
instance_create(0, 0, obj_darkener);
|
|
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 = 2;
}
}
else if (arg0 == -1)
{
if (instance_exists(obj_writer) == false)
global.mnfight = 2;
}
else if (arg0 == -2)
{
talktimer += 1;
if (talktimer > 15)
talktimer = talkmax;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 2;
}
}
}
(-1);
|
|
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) && !i_ex(obj_heart))
|
|
21
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy))
return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart);
else
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.monsterattackname[myself] = "PipisExplosion";
|
|
35
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
}
(x, y, obj_dbulletcontroller);
|
|
36
|
dc.type = 50;
|
|
37
|
dc.damage = 50;
|
|
38
|
dc.btimer = 35 - random(30);
|
|
39
|
dc.creatorid = id;
|
|
40
|
}
|
|
41
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
}
(90);
|
|
42
|
turns += 1;
|
|
43
|
global.typer = 6;
|
|
44
|
global.fc = 0;
|
|
45
|
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)))
|
|
46
|
global.battlemsg[0] = stringsetloc(* Pipis"* Pipis", "obj_pipis_enemy_slash_Step_0_gml_73_0"
);
|
|
47
|
attacked = 1;
|
|
48
|
}
|
|
49
|
else
|
|
50
|
{
|
|
51
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
}
(120);
|
|
52
|
}
|
|
53
|
}
|
|
54
|
}
|
|
55
|
if (global.myfight == 3)
|
|
56
|
{
|
|
57
|
xx = __view_get(e__VW.XView, 0);
|
|
58
|
yy = __view_get(e__VW.YView, 0);
|
|
59
|
if (acting == 1 && actcon == 0)
|
|
60
|
{
|
|
61
|
actcon = 1;
|
|
62
|
var randomnumber = irandom_range(42, 5555);
|
|
63
|
var smallfacetext = stringsetsubloc("\f~1 liked this! ", string(randomnumber), "obj_pipis_enemy_slash_Step_0_gml_97_0");
|
|
64
|
scr_smallfacescr_smallface
function scr_smallface(arg0, arg1, arg2, arg3, arg4, arg5)
{
scr_smallface_reset(arg0);
global.smsprite[arg0] = spr_face_susie_alt;
if (is_string(arg1))
{
if (arg1 == "susie")
global.smsprite[arg0] = spr_face_susie_alt;
if (arg1 == "ralsei")
global.smsprite[arg0] = spr_face_r_nohat;
if (arg1 == "lancer")
global.smsprite[arg0] = spr_face_l0;
if (arg1 == "noelle")
global.smsprite[arg0] = spr_face_n_matome;
if (arg1 == "noelle_cropped")
global.smsprite[arg0] = spr_face_n_matome_cropped;
if (arg1 == "queen")
global.smsprite[arg0] = scr_84_get_sprite("spr_face_queen");
if (arg1 == "rouxls")
global.smsprite[arg0] = spr_face_rurus;
if (arg1 == "berdly")
global.smsprite[arg0] = spr_face_berdly_dark;
if (arg1 == "rudy")
global.smsprite[arg0] = spr_face_rudy;
if (arg1 == "none" || arg1 == "empty")
global.smsprite[arg0] = spr_empty;
}
else
{
global.smsprite[arg0] = arg1;
if (arg1 == 0)
global.smsprite[arg0] = spr_empty;
}
global.smimage[arg0] = arg2;
if (is_string(arg3))
{
if (global.fighting == 1)
{
if (arg3 == "left")
global.smxx[arg0] = 60;
if (arg3 == "leftmid")
global.smxx[arg0] = 160;
if (arg3 == "mid" || arg3 == "middle")
global.smxx[arg0] = 260;
if (arg3 == "rightmid")
global.smxx[arg0] = 360;
if (arg3 == "right")
global.smxx[arg0] = 460;
}
else
{
if (arg3 == "left")
global.smxx[arg0] = 70;
if (arg3 == "leftmid")
global.smxx[arg0] = 160;
if (arg3 == "mid" || arg3 == "middle")
global.smxx[arg0] = 260;
if (arg3 == "rightmid")
global.smxx[arg0] = 360;
if (arg3 == "right")
global.smxx[arg0] = 400;
}
}
else
{
global.smxx[arg0] = arg3;
}
if (is_string(arg4))
{
if (global.fighting == 1)
{
if (arg4 == "top")
global.smyy[arg0] = -10;
if (arg4 == "mid" || arg4 == "middle")
global.smyy[arg0] = 30;
if (arg4 == "bottommid")
global.smyy[arg0] = 45;
if (arg4 == "bottom")
global.smyy[arg0] = 56;
if (arg4 == "bottom" || arg4 == "bottommid")
{
global.smdir[arg0] = 90;
global.smspeed[arg0] = 4;
global.smalarm[arg0] = 10;
global.smyy[arg0] += 40;
global.smxx[arg0] -= 40;
}
}
else
{
if (arg4 == "top")
global.smyy[arg0] = -10;
if (arg4 == "mid" || arg4 == "middle")
global.smyy[arg0] = 30;
if (arg4 == "bottommid")
global.smyy[arg0] = 50;
if (arg4 == "bottom")
global.smyy[arg0] = 68;
if (global.darkzone == 0)
{
if (arg4 == "top")
...
(0, "empty", 0, "right", "bottom", smallfacetext);
|
|
65
|
msgsetloc(0, PIPIS - ''The Original'' An invasive species of freshwater clam. Mini text 0 Wait for inputClose Message"PIPIS - ''The Original'' An invasive species of freshwater clam. \\f0 /%", "obj_pipis_enemy_slash_Step_0_gml_100_0"
);
|
|
66
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
}
();
|
|
67
|
}
|
|
68
|
if ((actingsus == 1 && actconsus == 1) || (actingral == 1 && actconral == 1))
|
|
69
|
{
|
|
70
|
msgsetloc(0, * Nothing happened!Wait for inputClose Message"* Nothing happened!/%", "obj_pipis_enemy_slash_Step_0_gml_110_0"
);
|
|
71
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
}
();
|
|
72
|
if (actingsus == 1 && actconsus == 1)
|
|
73
|
{
|
|
74
|
actcon = 1;
|
|
75
|
actconsus = 0;
|
|
76
|
}
|
|
77
|
if (actingral == 1 && actconral == 1)
|
|
78
|
{
|
|
79
|
actcon = 1;
|
|
80
|
actconral = 0;
|
|
81
|
}
|
|
82
|
}
|
|
83
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
84
|
{
|
|
85
|
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;
}
())
|
|
86
|
{
|
|
87
|
actconsus = -1;
|
|
88
|
actconral = -1;
|
|
89
|
actcon = 1;
|
|
90
|
}
|
|
91
|
}
|
|
92
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
93
|
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();
}
}
();
|
|
94
|
}
|
|
95
|
|
|
96
|
enum e__VW
|
|
97
|
{
|
|
98
|
XView,
|
|
99
|
YView,
|
|
100
|
WView,
|
|
101
|
HView,
|
|
102
|
Angle,
|
|
103
|
HBorder,
|
|
104
|
VBorder,
|
|
105
|
HSpeed,
|
|
106
|
VSpeed,
|
|
107
|
Object,
|
|
108
|
Visible,
|
|
109
|
XPort,
|
|
110
|
YPort,
|
|
111
|
WPort,
|
|
112
|
HPort,
|
|
113
|
Camera,
|
|
114
|
SurfaceID
|
|
115
|
}
|