|
1
|
if (!i_ex(obj_ch5_LWF02_bg))
|
|
2
|
var bg = instance_create(0, 0, obj_ch5_LWF02_bg);
|
|
3
|
if (!snd_is_playing(global.currentsong[1]))
|
|
4
|
{
|
|
5
|
global.currentsong[0] = snd_init("festival_night.ogg");
|
|
6
|
global.currentsong[1] = mus_loop(global.currentsong[0]);
|
|
7
|
mus_volume(global.currentsong[1], 0, 0);
|
|
8
|
mus_volume(global.currentsong[1], 1, 30);
|
|
9
|
}
|
|
10
|
customcon = 0;
|
|
11
|
auto_mode = scr_flag_getscr_flag_get
function scr_flag_get(arg0)
{
return global.flag[arg0];
}
function scr_flag_name_get(arg0)
{
var v = global.flagname[arg0];
return is_undefined(v) ? "*unknown flag*" : v;
}
function scr_flag_get_ext(arg0, arg1, arg2 = 1)
{
if (arg1 < 0)
scr_flag_get(arg0);
else
return scr_get_bitmask_value(global.flag[arg0], arg1, arg2);
} (1804) == 2;
|
|
12
|
con = auto_mode ? 0 : 10;
|
|
13
|
blackall = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (-10, -10, spr_pixel_white);
|
|
14
|
blackall.image_xscale = 999;
|
|
15
|
blackall.image_yscale = 999;
|
|
16
|
blackall.depth = 100;
|
|
17
|
blackall.image_blend = c_black;
|
|
18
|
blackall.visible = auto_mode ? 1 : 0;
|
|
19
|
if (scr_flag_getscr_flag_get
function scr_flag_get(arg0)
{
return global.flag[arg0];
}
function scr_flag_name_get(arg0)
{
var v = global.flagname[arg0];
return is_undefined(v) ? "*unknown flag*" : v;
}
function scr_flag_get_ext(arg0, arg1, arg2 = 1)
{
if (arg1 < 0)
scr_flag_get(arg0);
else
return scr_get_bitmask_value(global.flag[arg0], arg1, arg2);
} (1805) >= 4)
|
|
20
|
{
|
|
21
|
con = -1;
|
|
22
|
blackall.visible = 0;
|
|
23
|
}
|
|
24
|
_trigger = instance_create(345, 160, obj_trigger);
|
|
25
|
with (_trigger)
|
|
26
|
{
|
|
27
|
extflag = "convo";
|
|
28
|
image_xscale = 10;
|
|
29
|
image_yscale = 5;
|
|
30
|
}
|
|
31
|
|
|
32
|
lose_control = function()
|
|
33
|
{
|
|
34
|
global.interact = 1;
|
|
35
|
kr_actor.x = obj_mainchara.x;
|
|
36
|
kr_actor.y = obj_mainchara.y;
|
|
37
|
kr_actor.sprite_index = obj_mainchara.sprite_index;
|
|
38
|
var su_x = 0;
|
|
39
|
var su_y = 0;
|
|
40
|
var su_sprite = -4;
|
|
41
|
with (obj_caterpillarchara)
|
|
42
|
{
|
|
43
|
if (name == "susie")
|
|
44
|
{
|
|
45
|
su_x = x;
|
|
46
|
su_y = y;
|
|
47
|
su_sprite = sprite_index;
|
|
48
|
}
|
|
49
|
}
|
|
50
|
su_actor.x = su_x;
|
|
51
|
su_actor.y = su_y;
|
|
52
|
su_actor.sprite_index = su_sprite;
|
|
53
|
with (obj_actor)
|
|
54
|
visible = 1;
|
|
55
|
with (obj_caterpillarchara)
|
|
56
|
visible = 0;
|
|
57
|
with (obj_mainchara)
|
|
58
|
visible = 0;
|
|
59
|
};
|
|
60
|
|
|
61
|
regain_control = function()
|
|
62
|
{
|
|
63
|
global.interact = 0;
|
|
64
|
global.facing = 0;
|
|
65
|
var kr_x = kr_actor.x;
|
|
66
|
var kr_y = kr_actor.y;
|
|
67
|
obj_mainchara.x = kr_x;
|
|
68
|
obj_mainchara.y = kr_y;
|
|
69
|
obj_mainchara.visible = 1;
|
|
70
|
obj_mainchara.cutscene = 0;
|
|
71
|
var su_x = su_actor.x;
|
|
72
|
var su_y = su_actor.y;
|
|
73
|
with (obj_caterpillarchara)
|
|
74
|
{
|
|
75
|
if (name == "susie")
|
|
76
|
{
|
|
77
|
x = su_x;
|
|
78
|
y = su_y;
|
|
79
|
}
|
|
80
|
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()
{
var _newfacing = direction_to_object_bbox(id, 1198, true);
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (var _iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x + halign, _iaia / target);
remy[_iaia] = lerp(obj_mainchara.y, y + valign, _iaia / target);
facing[_iaia] = _newfacing;
}
} ();
|
|
81
|
visible = 1;
|
|
82
|
}
|
|
83
|
with (obj_actor)
|
|
84
|
visible = 0;
|
|
85
|
};
|
|
86
|
|
|
87
|
show_convo = function(arg0)
|
|
88
|
{
|
|
89
|
switch (arg0)
|
|
90
|
{
|
|
91
|
case "convo":
|
|
92
|
scr_flag_setscr_flag_set
function scr_flag_set(arg0, arg1)
{
global.flag[arg0] = arg1;
}
function scr_flag_set_ext(arg0, arg1, arg2, arg3 = 1)
{
if (arg1 < 0)
scr_flag_set(arg0, arg2);
else
global.flag[arg0] = scr_set_bitmask_value(global.flag[arg0], arg1, arg2, arg3);
} (1805, 4);
|
|
93
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
94
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("r");
|
|
95
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
96
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_head_down_left);
|
|
97
|
c_msgsidec_msgside
function c_msgside(arg0)
{
c_cmd("msgside", arg0, 0, 0, 0);
} ("bottom");
|
|
98
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("susie");
|
|
99
|
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* Since that day in the closet...Wait for input"\\ED* Since that day in the closet.../", "obj_ch5_LWF_town_school_slash_Create_0_gml_119_0" );
|
|
100
|
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* Since our first adventure...Wait for input"\\EN* Since our first adventure.../", "obj_ch5_LWF_town_school_slash_Create_0_gml_120_0" );
|
|
101
|
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 R* Kind of feels like...Delay 11 all this has been...Wait for input"\\ER* Kind of feels like..^1. all this has been.../", "obj_ch5_LWF_town_school_slash_Create_0_gml_121_0" );
|
|
102
|
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* Our special...Delay 11 Kris and Susie thing.Wait for input"\\ES* Our special..^1. Kris and Susie thing./", "obj_ch5_LWF_town_school_slash_Create_0_gml_122_0" );
|
|
103
|
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* Our thing no one can take away.Wait for input"\\EN* Our thing no one can take away./", "obj_ch5_LWF_town_school_slash_Create_0_gml_123_0" );
|
|
104
|
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 T* Our secret.Wait for input"\\ET* Our secret./", "obj_ch5_LWF_town_school_slash_Create_0_gml_124_0" );
|
|
105
|
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 A* Our adventures.Wait for input"\\EA* Our adventures./", "obj_ch5_LWF_town_school_slash_Create_0_gml_125_0" );
|
|
106
|
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* Our thing that's just betterWait for input"\\ED* Our thing that's just better/", "obj_ch5_LWF_town_school_slash_Create_0_gml_126_0" );
|
|
107
|
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 8* If it's just the two of us.Wait for input"\\E8* If it's just the two of us./", "obj_ch5_LWF_town_school_slash_Create_0_gml_127_0" );
|
|
108
|
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* You...Delay 11 feel the same way,Delay 11 right,Delay 11 Kris?Wait for inputClose Message"\\ES* You..^1. feel the same way^1, right^1, Kris?/%", "obj_ch5_LWF_town_school_slash_Create_0_gml_128_0" );
|
|
109
|
c_talkc_talk
function c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
} ();
|
|
110
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
function c_wait_msg(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (1);
|
|
111
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
112
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_walk_left_lw_lookback);
|
|
113
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
function c_wait_msg(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (2);
|
|
114
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
115
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_walk_up_lw);
|
|
116
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
function c_wait_msg(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (3);
|
|
117
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
118
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_head_down_right_more);
|
|
119
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
function c_wait_msg(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (4);
|
|
120
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
121
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_walk_up_lw);
|
|
122
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
function c_wait_msg(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (5);
|
|
123
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
124
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_head_down_left);
|
|
125
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
function c_wait_msg(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (6);
|
|
126
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
127
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_head_down_walk_backwards);
|
|
128
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
function c_wait_msg(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (8);
|
|
129
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
130
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_head_down_left);
|
|
131
|
c_wait_talkc_wait_talk
function c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
} ();
|
|
132
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (30);
|
|
133
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
134
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_walk_up_lw);
|
|
135
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("susie");
|
|
136
|
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 T* ...Delay 11 yeah.Wait for inputClose Message"\\ET* ..^1. yeah./%", "obj_ch5_LWF_town_school_slash_Create_0_gml_167_0" );
|
|
137
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
}
function c_talkwait()
{
c_talk_wait();
} ();
|
|
138
|
if (!auto_mode)
|
|
139
|
{
|
|
140
|
c_pannablec_pannable
function c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
} (1);
|
|
141
|
c_panobjc_panobj
function c_panobj(arg0, arg1)
{
c_cmd("panobj", arg0, arg1, 0, 0);
} (kr_actor, 20);
|
|
142
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (21);
|
|
143
|
}
|
|
144
|
else
|
|
145
|
{
|
|
146
|
c_var_instancec_var_instance
function c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
} (id, "con", 9);
|
|
147
|
}
|
|
148
|
break;
|
|
149
|
}
|
|
150
|
c_waitcustomc_waitcustom
function c_waitcustom()
{
c_cmd("waitcustom", 0, 0, 0, 0);
} ();
|
|
151
|
};
|