Bryan112
Member
Hi, I'm new here.
Hope you guys are feeling alright.
Anyway, perhaps you guys can help me.
TLDR: How to select a specific object.id, instance.id?
I made a cool looking inventory system. You can drag and drop items into crates and/or back into your own inventory. The crate to inventory part is working like a charm, however. The inventory to crate part is where it gets tricky. It is possible to have multiple crates in your world. To drag and drop from your inventory to a crate, I need to select THAT specific crate only.
What I have now: (BE AWARE THAT THIS CODE IS CALLED FROM THE CRATE SCRIPT) Ocontrol_inventory.CRATESELECTED = object_index;
(Ocontrol_inventory being the player inventory object.)
Sadly this doesn't work. When I'm testing the code, the object_index I'm looking for doesn't get found. How do I fix this?
Does this have to do with instance_id? Object_id's? Is till can't really tell the difference between the two.
Thanks a lot!
Hope you guys are feeling alright.
Anyway, perhaps you guys can help me.
TLDR: How to select a specific object.id, instance.id?
I made a cool looking inventory system. You can drag and drop items into crates and/or back into your own inventory. The crate to inventory part is working like a charm, however. The inventory to crate part is where it gets tricky. It is possible to have multiple crates in your world. To drag and drop from your inventory to a crate, I need to select THAT specific crate only.
What I have now: (BE AWARE THAT THIS CODE IS CALLED FROM THE CRATE SCRIPT) Ocontrol_inventory.CRATESELECTED = object_index;
(Ocontrol_inventory being the player inventory object.)
Sadly this doesn't work. When I'm testing the code, the object_index I'm looking for doesn't get found. How do I fix this?
Does this have to do with instance_id? Object_id's? Is till can't really tell the difference between the two.
Thanks a lot!