|
1
|
depth = 5000;
|
|
2
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
3
|
{
|
|
4
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("0")))
|
|
5
|
room_goto(room_dw_churchb_moneyfountain);
|
|
6
|
}
|
|
7
|
if (!init)
|
|
8
|
{
|
|
9
|
var _pos = scr_assetlocscr_assetloc
function scr_assetloc(arg0 = "", arg1 = "")
{
var _mylayer = layer_get_id(arg0);
if (_mylayer == -1)
{
debug_print("Warning: Check Output Console");
debug_message("scr_makenpc(" + arg0 + "," + arg1 + ") Result: Layer Not Found");
return -4;
}
var sourceAsset = layer_sprite_get_id(_mylayer, arg1);
if (sourceAsset == -1)
{
var _result = "scr_makenpc(\"" + arg0 + "\",\"" + arg1 + "\") Result: Sprite Not Found";
debug_message(_result);
debug_print("Warning: Check Output Console");
return -4;
}
var _myx = layer_sprite_get_x(sourceAsset);
var _myy = layer_sprite_get_y(sourceAsset);
var _mysprite = layer_sprite_get_sprite(sourceAsset);
var _myxscale = layer_sprite_get_xscale(sourceAsset);
var _myyscale = layer_sprite_get_yscale(sourceAsset);
var _myalpha = layer_sprite_get_alpha(sourceAsset);
var _myangle = layer_sprite_get_angle(sourceAsset);
var _myblend = layer_sprite_get_blend(sourceAsset);
var _myspeed = layer_sprite_get_speed(sourceAsset);
var _myindex = layer_sprite_get_index(sourceAsset);
return [_myx, _myy, _mysprite, _myxscale, _myyscale, _myalpha, _myblend, _myspeed, _myindex];
} (DEBUG_ASSETS"DEBUG_ASSETS", "dspr_room_dw_church_moneyfountain_shine" );
|
|
10
|
shine = 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];
} (_pos[0], _pos[1], spr_shine_white, 2, 2, 0.0625, undefined, undefined, undefined, 1);
|
|
11
|
shine.siner = 0;
|
|
12
|
if (global.flag[898] > 0 || global.plot >= 242)
|
|
13
|
safe_delete(shine);
|
|
14
|
_pos = scr_assetlocscr_assetloc
function scr_assetloc(arg0 = "", arg1 = "")
{
var _mylayer = layer_get_id(arg0);
if (_mylayer == -1)
{
debug_print("Warning: Check Output Console");
debug_message("scr_makenpc(" + arg0 + "," + arg1 + ") Result: Layer Not Found");
return -4;
}
var sourceAsset = layer_sprite_get_id(_mylayer, arg1);
if (sourceAsset == -1)
{
var _result = "scr_makenpc(\"" + arg0 + "\",\"" + arg1 + "\") Result: Sprite Not Found";
debug_message(_result);
debug_print("Warning: Check Output Console");
return -4;
}
var _myx = layer_sprite_get_x(sourceAsset);
var _myy = layer_sprite_get_y(sourceAsset);
var _mysprite = layer_sprite_get_sprite(sourceAsset);
var _myxscale = layer_sprite_get_xscale(sourceAsset);
var _myyscale = layer_sprite_get_yscale(sourceAsset);
var _myalpha = layer_sprite_get_alpha(sourceAsset);
var _myangle = layer_sprite_get_angle(sourceAsset);
var _myblend = layer_sprite_get_blend(sourceAsset);
var _myspeed = layer_sprite_get_speed(sourceAsset);
var _myindex = layer_sprite_get_index(sourceAsset);
return [_myx, _myy, _mysprite, _myxscale, _myyscale, _myalpha, _myblend, _myspeed, _myindex];
} (DEBUG_ASSETS"DEBUG_ASSETS", "dspr_room_dw_church_moneyfountain_fountainpos" );
|
|
15
|
setxy(_pos[0], _pos[1], fountain);
|
|
16
|
init = 1;
|
|
17
|
}
|
|
18
|
if (changedoor == 1)
|
|
19
|
{
|
|
20
|
with (obj_doorAny)
|
|
21
|
{
|
|
22
|
if (init)
|
|
23
|
{
|
|
24
|
if (doorRoom == room_dw_church_waterfallroom)
|
|
25
|
{
|
|
26
|
doorRoom = room_dw_church_waterfalltearoom;
|
|
27
|
other.changedoor = 2;
|
|
28
|
debug_print("changed door");
|
|
29
|
}
|
|
30
|
}
|
|
31
|
}
|
|
32
|
}
|
|
33
|
with (wafernpc)
|
|
34
|
{
|
|
35
|
scr_sizescr_size
function scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{
with (arg2)
{
image_xscale = arg0;
image_yscale = arg1;
}
} (3.9, 8);
|
|
36
|
setxy((marker.xstart + markerxoffset) - 4, marker.ystart + markeryoffset);
|
|
37
|
if (global.flag[1787] == 1)
|
|
38
|
{
|
|
39
|
if (global.plot > 240)
|
|
40
|
x = room_width * 2;
|
|
41
|
}
|
|
42
|
if (myinteract == 3)
|
|
43
|
{
|
|
44
|
global.interact = 1;
|
|
45
|
myinteract = 4;
|
|
46
|
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");
|
|
47
|
msgsetloc(0, * (It's some sort of statue.)Wait for inputClose Message"* (It's some sort of statue.)/%", "obj_dw_church_moneyfountain_slash_Step_0_gml_66_0" );
|
|
48
|
if (global.plot >= 242)
|
|
49
|
{
|
|
50
|
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");
|
|
51
|
msgsetloc(0, * We are not accepting further donations at this time.Wait for input"* We are not accepting further donations at this time./", "obj_dw_church_moneyfountain_slash_Step_0_gml_71_0" );
|
|
52
|
msgnextloc(* Take our money,Delay 11 steal from us,Delay 11 beat us down!Wait for inputClose Message"* Take our money^1, steal from us^1, beat us down!/%", "obj_dw_church_moneyfountain_slash_Step_0_gml_72_0" );
|
|
53
|
}
|
|
54
|
d_make();
|
|
55
|
}
|
|
56
|
if (myinteract > 3 && d_ex())
|
|
57
|
{
|
|
58
|
var trig = 0;
|
|
59
|
if (!i_ex(obj_writer))
|
|
60
|
trig = 1;
|
|
61
|
with (obj_writer)
|
|
62
|
{
|
|
63
|
if (halt)
|
|
64
|
trig = 1;
|
|
65
|
}
|
|
66
|
if (!trig)
|
|
67
|
marker.image_index += 0.25;
|
|
68
|
}
|
|
69
|
if (myinteract == 4 && !d_ex())
|
|
70
|
{
|
|
71
|
marker.image_index = 0;
|
|
72
|
global.interact = 0;
|
|
73
|
myinteract = 0;
|
|
74
|
}
|
|
75
|
}
|
|
76
|
with (fountain)
|
|
77
|
{
|
|
78
|
if (myinteract == 3)
|
|
79
|
{
|
|
80
|
safe_delete(other.shine);
|
|
81
|
mymony = global.gold;
|
|
82
|
newmony = 0;
|
|
83
|
global.interact = 1;
|
|
84
|
global.msc = -99;
|
|
85
|
global.choice = -1;
|
|
86
|
global.choicemsg[0] = stringsetloc(#Yes"#Yes", "obj_dw_church_moneyfountain_slash_Step_0_gml_110_0" );
|
|
87
|
global.choicemsg[1] = stringsetloc(#No"#No", "obj_dw_church_moneyfountain_slash_Step_0_gml_111_0" );
|
|
88
|
global.choicemsg[2] = stringset("");
|
|
89
|
global.choicemsg[3] = stringset("");
|
|
90
|
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");
|
|
91
|
msgsetloc(0, * (It's a pool...Delay 11 throw money in?)Wait for input"* (It's a pool..^1. throw money in?)/", "obj_dw_church_moneyfountain_slash_Step_0_gml_115_0" );
|
|
92
|
if (global.flag[898] > 0)
|
|
93
|
msgsetsubloc(0, "* (There's $~1 in the fountain. Throw in more?)/", string(global.flag[898]), "obj_dw_church_moneyfountain_slash_Step_0_gml_119_0");
|
|
94
|
msgnext("\\C2 ");
|
|
95
|
myinteract = 4;
|
|
96
|
if (global.plot >= 242)
|
|
97
|
{
|
|
98
|
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");
|
|
99
|
msgsetloc(0, * (The water glitters vacantly.)Wait for inputClose Message"* (The water glitters vacantly.)/%", "obj_dw_church_moneyfountain_slash_Step_0_gml_129_0" );
|
|
100
|
myinteract = 999;
|
|
101
|
}
|
|
102
|
d_make();
|
|
103
|
}
|
|
104
|
if (myinteract == 4 && global.choice != -1)
|
|
105
|
{
|
|
106
|
k_d(1);
|
|
107
|
if (global.choice == 0)
|
|
108
|
{
|
|
109
|
if (global.gold > 0)
|
|
110
|
{
|
|
111
|
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");
|
|
112
|
msgsetloc(0, * (How much will you throw in?)"* (How much will you throw in?)", "obj_dw_church_moneyfountain_slash_Step_0_gml_144_0" );
|
|
113
|
d_make();
|
|
114
|
myinteract = 5;
|
|
115
|
}
|
|
116
|
else
|
|
117
|
{
|
|
118
|
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");
|
|
119
|
msgsetloc(0, * (You don't have any money.)Wait for inputClose Message"* (You don't have any money.)/%", "obj_dw_church_moneyfountain_slash_Step_0_gml_151_0" );
|
|
120
|
d_make();
|
|
121
|
myinteract = 999;
|
|
122
|
}
|
|
123
|
}
|
|
124
|
else
|
|
125
|
{
|
|
126
|
myinteract = 0;
|
|
127
|
global.interact = 0;
|
|
128
|
}
|
|
129
|
}
|
|
130
|
if (myinteract == 5)
|
|
131
|
{
|
|
132
|
var trig = 0;
|
|
133
|
with (obj_writer)
|
|
134
|
{
|
|
135
|
if (pos >= length)
|
|
136
|
trig = 1;
|
|
137
|
}
|
|
138
|
if (trig)
|
|
139
|
{
|
|
140
|
var remside = obj_dialoguer.side;
|
|
141
|
numentry = instance_create(x, y, obj_numberentry);
|
|
142
|
numentry.side = remside;
|
|
143
|
numentry.maxnum = global.gold;
|
|
144
|
numentry.biginc = 25;
|
|
145
|
numentry.drawbox = false;
|
|
146
|
numentry.yoff = -2;
|
|
147
|
numentry.cancelbuffer = 10;
|
|
148
|
myinteract = 6;
|
|
149
|
numentry.showmoney = true;
|
|
150
|
numentry.numinc = 10;
|
|
151
|
numentry.biginc = 50;
|
|
152
|
}
|
|
153
|
}
|
|
154
|
if (myinteract == 6)
|
|
155
|
{
|
|
156
|
if (numentry.result == -2 || numentry.result == 0)
|
|
157
|
{
|
|
158
|
k_d();
|
|
159
|
myinteract = 0;
|
|
160
|
global.interact = 0;
|
|
161
|
safe_delete(numentry);
|
|
162
|
}
|
|
163
|
else if (numentry.result > 0)
|
|
164
|
{
|
|
165
|
k_d(1);
|
|
166
|
newmony = numentry.result;
|
|
167
|
myinteract = 7;
|
|
168
|
safe_delete(numentry);
|
|
169
|
}
|
|
170
|
}
|
|
171
|
if (myinteract == 7)
|
|
172
|
{
|
|
173
|
if (global.flag[898] == 0)
|
|
174
|
{
|
|
175
|
with (other.jokenpc)
|
|
176
|
setxy(marker.xstart + markerxoffset, marker.ystart + markeryoffset);
|
|
177
|
}
|
|
178
|
global.flag[898] = newmony + global.flag[898];
|
|
179
|
global.gold -= newmony;
|
|
180
|
var _stay = 0;
|
|
181
|
if (global.flag[898] >= 100 && global.flag[1500] == 0)
|
|
182
|
{
|
|
183
|
myinteract = 10;
|
|
184
|
global.flag[1500] = 1;
|
|
185
|
_stay = 2;
|
|
186
|
}
|
|
187
|
else
|
|
188
|
{
|
|
189
|
myinteract = 999;
|
|
190
|
}
|
|
191
|
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");
|
|
192
|
var monystring = stringsetloc(Dark Dollar"Dark Dollar", "obj_dw_church_moneyfountain_slash_Step_0_gml_230_0" );
|
|
193
|
if (newmony > 1)
|
|
194
|
monystring = stringsetloc(Dark Dollars"Dark Dollars", "obj_dw_church_moneyfountain_slash_Step_0_gml_231_0" );
|
|
195
|
msgsetsubloc(0, "* (You threw ~1 ~2 into the fountain. The Fountain now holds $~3.)/%", string(newmony), monystring, string(global.flag[898]), "obj_dw_church_moneyfountain_slash_Step_0_gml_232_0");
|
|
196
|
with (d_make())
|
|
197
|
stay = _stay;
|
|
198
|
snd_play_delay(snd_equip, 8);
|
|
199
|
newmony = 0;
|
|
200
|
}
|
|
201
|
if (myinteract == 10 && !d_ex())
|
|
202
|
{
|
|
203
|
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");
|
|
204
|
msgsetloc(0, * (...? The money you threw split the stream of the waterfall!)Wait for inputClose Message"* (...? The money you threw split the stream of the waterfall!)/%", "obj_dw_church_moneyfountain_slash_Step_0_gml_243_0" );
|
|
205
|
d_make();
|
|
206
|
myinteract = 10.1;
|
|
207
|
}
|
|
208
|
if (myinteract == 10.1 && !d_ex())
|
|
209
|
{
|
|
210
|
with (obj_dw_church_waterfall)
|
|
211
|
dosep = 1;
|
|
212
|
myinteract = 11;
|
|
213
|
}
|
|
214
|
if (myinteract == 11)
|
|
215
|
{
|
|
216
|
dosep = 0;
|
|
217
|
myinteract = 999;
|
|
218
|
}
|
|
219
|
if (myinteract == 999 && !d_ex())
|
|
220
|
{
|
|
221
|
global.interact = 0;
|
|
222
|
myinteract = 0;
|
|
223
|
}
|
|
224
|
}
|
|
225
|
with (jokenpc)
|
|
226
|
{
|
|
227
|
marker.image_index += 0.125;
|
|
228
|
if (myinteract == 3)
|
|
229
|
{
|
|
230
|
global.interact = 1;
|
|
231
|
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");
|
|
232
|
msgsetloc(0, * Kinda weird that you'd throw dollars into a fountain. Didn't have any change?Wait for inputClose Message"* Kinda weird that you'd throw dollars into a fountain. Didn't have any change?/%", "obj_dw_church_moneyfountain_slash_Step_0_gml_277_0" );
|
|
233
|
if (talked)
|
|
234
|
{
|
|
235
|
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");
|
|
236
|
msgsetloc(0, * You...Delay 11 don't happen to have any change,Delay 11 do you?Wait for inputClose Message"* You..^1. don't happen to have any change^1, do you?/%", "obj_dw_church_moneyfountain_slash_Step_0_gml_282_0" );
|
|
237
|
}
|
|
238
|
d_make();
|
|
239
|
myinteract = 999;
|
|
240
|
talked++;
|
|
241
|
}
|
|
242
|
if (myinteract == 999 && !d_ex())
|
|
243
|
{
|
|
244
|
myinteract = 0;
|
|
245
|
global.interact = 0;
|
|
246
|
}
|
|
247
|
}
|
|
248
|
with (plack)
|
|
249
|
{
|
|
250
|
if (myinteract == 3)
|
|
251
|
{
|
|
252
|
global.interact = 1;
|
|
253
|
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");
|
|
254
|
msgsetloc(0, * When you pass to the other side,Delay 11 a great donation will show your remembrance.Wait for inputClose Message"* When you \\cApass to the other side^1, a great donation\\cW will show your remembrance./%", "obj_dw_church_moneyfountain_slash_Step_0_gml_309_0" );
|
|
255
|
d_make();
|
|
256
|
myinteract = 999;
|
|
257
|
talked++;
|
|
258
|
}
|
|
259
|
if (myinteract == 999 && !d_ex())
|
|
260
|
{
|
|
261
|
myinteract = 0;
|
|
262
|
marker.image_index = 0;
|
|
263
|
global.interact = 0;
|
|
264
|
}
|
|
265
|
}
|