|
1
|
if (conversation == 1 && instance_exists(obj_dialoguer) == 0)
|
|
2
|
{
|
|
3
|
conversation = 2;
|
|
4
|
with (obj_toroverworld3)
|
|
5
|
x -= 10;
|
|
6
|
obj_toroverworld3.rsprite = spr_toriel_handhold_r;
|
|
7
|
obj_toroverworld3.usprite = spr_toriel_handhold_u;
|
|
8
|
obj_toroverworld3.sprite_index = spr_toriel_handhold_r;
|
|
9
|
obj_mainchara.visible = false;
|
|
10
|
with (obj_toroverworld3)
|
|
11
|
path_start(path_torielwalk20_2, 2, path_action_stop, 0);
|
|
12
|
with (obj_mainchara)
|
|
13
|
path_start(path_torielwalk20_2, 2, path_action_stop, 0);
|
|
14
|
}
|
|
15
|
if (instance_exists(obj_toroverworld3) && conversation == 2)
|
|
16
|
{
|
|
17
|
if (obj_toroverworld3.path_position == 1)
|
|
18
|
{
|
|
19
|
obj_toroverworld3.usprite = spr_toriel_u;
|
|
20
|
obj_toroverworld3.rsprite = spr_toriel_r;
|
|
21
|
obj_mainchara.x += 33;
|
|
22
|
alarm[2] = 1; gml_Object_obj_torieltrigger7_Alarm_2.gml
obj_toroverworld3.x += 19;
obj_mainchara.y -= 1;
obj_mainchara.x += 8;
obj_mainchara.visible = true;
|
|
23
|
obj_toroverworld3.y -= 1;
|
|
24
|
obj_toroverworld3.facing = 2;
|
|
25
|
obj_toroverworld3.direction = 90;
|
|
26
|
global.facing = 2;
|
|
27
|
obj_mainchara.y -= 3;
|
|
28
|
global.msg[0] = * A room of your own. * I hope you like it!Wait for inputClose MessageClose Messagescr_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; ("obj_torieltrigger7_243") ;
|
|
29
|
instance_create(0, 0, obj_dialoguer);
|
|
30
|
conversation = 3;
|
|
31
|
}
|
|
32
|
}
|
|
33
|
if (conversation == 3 && instance_exists(obj_dialoguer) == 0)
|
|
34
|
{
|
|
35
|
alarm[5] = 90; gml_Object_obj_torieltrigger7_Alarm_5.gml
with (ruff)
instance_destroy();
with (obj_toroverworld3)
visible = true;
conversation = 5;
global.faceemotion = 1;
obj_mainchara.visible = true;
global.msg[0] = * Is something burning...? * Um,Delay 11 make yourself at home!Wait for inputClose MessageClose Message ;
obj_toroverworld3.phone = 0;
obj_toroverworld3.usprite = spr_toriel_u;
instance_create(0, 0, obj_dialoguer);
|
|
36
|
with (obj_toroverworld3)
|
|
37
|
visible = false;
|
|
38
|
ruff = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (obj_toroverworld3.x, obj_toroverworld3.y, spr_toriel_ruffle);
|
|
39
|
ruff.image_speed = 0.1;
|
|
40
|
obj_mainchara.visible = false;
|
|
41
|
alarm[1] = 10; gml_Object_obj_torieltrigger7_Alarm_1.gml
if (instance_exists(ruff))
{
alarm[6]
obj_toroverworld3.myinteract = 17;
}
else
{
obj_toroverworld3.myinteract = 0;
}
|
|
42
|
conversation = 4;
|
|
43
|
}
|
|
44
|
if (conversation == 5 && instance_exists(obj_dialoguer) == 0)
|
|
45
|
{
|
|
46
|
obj_toroverworld3.usprite = spr_toriel_u;
|
|
47
|
global.interact = 0;
|
|
48
|
conversation = 2;
|
|
49
|
with (obj_toroverworld3)
|
|
50
|
path_start(path_torielwalk20, 6, path_action_stop, 0);
|
|
51
|
global.plot = 19;
|
|
52
|
instance_destroy();
|
|
53
|
}
|