|
1
|
if (con == -1 && queen_drink_convo && global.interact == 0)
|
|
2
|
{
|
|
3
|
con = 0;
|
|
4
|
show_text = true;
|
|
5
|
global.interact = 1;
|
|
6
|
}
|
|
7
|
if (show_text && !d_ex())
|
|
8
|
{
|
|
9
|
show_text = false;
|
|
10
|
alarm[0] = 5; gml_Object_obj_room_castle_queen_Alarm_0.gml
if (queen_drink_index < array_length_1d(queen_drink_text))
show_text = true;
|
|
11
|
var speaker = (queen_drink_index == 6) ? "susie" : "queen";
|
|
12
|
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;
... (speaker);
|
|
13
|
if (queen_drink_index == 0 || queen_drink_index == 2 || queen_drink_index == 4)
|
|
14
|
global.typer = 36;
|
|
15
|
msgset(0, queen_drink_text[queen_drink_index]);
|
|
16
|
var d = d_make();
|
|
17
|
if (queen_drink_index == 0 || queen_drink_index == 2 || queen_drink_index == 4)
|
|
18
|
{
|
|
19
|
var sound_id = 529;
|
|
20
|
if (queen_drink_index == 2)
|
|
21
|
sound_id = 555;
|
|
22
|
if (queen_drink_index == 4)
|
|
23
|
sound_id = 543;
|
|
24
|
snd_play(sound_id);
|
|
25
|
d.skippable = 0;
|
|
26
|
with (obj_writer)
|
|
27
|
skippable = 0;
|
|
28
|
}
|
|
29
|
queen_drink_index++;
|
|
30
|
if (queen_drink_index < array_length_1d(queen_drink_text))
|
|
31
|
{
|
|
32
|
d.stay = 5;
|
|
33
|
}
|
|
34
|
else
|
|
35
|
{
|
|
36
|
con = 10;
|
|
37
|
show_text = false;
|
|
38
|
}
|
|
39
|
}
|
|
40
|
if (con == 10 && !d_ex())
|
|
41
|
{
|
|
42
|
con = 99;
|
|
43
|
global.interact = 0;
|
|
44
|
}
|
|
45
|
if (car_active)
|
|
46
|
{
|
|
47
|
if (car_shadow != -4)
|
|
48
|
{
|
|
49
|
if (!car_pause)
|
|
50
|
{
|
|
51
|
car_shadow_timer++;
|
|
52
|
if (car_shadow_timer == 1)
|
|
53
|
{
|
|
54
|
car_shadow_alt++;
|
|
55
|
car_shadow_target_temp = ((car_shadow_alt % 2) == 1) ? car_shadow.xstart : (car_shadow.xstart + 194);
|
|
56
|
}
|
|
57
|
car_shadow_target = lerp_ease_in(car_shadow_target, car_shadow_target_temp, car_shadow_timer / 20, 3);
|
|
58
|
car_shadow.x = car_shadow_target;
|
|
59
|
if (car_shadow_timer == 17)
|
|
60
|
{
|
|
61
|
snd_play_x(snd_impact, 0.5, 1.5);
|
|
62
|
with (car_shadow)
|
|
63
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
64
|
}
|
|
65
|
if (car_shadow_timer == 60)
|
|
66
|
car_shadow_timer = 0;
|
|
67
|
}
|
|
68
|
car_shadow_readable.x = car_shadow.x - 80;
|
|
69
|
}
|
|
70
|
if (car_rabbick != -4)
|
|
71
|
{
|
|
72
|
if (car_rabbick.x == car_rabbick_target)
|
|
73
|
{
|
|
74
|
car_rabbick_alt++;
|
|
75
|
car_rabbick_target = ((car_rabbick_alt % 2) == 1) ? car_rabbick.xstart : 1035;
|
|
76
|
car_rabbick.image_xscale = -car_rabbick.image_xscale;
|
|
77
|
}
|
|
78
|
if (!car_pause)
|
|
79
|
car_rabbick.x = scr_movetowardsscr_movetowards
function scr_movetowards(arg0, arg1, arg2)
{
if (arg0 == arg1)
return arg0;
else if (arg0 > arg1)
return max(arg0 - arg2, arg1);
else
return min(arg0 + arg2, arg1);
}
function scr_obj_movetowards_obj(arg0, arg1, arg2 = 0, arg3 = 0)
{
scr_obj_movetowards_point(arg0.x + arg2, arg0.y + arg3, arg1);
}
function scr_obj_movetowards_point(arg0, arg1, arg2)
{
var _distance = point_distance(x, y, arg0, arg1);
if (arg2 >= _distance)
{
x = arg0;
y = arg1;
}
else
{
var _direction = point_direction(x, y, arg0, arg1);
x += lengthdir_x(arg2, _direction);
y += lengthdir_y(arg2, _direction);
}
} (car_rabbick.x, car_rabbick_target, 1);
|
|
80
|
car_rabbick_readable.x = car_rabbick.x - 20;
|
|
81
|
}
|
|
82
|
if (car_pause_toggle)
|
|
83
|
{
|
|
84
|
car_pause_toggle = false;
|
|
85
|
car_pause = !car_pause;
|
|
86
|
traffic_light.image_index = car_pause ? 1 : 0;
|
|
87
|
}
|
|
88
|
}
|
|
89
|
if (computer_look)
|
|
90
|
{
|
|
91
|
computer_look_timer++;
|
|
92
|
if (computer_look_timer == 30)
|
|
93
|
{
|
|
94
|
with (head_hathy_npc)
|
|
95
|
image_index = 1;
|
|
96
|
}
|
|
97
|
if (computer_look_timer == 60)
|
|
98
|
{
|
|
99
|
with (head_hathy_npc)
|
|
100
|
image_index = 0;
|
|
101
|
}
|
|
102
|
if (computer_look_timer == 90)
|
|
103
|
{
|
|
104
|
with (werewerewire_npc)
|
|
105
|
image_index = 1;
|
|
106
|
}
|
|
107
|
if (computer_look_timer == 120)
|
|
108
|
{
|
|
109
|
with (werewerewire_npc)
|
|
110
|
image_index = 0;
|
|
111
|
computer_look_timer = 0;
|
|
112
|
}
|
|
113
|
}
|