open command

Pertex
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

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

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

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

Pertex
ahh great, thank you

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

Support

Forums