|
1
|
scr_populatecharsscr_populatechars
function scr_populatechars()
{
if (!variable_instance_exists(id, "kris"))
kris = 0;
if (!variable_instance_exists(id, "ralsei"))
ralsei = 0;
if (!variable_instance_exists(id, "susie"))
susie = 0;
if (!variable_instance_exists(id, "noelle"))
noelle = 0;
if (kris == 0)
{
with (obj_mainchara)
other.kris = id;
}
if (susie == 0)
{
with (obj_caterpillarchara)
{
if (name == "susie")
other.susie = id;
}
}
if (ralsei == 0)
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
other.ralsei = id;
}
}
if (noelle == 0)
{
with (obj_caterpillarchara)
{
if (name == "noelle")
other.noelle = id;
}
}
} ();
|
|
2
|
if (shadowinit == 0)
|
|
3
|
{
|
|
4
|
instance_create(x, y, obj_darkness_overlay);
|
|
5
|
with (instance_create(x, y, obj_floorshadow))
|
|
6
|
{
|
|
7
|
target = other.kris;
|
|
8
|
name = "kris";
|
|
9
|
}
|
|
10
|
with (instance_create(x, y, obj_floorshadow))
|
|
11
|
{
|
|
12
|
target = other.ralsei;
|
|
13
|
name = "ralsei";
|
|
14
|
}
|
|
15
|
with (instance_create(x, y, obj_floorshadow))
|
|
16
|
{
|
|
17
|
target = other.susie;
|
|
18
|
name = "susie";
|
|
19
|
}
|
|
20
|
if (i_ex(gerson))
|
|
21
|
{
|
|
22
|
with (instance_create(x, y, obj_floorshadow))
|
|
23
|
{
|
|
24
|
target = other.gerson;
|
|
25
|
name = "gerson";
|
|
26
|
}
|
|
27
|
}
|
|
28
|
shadowinit = 1;
|
|
29
|
}
|
|
30
|
if (global.plot >= 140)
|
|
31
|
{
|
|
32
|
with (obj_doorAny)
|
|
33
|
{
|
|
34
|
if (init == 1)
|
|
35
|
{
|
|
36
|
if (doorRoom == room_dw_church_ripplepuzzle)
|
|
37
|
{
|
|
38
|
doorRoom = room_dw_church_ripplepuzzle_postgers;
|
|
39
|
if (global.plot == 141)
|
|
40
|
instance_destroy();
|
|
41
|
}
|
|
42
|
init = 2;
|
|
43
|
}
|
|
44
|
}
|
|
45
|
}
|
|
46
|
if (global.plot == 141)
|
|
47
|
{
|
|
48
|
if (leavecon == 0)
|
|
49
|
{
|
|
50
|
if (kris.x > 1232 && global.interact == 0)
|
|
51
|
{
|
|
52
|
kris.x = 1232;
|
|
53
|
leavecon = 1;
|
|
54
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("ralsei");
|
|
55
|
msgsetloc(0, Face K* I think we should stay with the old man.Wait for inputClose Message"\\EK* I think we should stay with the old man./%", "obj_dw_church_turtles_slash_Step_0_gml_60_0" );
|
|
56
|
global.interact = 1;
|
|
57
|
d_make();
|
|
58
|
with (instance_create(obj_mainchara.bbox_right + 4, obj_mainchara.y, obj_solidblocksized))
|
|
59
|
scr_sizescr_size
function scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{
with (arg2)
{
image_xscale = arg0;
image_yscale = arg1;
}
} (8, 8);
|
|
60
|
}
|
|
61
|
}
|
|
62
|
if (leavecon == 1 && !d_ex())
|
|
63
|
{
|
|
64
|
global.interact = 0;
|
|
65
|
leavecon = 5;
|
|
66
|
}
|
|
67
|
}
|
|
68
|
if (global.fighting == 1)
|
|
69
|
domake = false;
|
|
70
|
array_push(plspeed, obj_mainchara.px);
|
|
71
|
if (array_length(plspeed) > 8)
|
|
72
|
array_delete(plspeed, 0, 1);
|
|
73
|
var plspeedavg = 0;
|
|
74
|
for (var i = 0; i < array_length(plspeed); i++)
|
|
75
|
plspeedavg += plspeed[i];
|
|
76
|
plspeedavg = plspeedavg / array_length(plspeed);
|
|
77
|
if (battlecon == 0 && domake)
|
|
78
|
{
|
|
79
|
var trig = 0;
|
|
80
|
var _dir = 0;
|
|
81
|
var difficulty = 0;
|
|
82
|
if (global.flag[encounterflag] != 0)
|
|
83
|
difficulty = 1;
|
|
84
|
with (obj_trigger)
|
|
85
|
{
|
|
86
|
if (place_meeting(x, y, obj_mainchara))
|
|
87
|
{
|
|
88
|
trig = 1;
|
|
89
|
if (obj_mainchara.x < (bbox_left + (sprite_width / 2)))
|
|
90
|
_dir = 0;
|
|
91
|
else
|
|
92
|
_dir = 1;
|
|
93
|
}
|
|
94
|
}
|
|
95
|
if (trig == 1)
|
|
96
|
{
|
|
97
|
debug_print("difficulty=" + string(difficulty));
|
|
98
|
if (difficulty == 1)
|
|
99
|
_dir = !_dir;
|
|
100
|
var xloc = scr_genmarker("right").x;
|
|
101
|
if (_dir == 1)
|
|
102
|
xloc = scr_genmarker("left").x;
|
|
103
|
with (instance_create(xloc, cameray(), obj_encounter_incenseturtle))
|
|
104
|
{
|
|
105
|
dir = _dir;
|
|
106
|
encounterno = other.encounterno;
|
|
107
|
encounterflag = other.encounterflag;
|
|
108
|
}
|
|
109
|
battletimer = 200;
|
|
110
|
battlecon = 1;
|
|
111
|
}
|
|
112
|
}
|
|
113
|
if (battlecon == 1)
|
|
114
|
{
|
|
115
|
if (global.interact == 0)
|
|
116
|
battletimer--;
|
|
117
|
if (battletimer <= 0)
|
|
118
|
battlecon = 0;
|
|
119
|
}
|