I'm here now!
I have some questions about the custom inventory.
Is this something you built or is it a plugin or something else? The reason I'm asking is that the solution I present may not work when its a tool that someone else built.
How do you identify the items in the inventory? In other words, if I drag the hammer to the chair, how do I know its the hammer?
For now, I'm going to make a couple assumptions:
- when you click an item in the inventory, you set a variable that tells you it is the hammer. lets call it
InventoryObject = 4 (where 4 is the setting for a hammer)
- when you don't have an inventory item, then
InventoryObject = 0
After selecting the hammer from the inventory, you click on the Chair hotspot.
From the Advanced tab of the chair hotspot, you would check the
InventoryObject variable.
- Code: Select all
if InventoryObject = 0 then
message = "You examine the chair. It is in need of repair"
elseif InventoryObject = 4 then
message = "You use the hammer on the chair
'do other actions, like change the image of the chair hotspot to show a fixed chair
else
message = "The object you are using on the chair is useless."
end if
I don't know if this helps you. It really depends on how the custom inventory was written. I'm sure the way I would have built the inventory would be entirely different than how this one was done. Not that I would do better, just different.
Let me know if this helps or not. If not, maybe you can explain how the inventory works.
Thanks and good luck.
By the way, I like your drawing!