|
1
|
if (con == 0 && global.interact == 0)
|
|
2
|
{
|
|
3
|
var trig = 0;
|
|
4
|
with (obj_trigger)
|
|
5
|
{
|
|
6
|
if (extflag == "decidedtocomeby")
|
|
7
|
{
|
|
8
|
if (place_meeting(x, y, obj_mainchara))
|
|
9
|
trig = 1;
|
|
10
|
}
|
|
11
|
}
|
|
12
|
if (trig)
|
|
13
|
{
|
|
14
|
con = 1;
|
|
15
|
global.interact = 1;
|
|
16
|
with (gerson_npc)
|
|
17
|
current_state = 5;
|
|
18
|
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;
... ("gerson");
|
|
19
|
msgsetloc(0, * Oh,Delay 11 so you decided to come by? Thanks!Wait for input"* Oh^1, so you decided to come by? Thanks!/", "obj_ch4_DCA07_slash_Step_0_gml_17_0" );
|
|
20
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("susie", 20);
|
|
21
|
msgnextloc(Face K* (Dammit.)Wait for inputClose Message"\\EK* (Dammit.)/%", "obj_ch4_DCA07_slash_Step_0_gml_19_0" );
|
|
22
|
d_make();
|
|
23
|
}
|
|
24
|
}
|
|
25
|
if (con == 1 && !d_ex())
|
|
26
|
{
|
|
27
|
con = 99;
|
|
28
|
global.interact = 0;
|
|
29
|
global.plot = 170;
|
|
30
|
with (gerson_npc)
|
|
31
|
current_state = 9;
|
|
32
|
scr_tempsavescr_tempsave
function scr_tempsave()
{
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2;
} ();
|
|
33
|
}
|
|
34
|
if (knight_talk && !d_ex())
|
|
35
|
{
|
|
36
|
if (knight_talk_con == 0)
|
|
37
|
{
|
|
38
|
knight_talk_con = 1;
|
|
39
|
global.interact = 1;
|
|
40
|
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;
} ();
|
|
41
|
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;
}
}
}
} ();
|
|
42
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("ralsei");
|
|
43
|
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 J* You,Delay 11 um...Delay 11 haven't seen a shadowy figure,Delay 11 have you?Wait for input"\\EJ* You^1, um..^1. haven't seen a shadowy figure^1, have you?/", "obj_ch4_DCA07_slash_Step_0_gml_65_0" );
|
|
44
|
c_facenextc_facenext
function c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
} ("gerson", 0);
|
|
45
|
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);
} (* Hm...Delay 11 now that you mention it...Delay 11 Just before you came in...Wait for input"* Hm..^1. now that you mention it..^1. Just before you came in.../", "obj_ch4_DCA07_slash_Step_0_gml_67_0" );
|
|
46
|
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);
} (* A figure with a sword flew in that door up there.Wait for inputClose Message"* A figure with a sword flew in that door up there./%", "obj_ch4_DCA07_slash_Step_0_gml_68_0" );
|
|
47
|
c_talkc_talk
function c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
} ();
|
|
48
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (2);
|
|
49
|
c_var_instancec_var_instance
function c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
} (gerson_npc, "current_state", 2);
|
|
50
|
c_wait_talkc_wait_talk
function c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
} ();
|
|
51
|
c_pannablec_pannable
function c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
} (1);
|
|
52
|
c_panc_pan
function c_pan(arg0, arg1, arg2)
{
c_cmd("pan", arg0, arg1, arg2, 0);
} (camerax(), 40, 90);
|
|
53
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (120);
|
|
54
|
c_msgsidec_msgside
function c_msgside(arg0)
{
c_cmd("msgside", arg0, 0, 0, 0);
} ("bottom");
|
|
55
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("gerson");
|
|
56
|
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, * But,Delay 11 it's locked with some contraption.Wait for input"* But^1, it's locked with some contraption./", "obj_ch4_DCA07_slash_Step_0_gml_84_0" );
|
|
57
|
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);
} (* I reckon if you could get to the East Belltower,Delay 11 you might be able to open it...Wait for input"* I reckon if you could get to the \\cYEast Belltower\\cW^1, you might be able to open it.../", "obj_ch4_DCA07_slash_Step_0_gml_85_0" );
|
|
58
|
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);
} (* But,Delay 11 scalin' the Belltower doesn't seem easy without tools.Wait for input"* But^1, scalin' the \\cYBelltower\\cW doesn't seem easy without tools./", "obj_ch4_DCA07_slash_Step_0_gml_86_0" );
|
|
59
|
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);
} (* Meanwhile,Delay 11 the Northwest Library's got lots o' nice books.Wait for input"* Meanwhile^1, the \\cYNorthwest Library\\cW's got lots o' nice books./", "obj_ch4_DCA07_slash_Step_0_gml_87_0" );
|
|
60
|
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);
} (* Might help ya take your mind off it!Delay 11 It's that upper left door.Wait for input"* Might help ya take your mind off it^1! It's that \\cYupper left\\cW door./", "obj_ch4_DCA07_slash_Step_0_gml_88_0" );
|
|
61
|
c_facenextc_facenext
function c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
} ("susie", "K");
|
|
62
|
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 K* (Yeah,Delay 11 like we're gonna waste time wandering around there...)Wait for inputClose Message"\\EK* (Yeah^1, like we're gonna waste time wandering around there...)/%", "obj_ch4_DCA07_slash_Step_0_gml_90_0" );
|
|
63
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
}
function c_talkwait()
{
c_talk_wait();
} ();
|
|
64
|
c_panobjc_panobj
function c_panobj(arg0, arg1)
{
c_cmd("panobj", arg0, arg1, 0, 0);
} (kr_actor, 60);
|
|
65
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (65);
|
|
66
|
c_var_instancec_var_instance
function c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
} (gerson_npc, "current_state", 9);
|
|
67
|
c_pannablec_pannable
function c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
} (0);
|
|
68
|
c_actortokrisc_actortokris
function c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
} ();
|
|
69
|
c_actortocaterpillarc_actortocaterpillar
function c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
} ();
|
|
70
|
c_terminatekillactorsc_terminatekillactors
function c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
} ();
|
|
71
|
}
|
|
72
|
if (knight_talk_con == 1 && !i_ex(obj_cutscene_master))
|
|
73
|
{
|
|
74
|
knight_talk = false;
|
|
75
|
knight_talk_con = 99;
|
|
76
|
global.interact = 0;
|
|
77
|
}
|
|
78
|
}
|
|
79
|
if (hide_elixir)
|
|
80
|
{
|
|
81
|
if (hide_elixir_con == 0)
|
|
82
|
{
|
|
83
|
hide_elixir_con = 1;
|
|
84
|
scr_flag_setscr_flag_set
function scr_flag_set(arg0, arg1)
{
global.flag[arg0] = arg1;
if (scr_debug())
show_debug_message("*** flag [" + string(arg0) + "] updated: " + string(arg1) + " | " + scr_flag_name_get(arg0));
}
function scr_setflag(arg0, arg1)
{
scr_flag_set(arg0, arg1);
} (841, 2);
|
|
85
|
with (item_markers[1])
|
|
86
|
visible = false;
|
|
87
|
}
|
|
88
|
if (hide_elixir_con == 1 && !d_ex() && global.interact == 0)
|
|
89
|
{
|
|
90
|
hide_elixir_con = -1;
|
|
91
|
hide_elixir = false;
|
|
92
|
with (obj_readable_room1)
|
|
93
|
{
|
|
94
|
if (extflag == "elixir")
|
|
95
|
instance_destroy();
|
|
96
|
}
|
|
97
|
}
|
|
98
|
}
|