Closed ReneFrijhoff closed 4 years ago
The openscript will only be used if Quest has already determined that the object is not open, so there is no situation when the else can apply.
All the openscript needs to do is print your custom message (in this situation); Quest will set the object to be in an open state.
<openscript type="script">
msg ("You open the cold water faucet and cold water is starting to run down.")
</openscript>
<closescript type="script">
msg ("You close the cold water faucet.")
</closescript>
The IF THEN ELSE statement within a Container doesn't work properly.
When using OPEN or CLOSE when it's already open or closed i.s.o. printing the custom message in the ELSE clause, it prints the default message.
Switching the IF and ELSE has no impact other then just the reverse happens: When using OPEN or CLOSE when it's already open or closed i.s.o. printing the custom message in the IF clause, it prints the default message.