Object becomes invisible in scripting.

sbangs
I need to swap out an object, to avoid multiple checks which will come back negative and nesting conditions. Just rather replace an object and have cleaner scripting.

First object is named "knife" with an alias of "knife".
Second object is named "knife2" with alias of "knife".

When a certain condition is true, then knife/knife is made removed from player and made inaccessible.
Then after those commands i have knife2/knife made accessible and given to player.


My problem is when this occurs, the knife2 described as "knife" does in fact become present in the players inventory, and the use scripts on this duplicate knife do in fact fire and run correctly. However this new knife does not display in the players inventory, not on the side gui, nor when the player types "i" or "inv" in the main description window. So the player now has an invisible knife (knife2) really, which he/she can drop, and pick back up and use, but never see it.

Is this a bug? Anyway around this?

Thanks,


Pertex
Is this the same problem you described in your thread "Issue revealing items when breaking the container open." ? Do you have an example-ASL?

sbangs
Here you go, once you get the chute together and jump out of the plane, the knife switch is when you enter the beach water, either by using the LAND command too early, or by walking from the beach.

Good luck :)

Thanks,


Pertex
You must "reveal an object" with knife2

sbangs
Yep, thanks. I guess I need to understand, reveal, accessible and how they interact with the world more.

Thanks for info.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums