1 |
visible = true |
2 |
image_alpha = 0 |
3 |
con = 0 |
4 |
balloontimer = 0 |
5 |
balloonthreshold = 5 |
6 |
scr_losecharscr_losecharfunction scr_losechar() //gml_Script_scr_losechar
{
global.char[2] = 0
global.char[1] = 0
with (obj_darkcontroller)
{
chartotal = 0
havechar[0] = 0
havechar[1] = 0
havechar[2] = 0
havechar[3] = 0
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0
if (global.char[i] != 0)
chartotal += 1
if (global.char[i] == 1)
{
havechar[0] = 1
charpos[0] = i
}
if (global.char[i] == 2)
{
havechar[1] = 1
charpos[1] = i
}
if (global.char[i] == 3)
{
havechar[2] = 1
charpos[2] = i
}
if (global.char[i] == 4)
{
havechar[3] = 1
charpos[3] = i
}
}
}
} () |
7 |
safe_delete(obj_caterpillarchara) |
8 |
scr_getcharscr_getcharfunction scr_getchar(argument0) //gml_Script_scr_getchar
{
getchar = 0
if (global.char[0] == 0)
{
global.char[0] = argument0
getchar = 1
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = argument0
getchar = 1
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = argument0
getchar = 1
}
with (obj_darkcontroller)
{
chartotal = 0
havechar[0] = 0
havechar[1] = 0
havechar[2] = 0
havechar[3] = 0
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0
if (global.char[i] != 0)
chartotal += 1
if (global.char[i] == 1)
{
havechar[0] = 1
charpos[0] = i
}
if (global.char[i] == 2)
{
havechar[1] = 1
charpos[1] = i
}
if (global.char[i] == 3)
{
havechar[2] = 1
charpos[2] = i
}
if (global.char[i] == 4)
{
havechar[3] = 1
charpos[3] = i
}
}
}
} (2) |
9 |
scr_getcharscr_getcharfunction scr_getchar(argument0) //gml_Script_scr_getchar
{
getchar = 0
if (global.char[0] == 0)
{
global.char[0] = argument0
getchar = 1
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = argument0
getchar = 1
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = argument0
getchar = 1
}
with (obj_darkcontroller)
{
chartotal = 0
havechar[0] = 0
havechar[1] = 0
havechar[2] = 0
havechar[3] = 0
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0
if (global.char[i] != 0)
chartotal += 1
if (global.char[i] == 1)
{
havechar[0] = 1
charpos[0] = i
}
if (global.char[i] == 2)
{
havechar[1] = 1
charpos[1] = i
}
if (global.char[i] == 3)
{
havechar[2] = 1
charpos[2] = i
}
if (global.char[i] == 4)
{
havechar[3] = 1
charpos[3] = i
}
}
}
} (3) |
10 |
caterpillarsus = scr_makecaterpillarscr_makecaterpillarfunction scr_makecaterpillar(argument0, argument1, argument2, argument3) //gml_Script_scr_makecaterpillar
{
global.cinstance[argument3] = instance_create(argument0, argument1, obj_caterpillarchara)
global.cinstance[argument3].target = 12 + argument3 * 12
if (argument2 == 3)
{
with (global.cinstance[argument3])
{
usprite = spr_ralseiu
dsprite = spr_ralseid
rsprite = spr_ralseir
lsprite = spr_ralseil
if (global.chapter >= 2)
{
name = "ralsei"
usprite = spr_ralsei_walk_up
dsprite = spr_ralsei_walk_down
rsprite = spr_ralsei_walk_right
lsprite = spr_ralsei_walk_left
}
}
}
if (argument2 == 4)
{
with (global.cinstance[argument3])
{
name = "noelle"
usprite = spr_noelle_walk_up_dw
dsprite = spr_noelle_walk_down_dw
rsprite = spr_noelle_walk_right_dw
lsprite = spr_noelle_walk_left_dw
if (global.chapter == 2 && global.plot == 95)
{
dsprite = spr_noelle_walk_down_blush_dw
rsprite = spr_noelle_walk_right_blush_dw
lsprite = spr_noelle_walk_left_blush_dw
}
}
}
if (argument2 == 5)
{
with (global.cinstance[argument3])
{
name = "berdly"
usprite = spr_berdly_walk_up_dw
dsprite = spr_berdly_walk_down_dw
rsprite = spr_berdly_walk_right_dw
lsprite = spr_berdly_walk_left_dw
}
}
if (argument2 == 6)
{
with (global.cinstance[argument3])
{
name = "starwalker"
usprite = spr_npc_originalstarwalker
dsprite = spr_npc_originalstarwalker
rsprite = spr_npc_originalstarwalker
lsprite = spr_npc_originalstarwalker
}
}
return global.cinstance[argument3];
} (obj_mainchara.x, (obj_mainchara.y - 16 + 2), 2, 0) |
11 |
caterpillarral = scr_makecaterpillarscr_makecaterpillarfunction scr_makecaterpillar(argument0, argument1, argument2, argument3) //gml_Script_scr_makecaterpillar
{
global.cinstance[argument3] = instance_create(argument0, argument1, obj_caterpillarchara)
global.cinstance[argument3].target = 12 + argument3 * 12
if (argument2 == 3)
{
with (global.cinstance[argument3])
{
usprite = spr_ralseiu
dsprite = spr_ralseid
rsprite = spr_ralseir
lsprite = spr_ralseil
if (global.chapter >= 2)
{
name = "ralsei"
usprite = spr_ralsei_walk_up
dsprite = spr_ralsei_walk_down
rsprite = spr_ralsei_walk_right
lsprite = spr_ralsei_walk_left
}
}
}
if (argument2 == 4)
{
with (global.cinstance[argument3])
{
name = "noelle"
usprite = spr_noelle_walk_up_dw
dsprite = spr_noelle_walk_down_dw
rsprite = spr_noelle_walk_right_dw
lsprite = spr_noelle_walk_left_dw
if (global.chapter == 2 && global.plot == 95)
{
dsprite = spr_noelle_walk_down_blush_dw
rsprite = spr_noelle_walk_right_blush_dw
lsprite = spr_noelle_walk_left_blush_dw
}
}
}
if (argument2 == 5)
{
with (global.cinstance[argument3])
{
name = "berdly"
usprite = spr_berdly_walk_up_dw
dsprite = spr_berdly_walk_down_dw
rsprite = spr_berdly_walk_right_dw
lsprite = spr_berdly_walk_left_dw
}
}
if (argument2 == 6)
{
with (global.cinstance[argument3])
{
name = "starwalker"
usprite = spr_npc_originalstarwalker
dsprite = spr_npc_originalstarwalker
rsprite = spr_npc_originalstarwalker
lsprite = spr_npc_originalstarwalker
}
}
return global.cinstance[argument3];
} (obj_mainchara.x, (obj_mainchara.y - 12 - 2), 3, 1) |
12 |
caterpillarnoe = scr_makecaterpillarscr_makecaterpillarfunction scr_makecaterpillar(argument0, argument1, argument2, argument3) //gml_Script_scr_makecaterpillar
{
global.cinstance[argument3] = instance_create(argument0, argument1, obj_caterpillarchara)
global.cinstance[argument3].target = 12 + argument3 * 12
if (argument2 == 3)
{
with (global.cinstance[argument3])
{
usprite = spr_ralseiu
dsprite = spr_ralseid
rsprite = spr_ralseir
lsprite = spr_ralseil
if (global.chapter >= 2)
{
name = "ralsei"
usprite = spr_ralsei_walk_up
dsprite = spr_ralsei_walk_down
rsprite = spr_ralsei_walk_right
lsprite = spr_ralsei_walk_left
}
}
}
if (argument2 == 4)
{
with (global.cinstance[argument3])
{
name = "noelle"
usprite = spr_noelle_walk_up_dw
dsprite = spr_noelle_walk_down_dw
rsprite = spr_noelle_walk_right_dw
lsprite = spr_noelle_walk_left_dw
if (global.chapter == 2 && global.plot == 95)
{
dsprite = spr_noelle_walk_down_blush_dw
rsprite = spr_noelle_walk_right_blush_dw
lsprite = spr_noelle_walk_left_blush_dw
}
}
}
if (argument2 == 5)
{
with (global.cinstance[argument3])
{
name = "berdly"
usprite = spr_berdly_walk_up_dw
dsprite = spr_berdly_walk_down_dw
rsprite = spr_berdly_walk_right_dw
lsprite = spr_berdly_walk_left_dw
}
}
if (argument2 == 6)
{
with (global.cinstance[argument3])
{
name = "starwalker"
usprite = spr_npc_originalstarwalker
dsprite = spr_npc_originalstarwalker
rsprite = spr_npc_originalstarwalker
lsprite = spr_npc_originalstarwalker
}
}
return global.cinstance[argument3];
} ((obj_mainchara.x - 4), (obj_mainchara.y - 20 + 2), 4, 2) |
13 |
var remtarget = caterpillarral.target |
14 |
caterpillarral.target = caterpillarnoe.target |
15 |
caterpillarnoe.target = remtarget |
16 |
if (room == room_dw_city_postbaseball_1) |
17 |
{ |
18 |
instance_create(1260, 270, obj_chaseenemy) |
19 |
forcefieldtopleft = instance_create(320, 320, obj_forcefield) |
20 |
forcefieldtopleft.image_xscale = 6 |
21 |
forcefieldtopright = instance_create(440, 320, obj_forcefield) |
22 |
forcefieldtopright.image_xscale = 36 |
23 |
forcefieldright = instance_create(880, 760, obj_forcefield) |
24 |
forcefieldright.image_xscale = 100 |
25 |
with (obj_forcefield) |
26 |
stayVisible = 1 |
27 |
} |
28 |
switchcon = 0 |
29 |
rodeteacup = -5 |
30 |
switch3con = -1 |
31 |
switch2con = -1 |
32 |
switch1con = -1 |
33 |
forcefield1 = 999 |
34 |
forcefield2 = 999 |
35 |
forcefield3 = 999 |
36 |
if (room == room_dw_city_postbaseball_1) |
37 |
{ |
38 |
if (global.flag[448 finished_big_forcefield] == 1) |
39 |
{ |
40 |
safe_delete(forcefieldtopright) |
41 |
safe_delete(forcefieldright) |
42 |
switch1con = 2 |
43 |
switch2con = 2 |
44 |
rodeteacup = 3 |
45 |
con = 99 |
46 |
} |
47 |
if (global.flag[449 easter_egg_forcefield] == 1) |
48 |
{ |
49 |
safe_delete(forcefieldtopleft) |
50 |
rodeteacup = 4 |
51 |
} |
52 |
} |
53 |
if (room == room_dw_city_postbaseball_2 || room == room_dw_city_postbaseball_1) |
54 |
{ |
55 |
instance_create(0, 0, obj_fireworks_manager) |
56 |
with (obj_fireworks_manager) |
57 |
is_active = 1 |
58 |
} |
59 |
fireworkshotcon = 0 |
60 |
fireworktimer = 0 |
61 |
if (room == room_dw_city_postbaseball_3) |
62 |
{ |
63 |
blockleft = 0 |
64 |
makecaters = 0 |
65 |
minigame = 0 |
66 |
minigamecon = 0 |
67 |
minigamestartcon = 0 |
68 |
timer = 0 |
69 |
balloon[0] = instance_create(626, 40, obj_cybercity_balloon) |
70 |
with (balloon[0]) |
71 |
{ |
72 |
balloonid = 0 |
73 |
event_user(0) |
74 |
} |
75 |
ballremx[0] = balloon[0].x |
76 |
ballremy[0] = balloon[0].y |
77 |
balloondestroyed[0] = 0 |
78 |
pillar1 = instance_create(700, 200, obj_mouseballoon_pillar) |
79 |
pillar1.pillarid = 1 |
80 |
blockforcefield = instance_create(760, 320, obj_solidblocksized) |
81 |
blockforcefield2 = instance_create(1560, 320, obj_solidblocksized) |
82 |
blockforcefield3 = instance_create(1960, 320, obj_solidblocksized) |
83 |
blockforcefield4 = instance_create(2560, 120, obj_solidblocksized) |
84 |
blockforcefield.image_xscale = 3 |
85 |
blockforcefield2.image_xscale = 3 |
86 |
blockforcefield3.image_xscale = 3 |
87 |
blockforcefield4.image_xscale = 3 |
88 |
blockforcefield4.image_yscale = 10 |
89 |
pillaremerge = instance_create(900, 200, obj_mouseballoon_pillar_release) |
90 |
pillar2 = instance_create(1500, 200, obj_mouseballoon_pillar) |
91 |
pillar2.pillarid = 2 |
92 |
pillar2.micerequired = 1 |
93 |
pillar3 = instance_create(1900, 200, obj_mouseballoon_pillar) |
94 |
pillar3.pillarid = 3 |
95 |
pillar3.micerequired = 20 |
96 |
bucket = instance_create(500, 335, obj_kris_putonheadobj) |
97 |
scr_darksizescr_darksizefunction scr_darksize(argument0) //gml_Script_scr_darksize
{
inst = argument0
inst.image_xscale = 2
inst.image_yscale = 2
} (bucket) |
98 |
switch2 = instance_create(1340, 320, obj_pushtile_room) |
99 |
switch2.pushVariableName = "switch2con" |
100 |
scr_darksizescr_darksizefunction scr_darksize(argument0) //gml_Script_scr_darksize
{
inst = argument0
inst.image_xscale = 2
inst.image_yscale = 2
} (switch2) |
101 |
bucketpillar = instance_create(2440, 188, obj_mouseballoon_pillar_bucket) |
102 |
layer_set_visible("TILE_BLOCKLAYER1", 1) |
103 |
layer_set_visible("TILE_BLOCKLAYER2", 1) |
104 |
layer_set_visible("TILE_BLOCKLAYER3", 1) |
105 |
layer_set_visible("TILE_BLOCKLAYER4", 1) |
106 |
} |