Also in my opinion at least, understanding the coding logic of how to accomplish what you want is far more important than highly detailed steps to achieve very specific results, as the first will allow you to build a lot more once you understand the basic tools you have available.
<!--Saved by Quest 5.5.5328.26617-->
<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="newgame">
<gameid>47c964db-8467-4f9e-a19d-b10766765f97</gameid>
<version>1.0</version>
<firstpublished>2015</firstpublished>
</game>
<object name="room1">
<inherit name="editor_room" />
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
</object>
<exit to="room2" />
<object name="key">
<inherit name="editor_object" />
<feature_usegive />
<take />
<use type="script">
if (not game.pov.parent = room2) {
msg ("No lock here !")
}
else if () {
MakeExitVisible (Lock)
UnlockExit (Lock)
}
msg ("No Lock here")
</use>
</object>
</object>
<object name="room2">
<inherit name="editor_room" />
<exit to="room1" />
<exit name="Lock" to="room3">
<visible type="boolean">false</visible>
<locked />
</exit>
</object>
<object name="room3">
<inherit name="editor_room" />
<exit to="room2" />
</object>
</asl>
Davidmarks wrote:Also in my opinion at least, understanding the coding logic of how to accomplish what you want is far more important than highly detailed steps to achieve very specific results, as the first will allow you to build a lot more once you understand the basic tools you have available.
I do not entirely agree with for the following reason. I am not familiar with coding but desire to learn. At this early stage all attempts to understand the problem have failed after very many hours , leading as I have said before to almost giving up. The step by step detail so kindly provided by Neonayon will not only allow me to move forward with my game, but I can also look at the code involved to achieve someting which is important to me and by so doing learn more about the coding ..Having said that we all learn in different ways ...Hope all that makes sense .... Now, back to trying to locate that blasted syntax error