You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2Rogue/Export_Code/gml_Object_oItem_Other_10.gml

24 lines
650 B

global.item[itemid] = 1
global.itemstaken += 1
myposx = floor((x / 320))
myposy = floor(((y - 8) / 240))
mapposx = (myposx + global.mapoffsetx)
mapposy = (myposy + global.mapoffsety)
if (room == rm_a4b02b && itemid == 253)
global.dmap[37, 58] = 2
if (distance_to_object(oItem) > 180)
global.dmap[mapposx, mapposy] = 2
with (oControl)
event_user(2)
if visible
{
fade = instance_create(x, y, oFXTrail)
fade.sprite_index = sprite_index
fade.fadespeed = 0.1
}
global.itemtype = itemtype
display_itemmsg(text1, text2, btn1_name, btn2_name)
if (global.chozo_message_item_id == itemid)
oControl.chozomessage++
instance_destroy()