open command

I 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

Does 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.

No, does not work. I only get the message "You can't open it." The open-script is not executed

The 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).

ahh great, thank you