Simple two room game with ring that can be taken

p3aul
30 Jan 2014, 07:23
I have tried to do a simple two room game with an object(ring) that can be taken. The ring is in a chest that is initially closed. The chest is the parent of the ring. The chest can be opened and closed when open, it shows the ring. When I say "take ring" it says "I can't see that". Attached is the source. Can someone please help me see my error?
Thanks,
Paul

Pertex
30 Jan 2014, 07:52
I think you changed the type of container. First you used the "Openable/closable". There you created a script just to print a message when trying to open the chest, but the chest will not be opened with this script. Then you changed the type to "Closed container". Now the old script is not visible anymore but still active. So when you try to open the chest it only prints a message.

Now you can change the type again, remove the script and then change the type back to "Closed container" or open your game in code view and remove
      <openscript type="script">
msg ("you see a gold ring in the chest")
</openscript>

p3aul
30 Jan 2014, 08:10
Perfect! Thank you! After I posted, I saw someones question about being unable to see the object in his container. I saw your answer and went looking for the problem in "Container" I had originally specified openable/closable but I saw where you recommended ""closed" but it still wouldn't work because I had the prior code still there!
Paul