1 |
scr_npc_animscr_npc_animtt = 0;
if (myinteract == 3)
{
if (instance_exists(OBJ_WRITER))
{
image_speed = 0.2;
if (OBJ_WRITER.halt != 0)
tt = 1;
}
else
{
tt = 1;
}
}
if (tt == 1)
{
image_speed = 0;
image_index = 0;
} (); |
2 |
if (con == 1 && instance_exists(OBJ_WRITER) == 0) |
3 |
{ |
4 |
global.interact = 1; |
5 |
con = 2; |
6 |
alarm[4] = 20; |
7 |
} |
8 |
if (con == 2) |
9 |
global.interact = 1; |
10 |
if (con == 3) |
11 |
{ |
12 |
global.phasing = 1; |
13 |
obj_mainchara.vspeed = 3; |
14 |
con = 4; |
15 |
} |
16 |
if (con == 4) |
17 |
{ |
18 |
if (obj_mainchara.y > (y - 10)) |
19 |
{ |
20 |
obj_mainchara.vspeed = 0; |
21 |
con = 5; |
22 |
alarm[4] = 20; |
23 |
} |
24 |
} |
25 |
if (con == 6) |
26 |
{ |
27 |
pil = instance_create(x + 10, y + 20, obj_waterpillar); |
28 |
con = 7; |
29 |
alarm[4] = 3; |
30 |
} |
31 |
if (con == 8) |
32 |
{ |
33 |
visible = false; |
34 |
obj_mainchara.visible = false; |
35 |
con = 9; |
36 |
alarm[4] = 30; |
37 |
} |
38 |
if (con == 10) |
39 |
{ |
40 |
instance_create(0, 0, obj_unfader); |
41 |
con = 11; |
42 |
global.entrance = 24; |
43 |
alarm[4] = 10; |
44 |
} |
45 |
if (con == 12) |
46 |
{ |
47 |
instance_create(0, 0, obj_persistentfader); |
48 |
if (room == room_water9) |
49 |
room_goto(room_water7 Waterfall - Boat plank); |
50 |
if (room == room_water7) |
51 |
room_goto(room_water9 Waterfall - Bush after spear dodging); |
52 |
con = 13; |
53 |
} |
54 |
if (con == 20) |
55 |
{ |
56 |
con = 21; |
57 |
alarm[4] = 20; |
58 |
} |
59 |
if (con == 21) |
60 |
{ |
61 |
global.interact = 1; |
62 |
visible = false; |
63 |
obj_mainchara.visible = false; |
64 |
obj_mainchara.x = x; |
65 |
obj_mainchara.y = y - 8; |
66 |
} |
67 |
if (con == 22) |
68 |
{ |
69 |
pil = instance_create(x + 10, y + 20, obj_waterpillar); |
70 |
con = 23; |
71 |
alarm[4] = 3; |
72 |
} |
73 |
if (con == 24) |
74 |
{ |
75 |
obj_mainchara.visible = true; |
76 |
visible = true; |
77 |
con = 25; |
78 |
alarm[4] = 20; |
79 |
} |
80 |
if (con == 26) |
81 |
{ |
82 |
global.phasing = 1; |
83 |
obj_mainchara.image_speed = 0.25; |
84 |
global.facing = 2; |
85 |
obj_mainchara.vspeed = -3; |
86 |
alarm[4] = 6; |
87 |
con = 27; |
88 |
} |
89 |
if (con == 28) |
90 |
{ |
91 |
obj_mainchara.vspeed = 0; |
92 |
global.facing = 0; |
93 |
obj_mainchara.image_speed = 0; |
94 |
con = 29; |
95 |
alarm[4] = 20; |
96 |
global.phasing = 0; |
97 |
} |
98 |
if (con == 30) |
99 |
{ |
100 |
global.msg[0] = * Thanks for stepping on my face.Delay 11 * Here's the 3 gold.Wait for inputscr_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_purpledude_249") ; |
101 |
global.msg[1] = * (You got 3 gold.)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_purpledude_250") ; |
102 |
global.gold += 3; |
103 |
global.msc = 0; |
104 |
scr_regulartextscr_regulartextglobal.typer = 5;
global.facechoice = 0;
global.faceemotion = 0;
global.msc = 0;
instance_create(0, 0, obj_dialoguer); (); |
105 |
con = 31; |
106 |
} |
107 |
if (con == 31 && instance_exists(OBJ_WRITER) == 0) |
108 |
{ |
109 |
global.interact = 0; |
110 |
con = 0; |
111 |
} |