|
1
|
con = -1;
|
|
2
|
timer = 0;
|
|
3
|
siner = 0;
|
|
4
|
dispense = 0;
|
|
5
|
selectedPrize = 0;
|
|
6
|
betPoints = 0;
|
|
7
|
superChanceBonusDrawAmount = 0;
|
|
8
|
for (i = 0; i < 26; i++)
|
|
9
|
{
|
|
10
|
prizeitemid[i] = i;
|
|
11
|
prizeballcolor[i] = c_red;
|
|
12
|
if (i >= 20)
|
|
13
|
prizeballcolor[i] = c_yellow;
|
|
14
|
prizesprite[i] = 4641;
|
|
15
|
prizeimage[i] = 0;
|
|
16
|
prizetype[i] = "item";
|
|
17
|
prizespecialmessage[i] = 0;
|
|
18
|
prizeavailable[i] = 1;
|
|
19
|
prizeflag[i] = 0;
|
|
20
|
}
|
|
21
|
scr_itemget_anytype_textscr_itemget_anytype_text
function scr_itemget_anytype_text()
{
noroom = 0;
scr_itemget_anytype(argument[0], argument[1]);
var itemgetstring = "";
itemname = "NULL";
itemtypename = "NULL";
var _itemtype = argument1;
var _itemid = argument0;
if (_itemtype == "armor")
{
scr_armorinfo(_itemid);
itemname = armornametemp;
itemtypename = stringsetloc(ARMORs"ARMORs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_22_0" );
}
else if (_itemtype == "weapon")
{
scr_weaponinfo(_itemid);
itemname = weaponnametemp;
itemtypename = stringsetloc(WEAPONs"WEAPONs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_29_0" );
}
if (_itemtype == "item")
{
scr_iteminfo(_itemid);
itemname = itemnameb;
itemtypename = stringsetloc(ITEMs"ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_36_0" );
if (_pocketed)
itemtypename = stringsetloc(STORAGE"STORAGE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_38_0" );
}
if (_itemtype == "key")
{
scr_keyiteminfo(_itemid);
itemname = tempkeyitemname;
itemtypename = stringsetloc(KEY ITEMs"KEY ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_44_0" );
}
if (_itemtype == "money")
{
noroom = 0;
global.gold += _itemid;
itemtypename = stringsetloc(MONEY HOLE"MONEY HOLE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_51_0" );
itemname = string(_itemid) + stringsetloc( Dark Dollars" Dark Dollars", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_52_0" );
}
if (_itemtype == "points")
{
noroom = 0;
global.flag[1044 points] += _itemid;
if (global.flag[1044 points] > 9999)
global.flag[1044 points] = 9999;
itemtypename = stringsetloc(SCORE"SCORE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_63_0" );
itemname = string(_itemid) + stringsetloc( POINTs" POINTs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_64_0" );
}
if (noroom == 0)
itemgetstring = stringsetsubloc("* (\\cY~1\\cW was added to your \\cY~2\\cW.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_76_0");
else
itemgetstring = stringsetsubloc("* (You have too many \\cY~2\\cW to take \\cY~1\\c0.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_83_0");
if (argument_count >= 3)
itemgetstring += argument[2];
else
itemgetstring += "/%";
return itemgetstring;
} ();
|
|
22
|
prizeitemid[0] = 34;
|
|
23
|
prizeitemtype[0] = "item";
|
|
24
|
prizeitemid[1] = 100;
|
|
25
|
prizeitemtype[1] = "points";
|
|
26
|
prizeitemid[2] = 8;
|
|
27
|
prizeitemtype[2] = "key";
|
|
28
|
prizeimage[2] = 1;
|
|
29
|
prizespecialmessage[2] = 1;
|
|
30
|
prizeballcolor[2] = c_blue;
|
|
31
|
prizeitemid[3] = 0;
|
|
32
|
prizeitemtype[3] = "none";
|
|
33
|
prizeimage[3] = 2;
|
|
34
|
prizespecialmessage[3] = 2;
|
|
35
|
prizeballcolor[3] = c_green;
|
|
36
|
prizeitemid[4] = 0;
|
|
37
|
prizeitemtype[4] = "none";
|
|
38
|
prizesprite[4] = 3735;
|
|
39
|
prizespecialmessage[4] = 3;
|
|
40
|
prizeballcolor[4] = c_green;
|
|
41
|
prizeflag[4] = 1222;
|
|
42
|
prizeitemid[5] = 3;
|
|
43
|
prizeitemtype[5] = "item";
|
|
44
|
prizeitemid[6] = 39;
|
|
45
|
prizeitemtype[6] = "item";
|
|
46
|
prizeitemid[7] = 34;
|
|
47
|
prizeitemtype[7] = "item";
|
|
48
|
prizeitemid[8] = 37;
|
|
49
|
prizeitemtype[8] = "item";
|
|
50
|
prizeitemid[9] = 25;
|
|
51
|
prizeitemtype[9] = "armor";
|
|
52
|
prizeitemid[10] = 33;
|
|
53
|
prizeitemtype[10] = "item";
|
|
54
|
prizeflag[10] = 1223;
|
|
55
|
prizespecialmessage[10] = 4;
|
|
56
|
prizeballcolor[10] = c_white;
|
|
57
|
prizesprite[10] = 313;
|
|
58
|
prizeitemid[11] = 200;
|
|
59
|
prizeitemtype[11] = "points";
|
|
60
|
prizeitemid[12] = 50;
|
|
61
|
prizeitemtype[12] = "points";
|
|
62
|
prizeitemid[20] = 27;
|
|
63
|
prizeitemtype[20] = "armor";
|
|
64
|
prizeflag[20] = 1177;
|
|
65
|
prizeitemid[21] = 38;
|
|
66
|
prizeitemtype[21] = "item";
|
|
67
|
prizeflag[21] = 1178;
|
|
68
|
prizeitemid[22] = 29;
|
|
69
|
prizeitemtype[22] = "item";
|
|
70
|
prizeflag[22] = 1179;
|
|
71
|
prizeitemid[23] = 2;
|
|
72
|
prizeitemtype[23] = "item";
|
|
73
|
prizeflag[23] = 1180;
|
|
74
|
prizeitemid[24] = 26;
|
|
75
|
prizeitemtype[24] = "armor";
|
|
76
|
prizeflag[24] = 1181;
|
|
77
|
prizeitemid[25] = 101;
|
|
78
|
prizeitemtype[25] = "points";
|
|
79
|
prizeballcolor[25] = c_yellow;
|
|
80
|
for (i = 0; i < 25; i++)
|
|
81
|
{
|
|
82
|
if (global.flag[prizeflag[i]] != 0)
|
|
83
|
{
|
|
84
|
if (global.flag[prizeflag[i]] == 1)
|
|
85
|
prizeavailable[i] = 0;
|
|
86
|
}
|
|
87
|
}
|
|
88
|
depth = 100000;
|
|
89
|
image_xscale = 2;
|
|
90
|
image_yscale = 2;
|
|
91
|
drawGachaBall = 0;
|
|
92
|
gachaBallSeparation = 0;
|
|
93
|
gachaBallXScale = 0;
|
|
94
|
gachaBallYScale = 0;
|
|
95
|
gachaBallX = 0;
|
|
96
|
gachaBallY = 0;
|
|
97
|
prizeX = 0;
|
|
98
|
prizeY = 0;
|
|
99
|
prizeXScale = 0;
|
|
100
|
prizeYScale = 0;
|
|
101
|
prizeImageBlend = 0;
|
|
102
|
selectedPrize = 0;
|
|
103
|
gachaAngle = 0;
|