|
1
|
if (active)
|
|
2
|
buffer--;
|
|
3
|
scr_depth_boardscr_depth_board
function scr_depth_board()
{
depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10));
}
function scr_board_depth()
{
scr_depth_board();
} ();
|
|
4
|
if (init == 0)
|
|
5
|
{
|
|
6
|
init = 1;
|
|
7
|
if (mytype == "lancer")
|
|
8
|
sprite_index = spr_board_lancer_down;
|
|
9
|
}
|
|
10
|
if (kris == 0)
|
|
11
|
{
|
|
12
|
with (obj_mainchara_board)
|
|
13
|
{
|
|
14
|
if (name == "kris")
|
|
15
|
other.kris = id;
|
|
16
|
}
|
|
17
|
}
|
|
18
|
var metkris = 0;
|
|
19
|
if (active && mytype == "key")
|
|
20
|
{
|
|
21
|
if (global.flag[1044 points] >= cost)
|
|
22
|
{
|
|
23
|
var player = collision_rectangle(x + 2, y + 2, (x + sprite_width) - 2, (y + sprite_height) - 2, obj_mainchara_board, false, true);
|
|
24
|
if (i_ex(player))
|
|
25
|
{
|
|
26
|
if (player.controlled == true)
|
|
27
|
metkris = 1;
|
|
28
|
}
|
|
29
|
}
|
|
30
|
}
|
|
31
|
var dobuy = 0;
|
|
32
|
if (myinteract == 3)
|
|
33
|
{
|
|
34
|
if (global.flag[1044 points] >= cost)
|
|
35
|
{
|
|
36
|
if (mytype == "lancer")
|
|
37
|
{
|
|
38
|
if (cost == 999)
|
|
39
|
{
|
|
40
|
myinteract = 10;
|
|
41
|
}
|
|
42
|
else
|
|
43
|
{
|
|
44
|
dobuy = true;
|
|
45
|
myinteract = 0;
|
|
46
|
}
|
|
47
|
}
|
|
48
|
else
|
|
49
|
{
|
|
50
|
dobuy = true;
|
|
51
|
myinteract = 0;
|
|
52
|
}
|
|
53
|
}
|
|
54
|
}
|
|
55
|
if (myinteract == 10)
|
|
56
|
{
|
|
57
|
global.interact = 1;
|
|
58
|
global.msc = -99;
|
|
59
|
global.choice = -1;
|
|
60
|
global.choicemsg[0] = stringsetloc(YES"YES", "obj_board_store_key_slash_Step_0_gml_72_0" );
|
|
61
|
global.choicemsg[1] = stringsetloc(NO"NO", "obj_board_store_key_slash_Step_0_gml_73_0" );
|
|
62
|
global.choicemsg[2] = stringset("");
|
|
63
|
global.choicemsg[3] = stringset("");
|
|
64
|
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 == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
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;
... ("Lancer");
|
|
65
|
msgsetloc(0, WOW!Delay 11 YOU'LL REALLY BUY ME FOR 999 POINTS!?Wait for input"WOW^1! YOU'LL REALLY BUY ME FOR 999 POINTS!?/", "obj_board_store_key_slash_Step_0_gml_78_0" );
|
|
66
|
msgnext("\\C2 ");
|
|
67
|
myinteract = 11;
|
|
68
|
with (bw_make())
|
|
69
|
stay = 1;
|
|
70
|
}
|
|
71
|
if (myinteract == 11 && global.choice != -1)
|
|
72
|
{
|
|
73
|
with (obj_writer)
|
|
74
|
instance_destroy();
|
|
75
|
if (global.choice == 0)
|
|
76
|
{
|
|
77
|
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 == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
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;
... ("Lancer");
|
|
78
|
msgsetloc(0, IT COSTS A LOT TO RAISE A BOY!Wait for inputClose Message"IT COSTS A LOT TO RAISE A BOY!/%", "obj_board_store_key_slash_Step_0_gml_89_0" );
|
|
79
|
with (bw_make())
|
|
80
|
skip = true;
|
|
81
|
myinteract = 12;
|
|
82
|
}
|
|
83
|
if (global.choice == 1)
|
|
84
|
{
|
|
85
|
with (obj_board_writer)
|
|
86
|
instance_destroy();
|
|
87
|
global.interact = 0;
|
|
88
|
myinteract = 0;
|
|
89
|
}
|
|
90
|
}
|
|
91
|
if (myinteract == 12 && !bw_ex())
|
|
92
|
{
|
|
93
|
myinteract = 13;
|
|
94
|
dobuy = true;
|
|
95
|
}
|
|
96
|
if (dobuy)
|
|
97
|
{
|
|
98
|
if (mytype == "lancer")
|
|
99
|
global.flag[1048 lancer_cost] = cost;
|
|
100
|
scr_board_scorescr_board_score
function scr_board_score(arg0)
{
var scoreadder = instance_create(x, y, obj_board_scoreAdder);
scoreadder.scoreamount = arg0;
if (argument_count == 2)
scoreadder.mysnd = argument1;
}
function scr_board_score_set(arg0)
{
global.flag[1044 points] = arg0;
} (-cost);
|
|
101
|
global.flag[1117 points_spent] += cost;
|
|
102
|
key = instance_create(x, y, obj_board_pickup);
|
|
103
|
key.type = mytype;
|
|
104
|
key.depth = 5000;
|
|
105
|
key.image_alpha = 1;
|
|
106
|
key.image_speed = 0;
|
|
107
|
key.sprite_index = sprite_index;
|
|
108
|
key.image_index = image_index;
|
|
109
|
key.image_xscale = image_xscale;
|
|
110
|
key.image_yscale = image_yscale;
|
|
111
|
key.con = 3;
|
|
112
|
key.override = 3;
|
|
113
|
instance_destroy();
|
|
114
|
}
|