Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_swordroute_event_susiesoda_Other_10

(view raw script w/o annotations or w/e)
1
itemid = 36;
2
with (obj_darkcontroller)
3
    charcon = 0;
4
global.msc = 0;
5
global.typer = 6;
6
global.fc = 0;
7
global.fe = 0;
8
global.interact = 1;
9
var itemgetstring = 
scr_itemget_anytype_text
scr_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; }
(itemid, "item");
10
msgsetloc(0, 
* (You found a FlatSoda.)Wait for input
"* (You found a \\cYFlatSoda\\cW.)/", "obj_swordroute_event_susiesoda_slash_Other_10_gml_16_0"
);
11
msgnext(itemgetstring);
12
if (noroom == 0)
13
{
14
    snd_play(snd_item);
15
    taken = 1;
16
    image_alpha = 0;
17
}
18
else
19
{
20
    taken = 0;
21
}
22
myinteract = 3;
23
d = d_make();