1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (waiter == 1) |
4 |
return; |
5 |
switch scene |
6 |
{ |
7 |
case 0: |
8 |
if (obj_ending_flowey.image_index <= 0) |
9 |
{ |
10 |
obj_ending_flowey.sprite_index = flowey_nice |
11 |
obj_ending_flowey.y += 22 |
12 |
scene++ |
13 |
} |
14 |
break |
15 |
case 1: |
16 |
cutscene_wait(1) |
17 |
break |
18 |
case 2: |
19 |
if (!instance_exists(obj_dialogue_flowey_ending)) |
20 |
instance_create(x, y, obj_dialogue_flowey_ending) |
21 |
else if (global.dialogue_open == false) |
22 |
{ |
23 |
cutscene_advance() |
24 |
return; |
25 |
} |
26 |
else |
27 |
{ |
28 |
with (obj_dialogue_flowey_ending) |
29 |
{ |
30 |
sndfnt = 96 |
31 |
talker[0] = 2628 |
32 |
message[0] = "Well..." |
33 |
message[1] = "Here we are again. Of#course." |
34 |
message[2] = "Sigh..." |
35 |
message[3] = "There's gotta be SOME#way to get what I need." |
36 |
message[4] = "Clover's competent...#enough, but still..." |
37 |
message[5] = "Nothing ever works out#when it comes to them." |
38 |
message[6] = "Hmm..." |
39 |
message[7] = "I could reset and try#my luck again..." |
40 |
message[8] = "Or..." |
41 |
message[9] = "I could accept this#outcome and wait." |
42 |
message[10] = "The King is only one#SOUL away now." |
43 |
message[11] = "It might be a good idea#to piggyback off the#next human instead." |
44 |
message[12] = "But..." |
45 |
message[13] = "Who knows how long#that will take and#even worse," |
46 |
message[14] = "If the next human would#have the will to do what#Clover couldn't." |
47 |
message[15] = "Decisions decisions..." |
48 |
message[16] = "Let me think..." |
49 |
prt[0] = 347 |
50 |
prt[1] = 348 |
51 |
prt[2] = 353 |
52 |
prt[3] = 353 |
53 |
prt[4] = 352 |
54 |
prt[5] = 353 |
55 |
prt[6] = 353 |
56 |
prt[7] = 352 |
57 |
prt[8] = 353 |
58 |
prt[9] = 347 |
59 |
prt[10] = 347 |
60 |
prt[11] = 348 |
61 |
prt[12] = 353 |
62 |
prt[13] = 353 |
63 |
prt[14] = 352 |
64 |
prt[15] = 353 |
65 |
prt[16] = 353 |
66 |
} |
67 |
} |
68 |
break |
69 |
case 3: |
70 |
choice_alpha += 0.01 |
71 |
if (choice_alpha >= 0.8) |
72 |
{ |
73 |
audio_play_sound(snd_mainmenu_select, 1, 0) |
74 |
choice_alpha = 1 |
75 |
cutscene_advance() |
76 |
} |
77 |
break |
78 |
case 4: |
79 |
if (choice == 0) |
80 |
{ |
81 |
if (global.left_keyp && p[2] == true) |
82 |
{ |
83 |
p[2] = false |
84 |
p[1] = true |
85 |
audio_play_sound(snd_mainmenu_select, 1, 0) |
86 |
} |
87 |
if (global.right_keyp && p[1] == true) |
88 |
{ |
89 |
p[2] = true |
90 |
p[1] = false |
91 |
audio_play_sound(snd_mainmenu_select, 1, 0) |
92 |
} |
93 |
if (keyboard_multicheck_pressed(0) == true) |
94 |
{ |
95 |
audio_play_sound(snd_confirm, 1, 0) |
96 |
if (p[1] == true) |
97 |
choice = 1 |
98 |
if (p[2] == true) |
99 |
choice = 2 |
100 |
} |
101 |
} |
102 |
else if instance_exists(obj_ending_flowey) |
103 |
{ |
104 |
obj_ending_flowey.sprite_index = flowey_nice |
105 |
choice_alpha -= 0.15 |
106 |
if (choice_alpha <= 0) |
107 |
cutscene_advance() |
108 |
} |
109 |
break |
110 |
case 5: |
111 |
cutscene_wait(0.5) |
112 |
break |
113 |
case 6: |
114 |
if (obj_ending_flowey.sprite_index != spr_flowey_enter) |
115 |
{ |
116 |
obj_ending_flowey.y -= 22 |
117 |
obj_ending_flowey.sprite_index = spr_flowey_enter |
118 |
obj_ending_flowey.image_index = obj_ending_flowey.image_number - 1 |
119 |
obj_ending_flowey.image_speed = -0.25 |
120 |
} |
121 |
if (obj_ending_flowey.image_index <= 0) |
122 |
{ |
123 |
instance_destroy(obj_ending_flowey) |
124 |
if (choice == 1) |
125 |
{ |
126 |
audio_play_sound(mus_cymbal, 10, 0) |
127 |
alarm[1] = 1alarm[1]alarm[1] = 1
__view_set((0 << 0), 0, ((__view_get((0 << 0), 0)) + (random_range((-sh), sh))))
__view_set((1 << 0), 0, ((__view_get((1 << 0), 0)) + (random_range((-sh), sh))))
sh += 0.01 |
128 |
instance_create(0, 0, obj_transition_white) |
129 |
if file_exists("Save.sav") |
130 |
file_delete("Save.sav") |
131 |
ini_open("Save02.sav") |
132 |
ini_write_real("00", "02", 0) |
133 |
ini_write_real("00", "03", 0) |
134 |
ini_write_real("00", "04", 0) |
135 |
ini_close() |
136 |
instance_destroy() |
137 |
scene++ |
138 |
} |
139 |
else |
140 |
game_end() |
141 |
} |
142 |
break |
143 |
} |