|
1
|
scr_populatecharsscr_populatechars
function scr_populatechars()
{
if (!variable_instance_exists(id, "kris"))
kris = 0;
if (!variable_instance_exists(id, "ralsei"))
ralsei = 0;
if (!variable_instance_exists(id, "susie"))
susie = 0;
if (!variable_instance_exists(id, "noelle"))
noelle = 0;
if (kris == 0)
{
with (obj_mainchara)
other.kris = id;
}
if (susie == 0)
{
with (obj_caterpillarchara)
{
if (name == "susie")
other.susie = id;
}
}
if (ralsei == 0)
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
other.ralsei = id;
}
}
if (noelle == 0)
{
with (obj_caterpillarchara)
{
if (name == "noelle")
other.noelle = id;
}
}
} ();
|
|
2
|
if (!depthinit)
|
|
3
|
{
|
|
4
|
var targlayer = "BACKGROUND_GIVEDEPTH";
|
|
5
|
layer_set_visible(targlayer, 0);
|
|
6
|
var elements = layer_get_all_elements(targlayer);
|
|
7
|
for (var i = 0; i < array_length(elements); i++)
|
|
8
|
{
|
|
9
|
if (layer_get_element_type(elements[i]) == 4)
|
|
10
|
{
|
|
11
|
var sprite = layer_sprite_get_sprite(elements[i]);
|
|
12
|
var xloc = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (layer_sprite_get_x(elements[i]));
|
|
13
|
var yloc = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (layer_sprite_get_y(elements[i]));
|
|
14
|
var xscale = layer_sprite_get_xscale(elements[i]);
|
|
15
|
var yscale = layer_sprite_get_yscale(elements[i]);
|
|
16
|
var mark = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth_alt();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
}
function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false)
{
if (is_undefined(arg0))
{
debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist");
return -4;
}
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker);
with (thismarker)
{
sprite_index = sprite;
image_index = index;
image_speed = imagespeed;
image_xscale = xscale;
image_yscale = yscale;
image_angle = angle;
image_blend = blend;
image_alpha = alpha;
if (arg2)
scr_depth_alt(id, arg2);
}
return thismarker;
}
function scr_assetgetinfo(arg0)
{
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed];
} (xloc, yloc, sprite, xscale, yscale, 0, 0, undefined, undefined, 0);
|
|
17
|
with (mark)
|
|
18
|
{
|
|
19
|
scr_depth_altscr_depth_alt
function scr_depth_alt(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10) + (arg1 * 10));
} ();
|
|
20
|
if (sprite_index == bg_dw_gerson_desk)
|
|
21
|
depth += 100;
|
|
22
|
}
|
|
23
|
}
|
|
24
|
}
|
|
25
|
if (!gersonrebattle)
|
|
26
|
{
|
|
27
|
targlayer = "BACKGROUND_GIVEDEPTH_TEMP";
|
|
28
|
layer_set_visible(targlayer, 0);
|
|
29
|
elements = layer_get_all_elements(targlayer);
|
|
30
|
for (var i = 0; i < array_length(elements); i++)
|
|
31
|
{
|
|
32
|
if (layer_get_element_type(elements[i]) == 4)
|
|
33
|
{
|
|
34
|
var sprite = layer_sprite_get_sprite(elements[i]);
|
|
35
|
var xloc = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (layer_sprite_get_x(elements[i]));
|
|
36
|
var yloc = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (layer_sprite_get_y(elements[i]));
|
|
37
|
var xscale = layer_sprite_get_xscale(elements[i]);
|
|
38
|
var yscale = layer_sprite_get_yscale(elements[i]);
|
|
39
|
var mark = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth_alt();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
}
function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false)
{
if (is_undefined(arg0))
{
debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist");
return -4;
}
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker);
with (thismarker)
{
sprite_index = sprite;
image_index = index;
image_speed = imagespeed;
image_xscale = xscale;
image_yscale = yscale;
image_angle = angle;
image_blend = blend;
image_alpha = alpha;
if (arg2)
scr_depth_alt(id, arg2);
}
return thismarker;
}
function scr_assetgetinfo(arg0)
{
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed];
} (xloc, yloc, sprite, xscale, yscale, 0, 0, undefined, undefined, 0);
|
|
40
|
with (mark)
|
|
41
|
scr_depth_altscr_depth_alt
function scr_depth_alt(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10) + (arg1 * 10));
} ();
|
|
42
|
}
|
|
43
|
}
|
|
44
|
}
|
|
45
|
if (gersonrebattle)
|
|
46
|
{
|
|
47
|
global.plot = 239.2;
|
|
48
|
con = 6;
|
|
49
|
with (obj_solidblock)
|
|
50
|
{
|
|
51
|
if (image_blend == #5900FF)
|
|
52
|
instance_destroy();
|
|
53
|
}
|
|
54
|
var fireplaceblocker = findspriteinfo(spr_debug_lightning_area);
|
|
55
|
with (instance_create(fireplaceblocker.x, fireplaceblocker.y, obj_solidblock))
|
|
56
|
{
|
|
57
|
sprite_index = fireplaceblocker.sprite_index;
|
|
58
|
image_xscale = fireplaceblocker.image_xscale;
|
|
59
|
image_yscale = fireplaceblocker.image_yscale;
|
|
60
|
}
|
|
61
|
var spritesArray = layer_get_all_elements("DEBUG_ASSETS");
|
|
62
|
for (var i = 0; i < array_length(spritesArray); i++)
|
|
63
|
{
|
|
64
|
if (layer_sprite_get_sprite(spritesArray[i]) == 4600)
|
|
65
|
{
|
|
66
|
var info = scr_assetgetinfo(spritesArray[i]);
|
|
67
|
blueflame = instance_create(info[2], info[3], obj_dw_church_warpflame);
|
|
68
|
with (blueflame)
|
|
69
|
{
|
|
70
|
roomtarg = 295;
|
|
71
|
entrance = 8;
|
|
72
|
color = "blue";
|
|
73
|
}
|
|
74
|
}
|
|
75
|
if (layer_sprite_get_sprite(spritesArray[i]) == 1021)
|
|
76
|
{
|
|
77
|
var info = scr_assetgetinfo(spritesArray[i]);
|
|
78
|
with (instance_create(info[2], info[3], obj_solidblock))
|
|
79
|
{
|
|
80
|
sprite_index = spr_pxwhite;
|
|
81
|
image_blend = c_black;
|
|
82
|
depth = layer_get_depth("Tiles_new_midground") - 10;
|
|
83
|
scr_sizescr_size
function scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{
with (arg2)
{
image_xscale = arg0;
image_yscale = arg1;
}
} (info[4], info[5]);
|
|
84
|
}
|
|
85
|
}
|
|
86
|
}
|
|
87
|
}
|
|
88
|
depthinit = 1;
|
|
89
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
90
|
{
|
|
91
|
if (global.tempflag[90] == 0.5)
|
|
92
|
{
|
|
93
|
global.tempflag[90] = 0;
|
|
94
|
var pos = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} ("kris", "debugwarp");
|
|
95
|
setxy(pos[0], pos[1], 1049);
|
|
96
|
setxy(pos[0] + 80, pos[1], 1235);
|
|
97
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate(arg0 = "none")
{
if (arg0 == "all")
{
with (obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else if (arg0 == "none")
{
if (object_index == obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else
{
with (obj_caterpillarchara)
{
if (name == arg0)
scr_caterpillar_interpolate_old();
}
}
}
function scr_caterinterp(arg0 = "none")
{
scr_caterpillar_interpolate(arg0);
}
function scr_caterpillar_interpolate_old()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ("all");
|
|
98
|
}
|
|
99
|
}
|
|
100
|
}
|
|
101
|
if (con == 1)
|
|
102
|
{
|
|
103
|
global.interact = 1;
|
|
104
|
if (i_ex(susie) && i_ex(kris))
|
|
105
|
{
|
|
106
|
con = -1;
|
|
107
|
scr_delay_var("con", 2, 2);
|
|
108
|
}
|
|
109
|
}
|
|
110
|
if (con == 2)
|
|
111
|
{
|
|
112
|
con = 3;
|
|
113
|
var krpos1 = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} ("kris", "pos1");
|
|
114
|
var krpos2 = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} ("kris", "pos2");
|
|
115
|
var supos1 = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} ("susie", "pos1");
|
|
116
|
var supos2 = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} ("susie", "pos2");
|
|
117
|
var supos3 = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} ("susie", "pos3");
|
|
118
|
var walkspeed = 2;
|
|
119
|
var walktime = max(round(abs(krpos1[0] - krpos2[0]) / walkspeed), 1);
|
|
120
|
cutscene_master = scr_cutscene_makescr_cutscene_make
function scr_cutscene_make()
{
_cutscene_master = instance_create(0, 0, obj_cutscene_master);
_cutscene_master.master_object = id;
return _cutscene_master;
} ();
|
|
121
|
scr_maincharacters_actorsscr_maincharacters_actors
function scr_maincharacters_actors()
{
actor_count = 0;
kr = 0;
kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index;
kr_actor.depth = obj_mainchara.depth;
with (obj_mainchara)
visible = 0;
for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++)
{
if (i_ex(global.cinstance[__jj]))
{
if (global.cinstance[__jj].name == "susie")
{
actor_count++;
su = __jj + 1;
su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index;
su_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "ralsei")
{
actor_count++;
ra = __jj + 1;
ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index;
ra_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "noelle")
{
actor_count++;
no = __jj + 1;
no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index;
no_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
}
}
} ();
|
|
122
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
123
|
c_setxyc_setxy
function c_setxy(arg0, arg1)
{
c_cmd("setxy", arg0, arg1, 0, 0);
} (krpos1[0], krpos1[1]);
|
|
124
|
c_walkdirectc_walkdirect
function c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
} (krpos2[0], krpos2[1], walktime);
|
|
125
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
126
|
c_setxyc_setxy
function c_setxy(arg0, arg1)
{
c_cmd("setxy", arg0, arg1, 0, 0);
} (supos1[0], supos1[1]);
|
|
127
|
c_walkdirectc_walkdirect
function c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
} (supos2[0], supos2[1], walktime);
|
|
128
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (walktime);
|
|
129
|
c_var_instancec_var_instance
function c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
} (id, "excl", 1);
|
|
130
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (20);
|
|
131
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
132
|
walkspeed = 8;
|
|
133
|
walktime = max(round(abs(supos2[0] - supos3[0]) / walkspeed), 1);
|
|
134
|
c_walkdirectc_walkdirect
function c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
} (supos3[0], supos3[1], walktime);
|
|
135
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
136
|
var pos = findspriteinfo(spr_krisl_dark, "DEBUG_ASSETS");
|
|
137
|
c_walkdirectc_walkdirect
function c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
} (pos.x, pos.y, walktime + 15);
|
|
138
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (walktime);
|
|
139
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("susie");
|
|
140
|
c_msgsetlocc_msgsetloc
function c_msgsetloc(arg0, arg1, arg2)
{
var msg_index = arg0;
var english = arg1;
var localized_string_id = arg2;
var str = english;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
} (0, Face 7* Hey,Delay 11 I was right!!Delay 11 It's the old man's study!Wait for input"\\E7* Hey^1, I was right!^1! It's the old man's study!/", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_165_0" );
|
|
141
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face N* He must've been...Delay 11 leading us here,Delay 11 right?Wait for input"\\EN* He must've been..^1. leading us here^1, right?/", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_166_0" );
|
|
142
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 9* Now all we gotta do is get ahold of him...Wait for inputClose Message"\\E9* Now all we gotta do is get ahold of him.../%", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_167_0" );
|
|
143
|
c_talkc_talk
function c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
} ();
|
|
144
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (1);
|
|
145
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
146
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("r");
|
|
147
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (2);
|
|
148
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
149
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_walk_right_dw_look_down);
|
|
150
|
c_wait_talkc_wait_talk
function c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
} ();
|
|
151
|
c_actortokrisc_actortokris
function c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
} ();
|
|
152
|
c_actortocaterpillarc_actortocaterpillar
function c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
} ();
|
|
153
|
c_terminatekillactorsc_terminatekillactors
function c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
} ();
|
|
154
|
}
|
|
155
|
if (con == 3 && !instance_exists(obj_cutscene_master))
|
|
156
|
{
|
|
157
|
global.plot = 239.1;
|
|
158
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate(arg0 = "none")
{
if (arg0 == "all")
{
with (obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else if (arg0 == "none")
{
if (object_index == obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else
{
with (obj_caterpillarchara)
{
if (name == arg0)
scr_caterpillar_interpolate_old();
}
}
}
function scr_caterinterp(arg0 = "none")
{
scr_caterpillar_interpolate(arg0);
}
function scr_caterpillar_interpolate_old()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ("all");
|
|
159
|
global.facing = 0;
|
|
160
|
global.interact = 0;
|
|
161
|
con = 4;
|
|
162
|
scr_tempsavescr_tempsave
function scr_tempsave()
{
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2;
} ();
|
|
163
|
}
|
|
164
|
if (con == 4)
|
|
165
|
{
|
|
166
|
if (scr_trigcheckscr_trigcheck
function scr_trigcheck(arg0)
{
var ____trig = 0;
if (is_string(arg0))
{
with (obj_trigger)
{
if (extflag == arg0)
{
if (place_meeting(x, y, obj_mainchara))
____trig++;
}
}
}
return ____trig;
}
function scr_trigcheck_ext(arg0, arg1 = id)
{
var ____trig = 0;
if (is_string(arg0))
{
with (obj_trigger)
{
if (extflag == arg0)
{
if (place_meeting(x, y, arg1))
____trig++;
}
}
}
return ____trig;
} ("cut2"))
|
|
167
|
{
|
|
168
|
global.interact = 1;
|
|
169
|
con = 5;
|
|
170
|
cutscene_master = scr_cutscene_makescr_cutscene_make
function scr_cutscene_make()
{
_cutscene_master = instance_create(0, 0, obj_cutscene_master);
_cutscene_master.master_object = id;
return _cutscene_master;
} ();
|
|
171
|
scr_maincharacters_actorsscr_maincharacters_actors
function scr_maincharacters_actors()
{
actor_count = 0;
kr = 0;
kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index;
kr_actor.depth = obj_mainchara.depth;
with (obj_mainchara)
visible = 0;
for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++)
{
if (i_ex(global.cinstance[__jj]))
{
if (global.cinstance[__jj].name == "susie")
{
actor_count++;
su = __jj + 1;
su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index;
su_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "ralsei")
{
actor_count++;
ra = __jj + 1;
ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index;
ra_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "noelle")
{
actor_count++;
no = __jj + 1;
no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index;
no_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
}
}
} ();
|
|
172
|
c_msgruncheck(true);
|
|
173
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("susie");
|
|
174
|
c_msgsetlocc_msgsetloc
function c_msgsetloc(arg0, arg1, arg2)
{
var msg_index = arg0;
var english = arg1;
var localized_string_id = arg2;
var str = english;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
} (0, Face D* ...Delay 11 hey,Delay 11 Kris.Wait for input"\\ED* ..^1. hey^1, Kris./", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_214_0" );
|
|
175
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face N* You think he'd...Delay 11 want to come to our Castle Town?Wait for input"\\EN* You think he'd..^1. want to come to our Castle Town?/", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_215_0" );
|
|
176
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 9* I mean,Delay 11 obviously he would,Delay 11 right?Wait for input"\\E9* I mean^1, obviously he would^1, right?/", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_216_0" );
|
|
177
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face D* ...Wait for input"\\ED* .../", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_217_0" );
|
|
178
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face S* Might mean...Delay 11 taking the hammer,Delay 11 but...Wait for input"\\ES* Might mean..^1. taking the hammer^1, but.../", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_218_0" );
|
|
179
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 9* ...Delay 11 I'm sure he'd be cool with it though,Delay 11 right?Wait for inputClose Message"\\E9* ..^1. I'm sure he'd be cool with it though^1, right?/%", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_219_0" );
|
|
180
|
c_talkc_talk
function c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
} ();
|
|
181
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (1);
|
|
182
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
183
|
c_flipc_flip
function c_flip(arg0)
{
c_cmd("flip", arg0, 0, 0, 0);
} ("x");
|
|
184
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_walk_right_dw_look_down);
|
|
185
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (2);
|
|
186
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_walk_back_arm);
|
|
187
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (4);
|
|
188
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_walk_right_dw_look_down);
|
|
189
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (5);
|
|
190
|
c_flipc_flip
function c_flip(arg0)
{
c_cmd("flip", arg0, 0, 0, 0);
} ("x");
|
|
191
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("l");
|
|
192
|
c_wait_talkc_wait_talk
function c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
} ();
|
|
193
|
c_actortokrisc_actortokris
function c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
} ();
|
|
194
|
c_actortocaterpillarc_actortocaterpillar
function c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
} ();
|
|
195
|
c_terminatekillactorsc_terminatekillactors
function c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
} ();
|
|
196
|
}
|
|
197
|
}
|
|
198
|
if (con == 5 && !i_ex(obj_cutscene_master))
|
|
199
|
{
|
|
200
|
global.interact = 0;
|
|
201
|
global.plot = 239.2;
|
|
202
|
con = 6;
|
|
203
|
}
|
|
204
|
if (excl == 1)
|
|
205
|
{
|
|
206
|
excl = 0;
|
|
207
|
with (obj_actor)
|
|
208
|
{
|
|
209
|
if (name == "susie")
|
|
210
|
{
|
|
211
|
var doomtime = 20;
|
|
212
|
with (scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth_alt();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
}
function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false)
{
if (is_undefined(arg0))
{
debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist");
return -4;
}
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker);
with (thismarker)
{
sprite_index = sprite;
image_index = index;
image_speed = imagespeed;
image_xscale = xscale;
image_yscale = yscale;
image_angle = angle;
image_blend = blend;
image_alpha = alpha;
if (arg2)
scr_depth_alt(id, arg2);
}
return thismarker;
}
function scr_assetgetinfo(arg0)
{
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed];
} (x + 20, y - 20, spr_exc, 2, 2, undefined, undefined, undefined, depth - 1, undefined, doomtime))
|
|
213
|
{
|
|
214
|
vspeed = -3;
|
|
215
|
gravity = 0.7;
|
|
216
|
scr_limitval_upper(id, "y", y);
|
|
217
|
}
|
|
218
|
}
|
|
219
|
}
|
|
220
|
}
|
|
221
|
with (shop)
|
|
222
|
{
|
|
223
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} (marker, 60);
|
|
224
|
if (myinteract == 3)
|
|
225
|
{
|
|
226
|
didgetitem = -1;
|
|
227
|
global.interact = 1;
|
|
228
|
global.msc = -99;
|
|
229
|
global.choice = -1;
|
|
230
|
global.choicemsg[0] = stringsetloc(#Yes"#Yes", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_284_0" );
|
|
231
|
global.choicemsg[1] = stringsetloc(#No"#No", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_285_0" );
|
|
232
|
global.choicemsg[2] = stringset("");
|
|
233
|
global.choicemsg[3] = stringset("");
|
|
234
|
if (global.flag[1593] == 0)
|
|
235
|
{
|
|
236
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
237
|
msgsetloc(0, * (It's an unmanned table of item...)Wait for input"* (It's an unmanned table of item...)/", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_292_0" );
|
|
238
|
msgnextloc(* (...Delay 11 take some?)Wait for input"* (..^1. take some?)/", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_293_0" );
|
|
239
|
msgnext("\\C2 ");
|
|
240
|
d_make();
|
|
241
|
myinteract = 10;
|
|
242
|
}
|
|
243
|
else
|
|
244
|
{
|
|
245
|
var price = 99;
|
|
246
|
if (global.flag[1594] > 0)
|
|
247
|
price = 100;
|
|
248
|
if (!instance_exists(obj_moneydisplay))
|
|
249
|
instance_create(0, 0, obj_moneydisplay);
|
|
250
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
251
|
msgsetsubloc(0, "* (It's a Rhapsotea. Take it for $~1?)/", string(price), "obj_dw_churchb_gersonstudy_slash_Step_0_gml_307_0");
|
|
252
|
msgnext("\\C2 ");
|
|
253
|
d_make();
|
|
254
|
myinteract = 20;
|
|
255
|
}
|
|
256
|
}
|
|
257
|
if (myinteract == 10 && global.choice != -1)
|
|
258
|
{
|
|
259
|
k_d(1);
|
|
260
|
if (global.choice == 0)
|
|
261
|
{
|
|
262
|
global.flag[1593] = 1;
|
|
263
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
264
|
msgsetloc(0, Face 5* Hey,Delay 11 that's the old man's,Delay 11 dumbass!Wait for input"\\E5* Hey^1, that's the old man's^1, dumbass!/", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_321_0" );
|
|
265
|
msgnextloc(Face K* You gotta leave some money or something...Wait for inputClose Message"\\EK* You gotta leave some money or something.../%", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_322_0" );
|
|
266
|
}
|
|
267
|
if (global.choice == 1)
|
|
268
|
{
|
|
269
|
global.flag[1593] = 2;
|
|
270
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
271
|
msgsetloc(0, Face L* ...Delay 11 yeah,Delay 11 that's not the cool type of stealing.Wait for inputClose Message"\\EL* ..^1. yeah^1, that's not the cool type of stealing./%", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_328_0" );
|
|
272
|
}
|
|
273
|
d_make(undefined, undefined, 4);
|
|
274
|
myinteract = 11;
|
|
275
|
}
|
|
276
|
if (myinteract == 11 && !d_ex())
|
|
277
|
myinteract = 3;
|
|
278
|
if (myinteract == 20 && global.choice != -1)
|
|
279
|
{
|
|
280
|
with (obj_moneydisplay)
|
|
281
|
instance_destroy();
|
|
282
|
if (global.choice == 1)
|
|
283
|
{
|
|
284
|
k_d();
|
|
285
|
myinteract = 0;
|
|
286
|
global.interact = 0;
|
|
287
|
}
|
|
288
|
if (global.choice == 0)
|
|
289
|
{
|
|
290
|
myinteract = 0;
|
|
291
|
k_d(1);
|
|
292
|
var price = 99;
|
|
293
|
if (global.flag[1594] > 0)
|
|
294
|
price = 100;
|
|
295
|
var haveroom = scr_inventoryspacescr_inventoryspace
function scr_inventoryspace()
{
var freespace = 0;
var inventoryspace = 12;
for (var i = 0; i < inventoryspace; i++)
{
if (global.item[i] == 0)
freespace++;
}
debug_message("from " + object_get_name(object_index) + ": scr_inventoryspace(): free inventory slots=" + string(freespace));
return freespace;
}
function scr_pocketspace()
{
var pocketspace = 0;
for (var i = 0; i < global.flag[64 storage_size]; i++)
{
if (global.pocketitem[i] == 0)
pocketspace++;
}
debug_message("from " + object_get_name(object_index) + ": scr_pocketspace(): free pocket slots=" + string(pocketspace));
return pocketspace;
} () + scr_pocketspace();
|
|
296
|
var havegold = false;
|
|
297
|
if (global.gold >= price)
|
|
298
|
havegold = true;
|
|
299
|
if (haveroom && havegold)
|
|
300
|
{
|
|
301
|
var paidtoomuch = false;
|
|
302
|
var paidexact = false;
|
|
303
|
if (price == 99 && global.gold > 99)
|
|
304
|
{
|
|
305
|
paidtoomuch = true;
|
|
306
|
price = 100;
|
|
307
|
}
|
|
308
|
if (price == 99 && global.gold == 99)
|
|
309
|
paidexact = true;
|
|
310
|
if (paidtoomuch)
|
|
311
|
{
|
|
312
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
313
|
msgsetloc(0, Face C* ...Delay 11 Dude,Delay 11 that's a $100. It costs $99.Wait for input"\\EC* ..^1. Dude^1, that's a $100. It costs $99./", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_371_0" );
|
|
314
|
msgnextloc(Face 1* We gotta,Delay 11 uh...Delay 11 make change.Wait for input"\\E1* We gotta^1, uh..^1. make change./", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_372_0" );
|
|
315
|
msgnextloc(Face 0* ...Wait for input"\\E0* .../", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_373_0" );
|
|
316
|
msgnextloc(Face K* Nah,Delay 11 screw it. I'm not doing that.Wait for input"\\EK* Nah^1, screw it. I'm not doing that./", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_374_0" );
|
|
317
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("no_name", 0);
|
|
318
|
msgnextloc(* (You paid an extra $1 for the Rhapsotea...)Wait for input"* (You paid an extra $1 for the Rhapsotea...)/", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_376_0" );
|
|
319
|
msgnext(scr_itemget_anytype_textscr_itemget_anytype_text
function scr_itemget_anytype_text()
{
noroom = 0;
scr_itemget_anytype(argument[0], argument[1]);
var itemgetstring = "";
itemname = "NULL";
itemtypename = "NULL";
var _itemtype = argument1;
var _itemid = argument0;
if (_itemtype == "armor")
{
scr_armorinfo(_itemid);
itemname = armornametemp;
itemtypename = stringsetloc(ARMORs"ARMORs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_22_0" );
}
else if (_itemtype == "weapon")
{
scr_weaponinfo(_itemid);
itemname = weaponnametemp;
itemtypename = stringsetloc(WEAPONs"WEAPONs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_29_0" );
}
if (_itemtype == "item")
{
scr_iteminfo(_itemid);
itemname = itemnameb;
itemtypename = stringsetloc(ITEMs"ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_36_0" );
if (_pocketed)
itemtypename = stringsetloc(STORAGE"STORAGE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_38_0" );
}
if (_itemtype == "key")
{
scr_keyiteminfo(_itemid);
itemname = tempkeyitemname;
itemtypename = stringsetloc(KEY ITEMs"KEY ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_44_0" );
}
if (_itemtype == "money")
{
noroom = 0;
itemtypename = stringsetloc(MONEY HOLE"MONEY HOLE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_51_0" );
itemname = string(_itemid) + stringsetloc( Dark Dollars" Dark Dollars", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_52_0" );
}
if (noroom == 0)
itemgetstring = stringsetsubloc("* (\\cY~1\\cW was added to your \\cY~2\\cW.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_76_0");
else
itemgetstring = stringsetsubloc("* (You have too many \\cY~2\\cW to take \\cY~1\\c0.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_83_0");
if (argument_count >= 3)
itemgetstring += argument[2];
else
itemgetstring += "/%";
return itemgetstring;
} (61, "item"));
|
|
320
|
didgetitem = 6;
|
|
321
|
global.gold -= price;
|
|
322
|
global.flag[1594]++;
|
|
323
|
}
|
|
324
|
else if (paidexact)
|
|
325
|
{
|
|
326
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
327
|
msgsetloc(0, Face Y* Check it. Perfect change,Delay 11 loser.Wait for input"\\EY* Check it. Perfect change^1, loser./", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_385_0" );
|
|
328
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("no_name", 0);
|
|
329
|
msgnext(scr_itemget_anytype_textscr_itemget_anytype_text
function scr_itemget_anytype_text()
{
noroom = 0;
scr_itemget_anytype(argument[0], argument[1]);
var itemgetstring = "";
itemname = "NULL";
itemtypename = "NULL";
var _itemtype = argument1;
var _itemid = argument0;
if (_itemtype == "armor")
{
scr_armorinfo(_itemid);
itemname = armornametemp;
itemtypename = stringsetloc(ARMORs"ARMORs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_22_0" );
}
else if (_itemtype == "weapon")
{
scr_weaponinfo(_itemid);
itemname = weaponnametemp;
itemtypename = stringsetloc(WEAPONs"WEAPONs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_29_0" );
}
if (_itemtype == "item")
{
scr_iteminfo(_itemid);
itemname = itemnameb;
itemtypename = stringsetloc(ITEMs"ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_36_0" );
if (_pocketed)
itemtypename = stringsetloc(STORAGE"STORAGE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_38_0" );
}
if (_itemtype == "key")
{
scr_keyiteminfo(_itemid);
itemname = tempkeyitemname;
itemtypename = stringsetloc(KEY ITEMs"KEY ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_44_0" );
}
if (_itemtype == "money")
{
noroom = 0;
itemtypename = stringsetloc(MONEY HOLE"MONEY HOLE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_51_0" );
itemname = string(_itemid) + stringsetloc( Dark Dollars" Dark Dollars", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_52_0" );
}
if (noroom == 0)
itemgetstring = stringsetsubloc("* (\\cY~1\\cW was added to your \\cY~2\\cW.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_76_0");
else
itemgetstring = stringsetsubloc("* (You have too many \\cY~2\\cW to take \\cY~1\\c0.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_83_0");
if (argument_count >= 3)
itemgetstring += argument[2];
else
itemgetstring += "/%";
return itemgetstring;
} (61, "item"));
|
|
330
|
didgetitem = 2;
|
|
331
|
global.gold -= price;
|
|
332
|
}
|
|
333
|
else
|
|
334
|
{
|
|
335
|
global.gold -= price;
|
|
336
|
msgset(0, scr_itemget_anytype_textscr_itemget_anytype_text
function scr_itemget_anytype_text()
{
noroom = 0;
scr_itemget_anytype(argument[0], argument[1]);
var itemgetstring = "";
itemname = "NULL";
itemtypename = "NULL";
var _itemtype = argument1;
var _itemid = argument0;
if (_itemtype == "armor")
{
scr_armorinfo(_itemid);
itemname = armornametemp;
itemtypename = stringsetloc(ARMORs"ARMORs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_22_0" );
}
else if (_itemtype == "weapon")
{
scr_weaponinfo(_itemid);
itemname = weaponnametemp;
itemtypename = stringsetloc(WEAPONs"WEAPONs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_29_0" );
}
if (_itemtype == "item")
{
scr_iteminfo(_itemid);
itemname = itemnameb;
itemtypename = stringsetloc(ITEMs"ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_36_0" );
if (_pocketed)
itemtypename = stringsetloc(STORAGE"STORAGE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_38_0" );
}
if (_itemtype == "key")
{
scr_keyiteminfo(_itemid);
itemname = tempkeyitemname;
itemtypename = stringsetloc(KEY ITEMs"KEY ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_44_0" );
}
if (_itemtype == "money")
{
noroom = 0;
itemtypename = stringsetloc(MONEY HOLE"MONEY HOLE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_51_0" );
itemname = string(_itemid) + stringsetloc( Dark Dollars" Dark Dollars", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_52_0" );
}
if (noroom == 0)
itemgetstring = stringsetsubloc("* (\\cY~1\\cW was added to your \\cY~2\\cW.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_76_0");
else
itemgetstring = stringsetsubloc("* (You have too many \\cY~2\\cW to take \\cY~1\\c0.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_83_0");
if (argument_count >= 3)
itemgetstring += argument[2];
else
itemgetstring += "/%";
return itemgetstring;
} (61, "item"));
|
|
337
|
didgetitem = 0;
|
|
338
|
global.flag[1594]++;
|
|
339
|
}
|
|
340
|
}
|
|
341
|
if (!haveroom)
|
|
342
|
{
|
|
343
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
344
|
msgsetloc(0, Face K* Dude,Delay 11 you can't even hold it. Too much stuff.Wait for input"\\EK* Dude^1, you can't even hold it. Too much stuff./", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_403_0" );
|
|
345
|
msgnextloc(Face C* The hell are you lugging around,Delay 11 anyway?Wait for inputClose Message"\\EC* The hell are you lugging around^1, anyway?/%", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_404_0" );
|
|
346
|
}
|
|
347
|
if (!havegold)
|
|
348
|
{
|
|
349
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
350
|
msgsetloc(0, Face K* Wrong bill,Delay 11 dumbass.Delay 11 That's not enough!Wait for inputClose Message"\\EK* Wrong bill^1, dumbass^1. That's not enough!/%", "obj_dw_churchb_gersonstudy_slash_Step_0_gml_409_0" );
|
|
351
|
}
|
|
352
|
d_make();
|
|
353
|
myinteract = 99;
|
|
354
|
}
|
|
355
|
}
|
|
356
|
if (myinteract == 99 && d_ex())
|
|
357
|
{
|
|
358
|
if (didgetitem != -1 && i_ex(obj_writer))
|
|
359
|
{
|
|
360
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == didgetitem)
|
|
361
|
{
|
|
362
|
debug_print("got item");
|
|
363
|
didgetitem = -1;
|
|
364
|
snd_play(snd_equip);
|
|
365
|
}
|
|
366
|
}
|
|
367
|
}
|
|
368
|
if (myinteract == 99 && !d_ex())
|
|
369
|
{
|
|
370
|
global.interact = 0;
|
|
371
|
myinteract = 0;
|
|
372
|
}
|
|
373
|
}
|
|
374
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
375
|
{
|
|
376
|
if (keyboard_check_pressed(ord("T")))
|
|
377
|
global.gold = 4;
|
|
378
|
if (keyboard_check_pressed(ord("1")))
|
|
379
|
{
|
|
380
|
debug_print("100 gold");
|
|
381
|
global.gold = 100;
|
|
382
|
}
|
|
383
|
if (keyboard_check_pressed(ord("2")))
|
|
384
|
{
|
|
385
|
debug_print("99 gold");
|
|
386
|
global.gold = 99;
|
|
387
|
}
|
|
388
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("0")))
|
|
389
|
room_goto(room_dw_church_gersonstudy);
|
|
390
|
}
|