|
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 (!darkinit)
|
|
3
|
{
|
|
4
|
darkness = instance_create(0, 0, obj_darkness_overlay);
|
|
5
|
darkinit = 1;
|
|
6
|
}
|
|
7
|
if (gcon == 0)
|
|
8
|
{
|
|
9
|
var trig = 0;
|
|
10
|
with (obj_trigger)
|
|
11
|
{
|
|
12
|
if (extflag == "gersontrig")
|
|
13
|
{
|
|
14
|
if (place_meeting(x, y, obj_mainchara))
|
|
15
|
trig = 1;
|
|
16
|
}
|
|
17
|
}
|
|
18
|
if ((gerson.bbox_left - 8) < (camerax() + 640) && gerson.bbox_bottom > cameray())
|
|
19
|
gtime++;
|
|
20
|
if (trig == 1 || gtime > 60)
|
|
21
|
{
|
|
22
|
global.flag[874] = 1;
|
|
23
|
gerson.hspeed = 6;
|
|
24
|
gerson.friction = -0.15;
|
|
25
|
gerson.image_speed = 0.16666666666666666;
|
|
26
|
scr_doomscr_doom
function scr_doom(arg0 = id, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
persistent = arg0.persistent;
}
} (gerson, 240);
|
|
27
|
gcon = 1;
|
|
28
|
}
|
|
29
|
}
|
|
30
|
with (npc)
|
|
31
|
{
|
|
32
|
if (myinteract == 3)
|
|
33
|
{
|
|
34
|
global.interact = 1;
|
|
35
|
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;
... ("follower");
|
|
36
|
msgsetloc(0, * The others here believe you will bring trouble to this place.Wait for input"* The others here believe you will bring trouble to this place./", "obj_dw_church_intro_gerson_slash_Step_0_gml_64_0" );
|
|
37
|
msgnextloc(* They say,Delay 11 "the knight with the blade casts a great shadow on the land..."Wait for input"* They say^1, \"the knight with the blade casts a great shadow on the land...\"/", "obj_dw_church_intro_gerson_slash_Step_0_gml_65_0" );
|
|
38
|
msgnextloc(* I have no proof that's you. But don't be harsh to those that fight you.Wait for inputClose Message"* I have no proof that's you. But don't be harsh to those that fight you./%", "obj_dw_church_intro_gerson_slash_Step_0_gml_66_0" );
|
|
39
|
d_make();
|
|
40
|
myinteract = 999;
|
|
41
|
talked++;
|
|
42
|
}
|
|
43
|
if (myinteract > 3 && d_ex())
|
|
44
|
{
|
|
45
|
var trig = 0;
|
|
46
|
with (obj_writer)
|
|
47
|
{
|
|
48
|
if (halt)
|
|
49
|
trig = 1;
|
|
50
|
}
|
|
51
|
if (!trig)
|
|
52
|
marker.image_index += 0.25;
|
|
53
|
}
|
|
54
|
if (myinteract == 999 && !d_ex())
|
|
55
|
{
|
|
56
|
myinteract = 0;
|
|
57
|
marker.image_index = 0;
|
|
58
|
global.interact = 0;
|
|
59
|
}
|
|
60
|
}
|
|
61
|
with (tres)
|
|
62
|
{
|
|
63
|
if (myinteract == 3)
|
|
64
|
{
|
|
65
|
global.interact = 1;
|
|
66
|
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");
|
|
67
|
msgsetloc(0, * (Huh...!? There's a hidden treasure chest here!)Wait for input"* (Huh...!? There's a hidden treasure chest here!)/", "obj_dw_church_intro_gerson_slash_Step_0_gml_101_0" );
|
|
68
|
msgnextloc(* (It contains...Delay 11 some kind of strangely slippery gloves!)Wait for input"* (It contains..^1. some kind of strangely slippery gloves!)/", "obj_dw_church_intro_gerson_slash_Step_0_gml_102_0" );
|
|
69
|
msgnextloc(* (They're labeled,Delay 11 "gloves that make you worse at climbing".)Wait for input"* (They're labeled^1, \"gloves that make you worse at climbing\".)/", "obj_dw_church_intro_gerson_slash_Step_0_gml_103_0" );
|
|
70
|
msgnextloc(* (...)Wait for input"* (...)/", "obj_dw_church_intro_gerson_slash_Step_0_gml_104_0" );
|
|
71
|
msgnextloc(* (You didn't take these.)Wait for inputClose Message"* (You didn't take these.)/%", "obj_dw_church_intro_gerson_slash_Step_0_gml_105_0" );
|
|
72
|
if (global.flag[1617] == 1)
|
|
73
|
{
|
|
74
|
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");
|
|
75
|
msgsetloc(0, * (You still didn't take the gloves.)Wait for inputClose Message"* (You still didn't take the gloves.)/%", "obj_dw_church_intro_gerson_slash_Step_0_gml_110_0" );
|
|
76
|
}
|
|
77
|
d_make();
|
|
78
|
myinteract = 999;
|
|
79
|
global.flag[1617] = 1;
|
|
80
|
}
|
|
81
|
if (myinteract == 999 && !d_ex())
|
|
82
|
{
|
|
83
|
myinteract = 0;
|
|
84
|
marker.image_index = 0;
|
|
85
|
global.interact = 0;
|
|
86
|
}
|
|
87
|
}
|
|
88
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
89
|
{
|
|
90
|
if (keyboard_check_pressed(ord("W")))
|
|
91
|
setxy(1660, 800, 1049);
|
|
92
|
if (keyboard_check_pressed(ord("E")))
|
|
93
|
setxy(1760, 1080, 1049);
|
|
94
|
}
|