1 |
draw_set_color(c_white); |
2 |
ossafe_fill_rectangle(view_xview[view_current] + 16, view_yview[view_current] + 6, view_xview[view_current] + 304, view_yview[view_current] + 32); |
3 |
draw_set_color(c_black); |
4 |
ossafe_fill_rectangle(view_xview[view_current] + 19, view_yview[view_current] + 9, view_xview[view_current] + 301, view_yview[view_current] + 29); |
5 |
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); |
6 |
draw_set_color(c_white); |
7 |
scr_drawtext_iconsscr_drawtext_iconsvar xx = argument[0];
var yy = argument[1];
var str = scr_replace_buttons_pc(argument[2]);
var icon_scale = 1;
if (argument_count >= 4)
icon_scale = argument[3];
var i = string_pos("\*", str);
while (i != 0)
{
if (i > 1)
{
var s = substr(str, 1, i - 1);
draw_text(xx, yy, s);
xx += round(string_width(s));
}
var ch = string_char_at(str, i + 2);
var sprite = scr_getbuttonsprite(ch, 0);
if (sprite != -4)
{
draw_sprite_ext(sprite, 0, xx, yy, icon_scale, icon_scale, 0, c_white, 1);
xx += ((sprite_get_width(sprite) + 1) * icon_scale);
}
str = substr(str, i + 3);
i = string_pos("\*", str);
}
if (string_length(str) > 0)
draw_text(xx, yy, str); (30, 11, * Press \*Z repeatedly to stir!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_potstir_64") ); |
8 |
if (control_check_pressed(0)) |
9 |
{ |
10 |
stir += 1; |
11 |
pot.image_index += 1; |
12 |
} |
13 |
stime += 1; |
14 |
if (stime > 90 && stir <= 70 && sval == 0) |
15 |
{ |
16 |
sval = 1; |
17 |
global.msc = 0; |
18 |
global.facechoice = 5; |
19 |
global.typer = 37; |
20 |
global.faceemotion = 1; |
21 |
global.msg[0] = * Stir harder!Delay 22Close 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_potstir_81") ; |
22 |
gg = instance_create(0, 0, obj_dialoguer); |
23 |
gg.side = 1; |
24 |
} |
25 |
if (stime > 150 && stir <= 70 && sval == 1) |
26 |
{ |
27 |
sval = 2; |
28 |
global.msc = 0; |
29 |
global.facechoice = 5; |
30 |
global.typer = 37; |
31 |
global.faceemotion = 2; |
32 |
global.msg[0] = * HARDER!Delay 22Close 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_potstir_93") ; |
33 |
gg = instance_create(0, 0, obj_dialoguer); |
34 |
gg.side = 1; |
35 |
} |
36 |
if (stime > 210 && stir <= 70 && sval == 2) |
37 |
{ |
38 |
sval = 3; |
39 |
global.msc = 0; |
40 |
global.facechoice = 5; |
41 |
global.typer = 37; |
42 |
global.faceemotion = 6; |
43 |
global.msg[0] = * HARDER!!!!Delay 22Close 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_potstir_106") ; |
44 |
gg = instance_create(0, 0, obj_dialoguer); |
45 |
gg.side = 1; |
46 |
} |
47 |
if (stime > 300 || stir > 70) |
48 |
{ |
49 |
if (instance_exists(OBJ_WRITER) == 0) |
50 |
{ |
51 |
sval = 99; |
52 |
global.msc = 0; |
53 |
global.facechoice = 5; |
54 |
global.typer = 37; |
55 |
global.faceemotion = 6; |
56 |
global.msg[0] = * Ugh,Delay 11 let me do it!Wait for inputClose 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_potstir_119") ; |
57 |
gg = instance_create(0, 0, obj_dialoguer); |
58 |
gg.side = 1; |
59 |
obj_undynedate_inside.con = 210; |
60 |
instance_destroy(); |
61 |
} |
62 |
} |