1 |
for (i = 0; i < 6; i += 1) |
2 |
{ |
3 |
draw_sprite_ext(spr_6book, image_index, 100, -170 + (170 * i) + booky, 2, 2, 0, c_white, 1); |
4 |
draw_sprite_ext(spr_6book, image_index, 540, (170 * i) + booky2, -2, -2, 0, c_white, 1); |
5 |
} |
6 |
booky += 4; |
7 |
booky2 -= 4; |
8 |
if (booky > 170) |
9 |
booky -= 170; |
10 |
if (booky2 < -170) |
11 |
booky2 += 170; |
12 |
if (con > 0 && con < 3) |
13 |
{ |
14 |
image_alpha -= 0.02; |
15 |
draw_set_color(c_white); |
16 |
ossafe_fill_rectangle(4, 4, 140, 230); |
17 |
draw_set_color(c_black); |
18 |
ossafe_fill_rectangle(8, 8, 136, 226); |
19 |
draw_set_color(c_white); |
20 |
scr_setfontscr_setfontvar newfont = argument0;
if (global.language == "ja")
{
if (newfont == fnt_main)
newfont = fnt_ja_main;
if (newfont == fnt_maintext)
newfont = fnt_ja_maintext;
if (newfont == fnt_plain)
newfont = fnt_ja_plain;
}
draw_set_font(newfont); (fnt_maintext); |
21 |
global.typer = 113; |
22 |
global.msg[0] = You called for help ...scr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_6book_master_384") ; |
23 |
global.msg[1] = Close MessageClose MessageClose Messagescr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_6book_master_385") ; |
24 |
if (!instance_exists(obj_flowey_writer)) |
25 |
instance_create(14, 4, obj_flowey_writer); |
26 |
} |
27 |
if (con == 2) |
28 |
{ |
29 |
with (obj_flowey_master) |
30 |
pd = 1; |
31 |
type = 1; |
32 |
with (obj_6book_wordbullet) |
33 |
event_user(5); |
34 |
con = 2.1; |
35 |
alarm[4] = 50; |
36 |
} |
37 |
if (con == 3) |
38 |
{ |
39 |
if (global.soul_rescue != 4) |
40 |
{ |
41 |
global.soul_rescue = 4; |
42 |
ossafe_ini_open("undertale.ini"); |
43 |
ini_write_real("FFFFF", "P", 5); |
44 |
ossafe_ini_close(); |
45 |
ossafe_savedata_save(); |
46 |
} |
47 |
} |
48 |
if (con == 3.1) |
49 |
{ |
50 |
with (obj_flowey_writer) |
51 |
instance_destroy(); |
52 |
snd_play(snd_break2_c); |
53 |
instance_create(0, 0, obj_6flasher); |
54 |
with (obj_flowey_master) |
55 |
caster_play(mus_saved, 0.8, 0.9); |
56 |
with (obj_flowey_bulletmaster) |
57 |
soultimer = soulmax - 150; |
58 |
with (obj_6book_wordbullet) |
59 |
event_user(4); |
60 |
con = 3; |
61 |
} |
62 |
if (obj_vsflowey_heart.x < 245) |
63 |
obj_vsflowey_heart.x = 245; |
64 |
if (obj_vsflowey_heart.x > 382) |
65 |
obj_vsflowey_heart.x = 382; |
66 |
if (obj_vsflowey_heart.y < 138) |
67 |
obj_vsflowey_heart.y = 138; |