|
1
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
2
|
if (myinteract == 3)
|
|
3
|
{
|
|
4
|
if (global.flag[20 other_text_command] == 0)
|
|
5
|
{
|
|
6
|
sprite_index = spr_npc_puzzlepiece;
|
|
7
|
image_speed = 0.2;
|
|
8
|
}
|
|
9
|
if (global.flag[20 other_text_command] == 1)
|
|
10
|
{
|
|
11
|
sprite_index = spr_npc_puzzlepiece_shock1;
|
|
12
|
image_speed = 0.25;
|
|
13
|
}
|
|
14
|
if (global.flag[20 other_text_command] == 2)
|
|
15
|
{
|
|
16
|
sprite_index = spr_npc_puzzlepiece_shock2;
|
|
17
|
image_speed = 0.334;
|
|
18
|
}
|
|
19
|
if (i_ex(mydialoguer) == false)
|
|
20
|
{
|
|
21
|
if (!instance_exists(obj_fusionmenu))
|
|
22
|
global.interact = 0;
|
|
23
|
myinteract = 0;
|
|
24
|
with (obj_mainchara)
|
|
25
|
onebuffer = 5;
|
|
26
|
}
|
|
27
|
}
|
|
28
|
if (con == 10)
|
|
29
|
{
|
|
30
|
con = 11;
|
|
31
|
alarm[4] = 40; gml_Object_obj_npc_dojo_Alarm_4.gml
con++;
|
|
32
|
}
|
|
33
|
if (con == 12 && global.fighting == 0)
|
|
34
|
{
|
|
35
|
con = 13;
|
|
36
|
alarm[4] = 15; gml_Object_obj_npc_dojo_Alarm_4.gml
con++;
|
|
37
|
}
|
|
38
|
if (con == 14)
|
|
39
|
{
|
|
40
|
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 == "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;
}
if (global.fighting == 1)
... ("noone");
|
|
41
|
if (global.flag[36 dojo_failure] == 0)
|
|
42
|
{
|
|
43
|
if (global.flag[dojoFlag] == 0)
|
|
44
|
{
|
|
45
|
if (dojoFlag == 810 || dojoFlag == 811 || dojoFlag == 812 || dojoFlag == 813)
|
|
46
|
{
|
|
47
|
msgsetloc(0, * An amazing battle!Wait for input"* An amazing battle!/", "obj_npc_dojo_slash_Step_0_gml_45_0" );
|
|
48
|
msgnextloc(* As promised,Delay 11 here is your reward!Wait for input"* As promised^1, here is your reward!/", "obj_npc_dojo_slash_Step_0_gml_46_0" );
|
|
49
|
scr_itemget_anytypescr_itemget_anytype
function scr_itemget_anytype(arg0, arg1)
{
noroom = 0;
if (arg1 == "item")
scr_itemget(arg0);
if (arg1 == "weapon")
scr_weaponget(arg0);
if (arg1 == "armor")
scr_armorget(arg0);
if (arg1 == "key")
scr_keyitemget(arg0);
if (arg1 == "money")
global.gold += arg0;
} (dojoPrizeValue, dojoPrizeType);
|
|
50
|
if (noroom != 0)
|
|
51
|
{
|
|
52
|
msgnextloc(* Boss! Delay 11Your inventory is full!!Wait for input"* Boss!^1 Your inventory is full!!/", "obj_npc_dojo_slash_Step_0_gml_56_0" );
|
|
53
|
msgnextloc(* You'll just have to try again,Delay 11 boss!Wait for inputClose Message"* You'll just have to try again^1, boss!/%", "obj_npc_dojo_slash_Step_0_gml_65_0" );
|
|
54
|
global.flag[dojoFlag] = 0;
|
|
55
|
}
|
|
56
|
else
|
|
57
|
{
|
|
58
|
msgnextsubloc("* (You received ~1!)/%", dojoPrizeName, "obj_npc_dojo_slash_Step_0_gml_51_0");
|
|
59
|
global.flag[dojoFlag] = 2;
|
|
60
|
}
|
|
61
|
}
|
|
62
|
if (dojoFlag == 814)
|
|
63
|
{
|
|
64
|
if (global.flag[50 last_encounter_end] == 1)
|
|
65
|
{
|
|
66
|
msgsetloc(0, * Hey!Delay 11 That's not how you SPARE someone!Wait for input"* Hey^1! That's not how you \\cYSPARE\\cW someone!/", "obj_npc_dojo_slash_Step_0_gml_77_0" );
|
|
67
|
msgnextloc(* ...Delay 11 but I guess a win is a win.Wait for input"* ..^1. but I guess a win is a win./", "obj_npc_dojo_slash_Step_0_gml_78_0" );
|
|
68
|
}
|
|
69
|
else
|
|
70
|
{
|
|
71
|
msgsetloc(0, * An amazing battle!Wait for input"* An amazing battle!/", "obj_npc_dojo_slash_Step_0_gml_45_0" );
|
|
72
|
msgnextloc(* As promised,Delay 11 here is your reward!Wait for input"* As promised^1, here is your reward!/", "obj_npc_dojo_slash_Step_0_gml_46_0" );
|
|
73
|
}
|
|
74
|
msgnextloc(* You received Joe's Life Savings ($1)!Wait for inputClose Message"* You received Joe's Life Savings ($1)!/%", "obj_npc_dojo_slash_Step_0_gml_85_0" );
|
|
75
|
scr_itemget_anytypescr_itemget_anytype
function scr_itemget_anytype(arg0, arg1)
{
noroom = 0;
if (arg1 == "item")
scr_itemget(arg0);
if (arg1 == "weapon")
scr_weaponget(arg0);
if (arg1 == "armor")
scr_armorget(arg0);
if (arg1 == "key")
scr_keyitemget(arg0);
if (arg1 == "money")
global.gold += arg0;
} (dojoPrizeValue, dojoPrizeType);
|
|
76
|
global.flag[dojoFlag] = 2;
|
|
77
|
}
|
|
78
|
}
|
|
79
|
else
|
|
80
|
{
|
|
81
|
if (dojoFlag == 810 || dojoFlag == 811 || dojoFlag == 812 || dojoFlag == 813)
|
|
82
|
{
|
|
83
|
msgsetloc(0, * An amazing battle!Wait for input"* An amazing battle!/", "obj_npc_dojo_slash_Step_0_gml_45_0" );
|
|
84
|
msgnextloc(* But you already won that prize,Delay 11 so we don't have another!Wait for inputClose Message"* But you already won that prize^1, so we don't have another!/%", "obj_npc_dojo_slash_Step_0_gml_99_0" );
|
|
85
|
}
|
|
86
|
if (dojoFlag == 814)
|
|
87
|
{
|
|
88
|
msgsetloc(0, * An amazing battle!Wait for input"* An amazing battle!/", "obj_npc_dojo_slash_Step_0_gml_45_0" );
|
|
89
|
msgnextloc(* ...I don't have any more to give. You've already taken everything I have.Wait for inputClose Message"* ...I don't have any more to give. You've already taken everything I have./%", "obj_npc_dojo_slash_Step_0_gml_105_0" );
|
|
90
|
}
|
|
91
|
}
|
|
92
|
}
|
|
93
|
else
|
|
94
|
{
|
|
95
|
if (dojoFlag == 810)
|
|
96
|
msgsetloc(0, * Boss!Delay 11 For bullets aimed right at you,Delay 11 try moving one direction bit by bit...!Wait for inputClose Message"* Boss^1! For bullets aimed right at you^1, try moving \\cYone direction bit by bit\\cW...!/%", "obj_npc_dojo_slash_Step_0_gml_115_0" );
|
|
97
|
if (dojoFlag == 812)
|
|
98
|
msgsetloc(0, * Boss!Delay 11 Try to remember your ABCs...!Wait for inputClose Message"* Boss^1! Try to remember your ABCs...!/%", "obj_npc_dojo_slash_Step_0_gml_120_0" );
|
|
99
|
if (dojoFlag == 814 || dojoFlag == 811 || dojoFlag == 813)
|
|
100
|
msgsetloc(0, * You beefed it! Better luck next time,Delay 11 boss!Wait for inputClose Message"* You beefed it! Better luck next time^1, boss!/%", "obj_npc_dojo_slash_Step_0_gml_61_0" );
|
|
101
|
}
|
|
102
|
d_make();
|
|
103
|
con = 15;
|
|
104
|
}
|
|
105
|
if (con == 15 && !d_ex())
|
|
106
|
{
|
|
107
|
scr_healallscr_healall
function scr_healall(arg0)
{
for (i = 0; i < 3; i += 1)
{
if (global.char[i] != 0)
scr_heal(i, arg0);
}
} (999);
|
|
108
|
global.flag[35 gameover_mode] = 0;
|
|
109
|
global.flag[36 dojo_failure] = 0;
|
|
110
|
global.flag[37 dojo_active] = 0;
|
|
111
|
global.flag[38 no_battle_end_msg] = 0;
|
|
112
|
global.flag[39 dojo_abort?] = 0;
|
|
113
|
global.flag[60 dojo_next_encounter] = 0;
|
|
114
|
global.flag[61 disable_recruiting] = 0;
|
|
115
|
con = 0;
|
|
116
|
global.interact = 0;
|
|
117
|
global.facing = 0;
|
|
118
|
}
|