Combining Inventory Items
Dark4ngel
19 Dec 2009, 04:50Hi all.
been awhile since I been here. have a question about combining items in inventory. I've done a search here but the combining issues that people have are not quite the same issue I am having.
two inventory items - some string and a rock.
i want it so once player has these 2 items then they can tie (combine) the two together (for a task later)
what I do is make both "inaccessible"
and give player a new item ("stringed rock")
problem:
when player combines the two (dragging one on the other) it gives the error from the 3RD object "stringed rock" which is weird.
things done thus far:
I have the rock and string can be used on each other
i have a procedure that assigned a new item (stringed rock) and makes the other two inaccessible.,
there is an error for the "stringed rock" that if you use something on it it says "that's silly"
problem 2: it is THAT error ("that's silly") comes up when combining the rock and string. why? player doesn't have the 'stringed rock" at that point in the source code.
now
by any chance am i doing this the loooooonnngggg way? and am missing out on something simple.
been awhile since I been here. have a question about combining items in inventory. I've done a search here but the combining issues that people have are not quite the same issue I am having.
two inventory items - some string and a rock.
i want it so once player has these 2 items then they can tie (combine) the two together (for a task later)
what I do is make both "inaccessible"
and give player a new item ("stringed rock")
problem:
when player combines the two (dragging one on the other) it gives the error from the 3RD object "stringed rock" which is weird.
things done thus far:
I have the rock and string can be used on each other
i have a procedure that assigned a new item (stringed rock) and makes the other two inaccessible.,
there is an error for the "stringed rock" that if you use something on it it says "that's silly"
problem 2: it is THAT error ("that's silly") comes up when combining the rock and string. why? player doesn't have the 'stringed rock" at that point in the source code.
now
by any chance am i doing this the loooooonnngggg way? and am missing out on something simple.
Alex
19 Dec 2009, 13:47Where is the "that's silly" error message coming from? It's not a standard Quest error message. Are you using any libraries? Can you post your ASL code here so we can take a look?
Dark4ngel
19 Dec 2009, 13:56Hi.
I figured it out. the 3rd Item i had hidden in the room so it does not show up in the description.
I had to use the REVEAL OBJECT so it could be given to player.
so that issue is solved.
next problem is when i want to combine ("use") the two items that are in the inventory it keeps saying "can't use that here"
in the INVENTORY -> "EDIT 'USE' DETAILS" each item is set to be used on each other.
i tried typing "use x on y" still gets error
if i did a drag and drop in the inventory of the 2 items, same error.
its like you cannot use items ON items in the inventory. I can do it outside of inventory.
I figured it out. the 3rd Item i had hidden in the room so it does not show up in the description.
I had to use the REVEAL OBJECT so it could be given to player.
so that issue is solved.
next problem is when i want to combine ("use") the two items that are in the inventory it keeps saying "can't use that here"
in the INVENTORY -> "EDIT 'USE' DETAILS" each item is set to be used on each other.
i tried typing "use x on y" still gets error
if i did a drag and drop in the inventory of the 2 items, same error.
its like you cannot use items ON items in the inventory. I can do it outside of inventory.