open command

Pertex
27 Feb 2012, 14:25I want to create a container that should only possible to be opened if the player's health attribute is greater than 100. Is it possible to do this? If I create an <open type="script">...</open> the container can't be opend any more
Alex
27 Feb 2012, 16:02Does the open script not run at all in that case?
You may need to make it the "openable/closable" type instead, and manually open the object within the "open" script.
You may need to make it the "openable/closable" type instead, and manually open the object within the "open" script.

Pertex
28 Feb 2012, 07:30No, does not work. I only get the message "You can't open it." The open-script is not executed
Alex
28 Feb 2012, 10:27The open script needs to be in an "openscript" attribute.
Also, the "open" attribute needs to be true (this is automatically set by the "openable" type).
Also, the "open" attribute needs to be true (this is automatically set by the "openable" type).

Pertex
28 Feb 2012, 12:44ahh great, thank you