|
1
|
scr_board_populatevarsscr_board_populatevars
function scr_board_populatevars()
{
if (!variable_instance_exists(id, "kris"))
kris = 0;
if (!variable_instance_exists(id, "susie"))
susie = 0;
if (!variable_instance_exists(id, "ralsei"))
ralsei = 0;
if (kris == 0)
{
with (obj_mainchara_board)
{
if (name == "kris")
other.kris = id;
}
}
if (ralsei == 0)
{
with (obj_mainchara_board)
{
if (name == "ralsei")
other.ralsei = id;
}
}
if (susie == 0)
{
with (obj_mainchara_board)
{
if (name == "susie")
other.susie = id;
}
}
} ();
|
|
2
|
scr_gameshow_populatevarsscr_gameshow_populatevars
function scr_gameshow_populatevars()
{
if (!variable_instance_exists(id, "kr_real"))
kr_real = 0;
if (!variable_instance_exists(id, "su_real"))
su_real = 0;
if (!variable_instance_exists(id, "ra_real"))
ra_real = 0;
if (!variable_instance_exists(id, "tenna"))
tenna = 0;
if (kr_real == 0)
{
with (obj_mainchara)
other.kr_real = id;
}
if (su_real == 0)
{
with (obj_caterpillarchara)
{
if (name == "susie")
other.su_real = id;
}
}
if (ra_real == 0)
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
other.ra_real = id;
}
}
if (tenna == 0)
{
with (obj_actor_tenna)
other.tenna = id;
}
} ();
|
|
3
|
visible = true;
|
|
4
|
if (active == 1)
|
|
5
|
{
|
|
6
|
if (con == 0 && obj_board_camera.con == 0)
|
|
7
|
{
|
|
8
|
var withercheck = 0;
|
|
9
|
var battlestart = 0;
|
|
10
|
with (obj_board_oasis)
|
|
11
|
{
|
|
12
|
if (wither > 1)
|
|
13
|
withercheck = 1;
|
|
14
|
}
|
|
15
|
if (withercheck == 1)
|
|
16
|
{
|
|
17
|
with (obj_mainchara_board)
|
|
18
|
{
|
|
19
|
if (controlled == 1)
|
|
20
|
{
|
|
21
|
if (place_meeting(x, y, obj_board_trigger))
|
|
22
|
{
|
|
23
|
var trig = instance_place(x, y, obj_board_trigger);
|
|
24
|
if (trig.extflag == "oasisBattle")
|
|
25
|
battlestart = 1;
|
|
26
|
}
|
|
27
|
}
|
|
28
|
}
|
|
29
|
if (force == 1)
|
|
30
|
{
|
|
31
|
battlestart = 1;
|
|
32
|
force = 0;
|
|
33
|
}
|
|
34
|
if (battlestart == 1)
|
|
35
|
{
|
|
36
|
global.interact = 1;
|
|
37
|
with (obj_mainchara_board)
|
|
38
|
canfreemove = false;
|
|
39
|
con = 1;
|
|
40
|
}
|
|
41
|
}
|
|
42
|
}
|
|
43
|
if (con == 1 && !bw_ex())
|
|
44
|
{
|
|
45
|
global.interact = 1;
|
|
46
|
timer++;
|
|
47
|
if (timer == 1)
|
|
48
|
{
|
|
49
|
mus_volume(global.currentsong[1], 0, 15);
|
|
50
|
snd_play(snd_b);
|
|
51
|
with (obj_board_npc)
|
|
52
|
{
|
|
53
|
if (extflag == "elnina1")
|
|
54
|
sprite_index = spr_board_elnina_glasses_mad_left;
|
|
55
|
if (extflag == "lanino1")
|
|
56
|
sprite_index = spr_board_lanino_glasses_mad_right;
|
|
57
|
var checkme = id;
|
|
58
|
with (obj_script_delayed)
|
|
59
|
{
|
|
60
|
if (target == checkme)
|
|
61
|
instance_destroy();
|
|
62
|
}
|
|
63
|
}
|
|
64
|
var excl = instance_create(board_tilex(3), board_tiley(3), obj_board_marker);
|
|
65
|
excl.sprite_index = spr_board_exclaim;
|
|
66
|
excl.image_speed = 0;
|
|
67
|
excl.image_index = 0;
|
|
68
|
excl.vspeed = -2.8;
|
|
69
|
excl.gravity = 0.2;
|
|
70
|
excl.depth = depth - 100;
|
|
71
|
if (excl.y <= 64)
|
|
72
|
excl.y = 64;
|
|
73
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (excl);
|
|
74
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (excl, 20);
|
|
75
|
with (excl)
|
|
76
|
scr_delay_var("gravity", 0, 15);
|
|
77
|
with (excl)
|
|
78
|
scr_delay_var("vspeed", 0, 15);
|
|
79
|
excl = instance_create(board_tilex(8), board_tiley(3), obj_board_marker);
|
|
80
|
excl.sprite_index = spr_board_exclaim;
|
|
81
|
excl.image_speed = 0;
|
|
82
|
excl.image_index = 1;
|
|
83
|
excl.vspeed = -2.8;
|
|
84
|
excl.gravity = 0.2;
|
|
85
|
excl.depth = depth - 100;
|
|
86
|
if (excl.y <= 64)
|
|
87
|
excl.y = 64;
|
|
88
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (excl);
|
|
89
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (excl, 20);
|
|
90
|
with (excl)
|
|
91
|
scr_delay_var("gravity", 0, 15);
|
|
92
|
with (excl)
|
|
93
|
scr_delay_var("vspeed", 0, 15);
|
|
94
|
}
|
|
95
|
if (timer == 30)
|
|
96
|
{
|
|
97
|
global.firstboardbattle = 2;
|
|
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 == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
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;
... ("no_name");
|
|
99
|
if (plugged == 1)
|
|
100
|
msgsetloc(0, OH,Delay 11 OH,Delay 11 YOU CLOGGED THE OASIS.Wait for input"OH^1, OH^1, YOU CLOGGED THE OASIS./", "obj_board_event_ninfight_slash_Step_0_gml_103_0" );
|
|
101
|
else
|
|
102
|
msgsetloc(0, OH,Delay 11 OH,Delay 11 YOU SUCKED THE WATER DRY.Wait for input"OH^1, OH^1, YOU SUCKED THE WATER DRY./", "obj_board_event_ninfight_slash_Step_0_gml_107_0" );
|
|
103
|
msgnextloc(YOU DARE END OUR SEASON OF LOVE?Wait for input"YOU DARE END OUR SEASON OF LOVE?/", "obj_board_event_ninfight_slash_Step_0_gml_111_0" );
|
|
104
|
if (retry == 1)
|
|
105
|
msgsetloc(0, OH,Delay 11 OH,Delay 11 WE JUST MADE UP AND YOU DARE COME INTO OUR SIGHT!?Wait for input"OH^1, OH^1, WE JUST MADE UP AND YOU DARE COME INTO OUR SIGHT!?/", "obj_board_event_ninfight_slash_Step_0_gml_115_0" );
|
|
106
|
msgnextloc(I PREDICT A LOT OF PAIN IN YOUR FUTURE...Wait for inputClose Message"I PREDICT A LOT OF PAIN IN YOUR FUTURE.../%", "obj_board_event_ninfight_slash_Step_0_gml_118_0" );
|
|
107
|
bw_make();
|
|
108
|
con = 2;
|
|
109
|
}
|
|
110
|
}
|
|
111
|
if (con == 2 && !bw_ex())
|
|
112
|
{
|
|
113
|
global.flag[9 battle_music] = 2;
|
|
114
|
battler = instance_create(x, y, obj_gameshow_battlemanager);
|
|
115
|
battler.encounterno = 113;
|
|
116
|
con = 2.1;
|
|
117
|
timer = 0;
|
|
118
|
}
|
|
119
|
if (con == 2.1)
|
|
120
|
{
|
|
121
|
if (battler.con == 2)
|
|
122
|
{
|
|
123
|
var obj_board_event_ninfight_doheal = true;
|
|
124
|
if (obj_board_event_ninfight_doheal == true)
|
|
125
|
{
|
|
126
|
with (obj_mainchara_board)
|
|
127
|
myhealth = maxhealth;
|
|
128
|
for (var i = 0; i < 4; i++)
|
|
129
|
global.hp[i] = global.maxhp[i];
|
|
130
|
}
|
|
131
|
con = 2.2;
|
|
132
|
}
|
|
133
|
}
|
|
134
|
if (con == 2.2 && global.fighting)
|
|
135
|
con = 2.5;
|
|
136
|
if (con == 2.5 && !global.fighting)
|
|
137
|
{
|
|
138
|
debug_print("Fighting over?");
|
|
139
|
snd_free(global.batmusic[0]);
|
|
140
|
if (global.boardbattleresult == "won")
|
|
141
|
{
|
|
142
|
debug_print("battle won!");
|
|
143
|
var elnina = 0;
|
|
144
|
var lanino = 0;
|
|
145
|
with (obj_board_npc)
|
|
146
|
{
|
|
147
|
if (extflag == "elnina1")
|
|
148
|
instance_destroy();
|
|
149
|
if (extflag == "lanino1")
|
|
150
|
instance_destroy();
|
|
151
|
}
|
|
152
|
sunmoonstone = instance_create_board(1072, 720, obj_board_pickup);
|
|
153
|
with (sunmoonstone)
|
|
154
|
setxy_board(1072, 720);
|
|
155
|
with (kris)
|
|
156
|
{
|
|
157
|
facing = 0;
|
|
158
|
setxy_board(1072, 688);
|
|
159
|
}
|
|
160
|
with (susie)
|
|
161
|
{
|
|
162
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("susie");
|
|
163
|
scr_play_recordingscr_play_recording
function scr_play_recording(arg0, arg1)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
susierecordcon = 2;
susierecordcount = 0;
susierecordstring = arg1;
susierecordsave = false;
}
}
} ("susie", "00");
|
|
164
|
facing = 0;
|
|
165
|
}
|
|
166
|
with (ralsei)
|
|
167
|
{
|
|
168
|
facing = 0;
|
|
169
|
scr_board_caterpillar_interpolatescr_board_caterpillar_interpolate
function scr_board_caterpillar_interpolate()
{
var _____kris = 0;
with (obj_mainchara_board)
{
if (name == "kris")
_____kris = id;
}
if (_____kris != 0)
{
remx[0] = _____kris.x;
remy[0] = _____kris.y;
for (var __rempos = 75; __rempos > 0; __rempos -= 1)
{
remx[__rempos] = lerp(_____kris.x, x, __rempos / 75);
remy[__rempos] = lerp(_____kris.y, y + 6, __rempos / 75);
}
}
} ();
|
|
170
|
setxy_board(1072, 682);
|
|
171
|
}
|
|
172
|
sunmoonstone.type = "sunmoonstone";
|
|
173
|
con = 3;
|
|
174
|
}
|
|
175
|
else
|
|
176
|
{
|
|
177
|
debug_print("battle LOST!");
|
|
178
|
con = -1;
|
|
179
|
}
|
|
180
|
}
|
|
181
|
if (con == 3)
|
|
182
|
global.interact = 1;
|
|
183
|
if (con == 3 && !i_ex(obj_gameshow_battlemanager))
|
|
184
|
{
|
|
185
|
timer = 0;
|
|
186
|
con = 4;
|
|
187
|
}
|
|
188
|
if (con == 4)
|
|
189
|
{
|
|
190
|
kris.canfreemove = true;
|
|
191
|
global.interact = 0;
|
|
192
|
with (sunmoonstone)
|
|
193
|
event_user(0);
|
|
194
|
global.flag[1022 tenna_board_absent] = 0;
|
|
195
|
con = 5;
|
|
196
|
}
|
|
197
|
if (con == 5 && !i_ex(sunmoonstone))
|
|
198
|
{
|
|
199
|
with (obj_mainchara_board)
|
|
200
|
canfreemove = true;
|
|
201
|
with (susie)
|
|
202
|
{
|
|
203
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("susie");
|
|
204
|
scr_play_recordingscr_play_recording
function scr_play_recording(arg0, arg1)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
susierecordcon = 2;
susierecordcount = 0;
susierecordstring = arg1;
susierecordsave = false;
}
}
} ("susie", "00");
|
|
205
|
facing = 0;
|
|
206
|
}
|
|
207
|
with (ralsei)
|
|
208
|
{
|
|
209
|
facing = 0;
|
|
210
|
follow = 1;
|
|
211
|
scr_board_caterpillar_interpolatescr_board_caterpillar_interpolate
function scr_board_caterpillar_interpolate()
{
var _____kris = 0;
with (obj_mainchara_board)
{
if (name == "kris")
_____kris = id;
}
if (_____kris != 0)
{
remx[0] = _____kris.x;
remy[0] = _____kris.y;
for (var __rempos = 75; __rempos > 0; __rempos -= 1)
{
remx[__rempos] = lerp(_____kris.x, x, __rempos / 75);
remy[__rempos] = lerp(_____kris.y, y + 6, __rempos / 75);
}
}
} ();
|
|
212
|
}
|
|
213
|
con = 6;
|
|
214
|
}
|
|
215
|
}
|