|
1
|
if (global.to_joyconfig)
|
|
2
|
{
|
|
3
|
global.to_joyconfig = 0;
|
|
4
|
instance_create(0, 0, obj_joypadmenu);
|
|
5
|
instance_destroy();
|
|
6
|
exit;
|
|
7
|
}
|
|
8
|
num_borders = 10;
|
|
9
|
border_enabled[0] = 1;
|
|
10
|
border_enabled[1] = 1;
|
|
11
|
border_enabled[2] = 1;
|
|
12
|
border_enabled[3] = 1;
|
|
13
|
for (var i = 4; i <= num_borders; i++)
|
|
14
|
border_enabled[i] = 0;
|
|
15
|
fun = 0;
|
|
16
|
if (ossafe_file_exists("undertale.ini"))
|
|
17
|
{
|
|
18
|
ossafe_ini_open("undertale.ini");
|
|
19
|
if (ossafe_file_exists("file0"))
|
|
20
|
{
|
|
21
|
fun = 1;
|
|
22
|
var Won = ini_read_real("General", "Won", 0);
|
|
23
|
var CP = ini_read_real("General", "CP", 0);
|
|
24
|
var CH = ini_read_real("General", "CH", 0);
|
|
25
|
var BW = ini_read_real("General", "BW", 0);
|
|
26
|
var BP = ini_read_real("General", "BP", 0);
|
|
27
|
var BH = ini_read_real("General", "BH", 0);
|
|
28
|
var EndF = ini_read_real("EndF", "EndF", 0);
|
|
29
|
if ((Won || BW) || (CP || BP))
|
|
30
|
{
|
|
31
|
for (var i = 4; i <= 8; i++)
|
|
32
|
border_enabled[i] = 1;
|
|
33
|
}
|
|
34
|
if (CP || BP)
|
|
35
|
border_enabled[9] = 1;
|
|
36
|
if (CH || BH)
|
|
37
|
border_enabled[10] = 1;
|
|
38
|
if (EndF >= 2)
|
|
39
|
fun = 0;
|
|
40
|
}
|
|
41
|
ossafe_ini_close();
|
|
42
|
}
|
|
43
|
menu = 0;
|
|
44
|
menu_engage = 0;
|
|
45
|
buffer = 5;
|
|
46
|
button_list[0] = 32769;
|
|
47
|
button_list[1] = 32770;
|
|
48
|
button_list[2] = 32771;
|
|
49
|
button_list[3] = 32772;
|
|
50
|
button_list[4] = 32773;
|
|
51
|
button_list[5] = 32775;
|
|
52
|
button_list[6] = 32774;
|
|
53
|
button_list[7] = 32776;
|
|
54
|
button_list[8] = 32779;
|
|
55
|
button_list[9] = 32780;
|
|
56
|
button_list[10] = 32777;
|
|
57
|
button_list[11] = 32778;
|
|
58
|
button_list[12] = -4;
|
|
59
|
r_line = RESETTED...scr_gettextscr_gettext
var 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; ("joyconfig_resetted") ;
|
|
60
|
o_o = 0;
|
|
61
|
siner = 0;
|
|
62
|
r_buffer = 0;
|
|
63
|
intro = 0;
|
|
64
|
weather = 0;
|
|
65
|
rectile = 0;
|
|
66
|
extreme = 0;
|
|
67
|
extreme2 = 0;
|
|
68
|
harp = 0;
|
|
69
|
weathermusic = 0;
|
|
70
|
if (fun == 1)
|
|
71
|
{
|
|
72
|
intro = 1;
|
|
73
|
menu_engage = -1;
|
|
74
|
weather = 1;
|
|
75
|
month = current_month;
|
|
76
|
if (month == 12 || month == 1 || month == 2)
|
|
77
|
weather = 1;
|
|
78
|
if (month == 3 || month == 4 || month == 5)
|
|
79
|
weather = 2;
|
|
80
|
if (month == 6 || month == 7 || month == 8)
|
|
81
|
weather = 3;
|
|
82
|
if (month == 9 || month == 10 || month == 11)
|
|
83
|
weather = 4;
|
|
84
|
}
|
|
85
|
finish = 0;
|