Mock Password
Laraqua
06 Feb 2023, 02:44So I'm using Quest to simulate a password protected computer for a LARP and I just want players to be able to input Chocolate as a command and move the player from the Password Room that contains a password prompt to the Research room Which has all of the information within. If I could remove the Command Bar once they're in the Research Room that would be great too. Here is my code:
Example Code:
<inherit name="editor_room" />
<isroom />
<description><![CDATA[<b><u>Research Conducted Within The Zone By The Institute for Extraterrestrial Culture</u></b><br/><br/>Enter Password]]></description>
<descprefix type="string"></descprefix>
<objectslistprefix type="string"></objectslistprefix>
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
</object>
<command name="Chocolate">
<script>
MoveObject (player, Research Room)
</script>
</command>
</object>
<object name="Research Room">
<inherit name="editor_room" />
<isroom />
<description><
Bumper2016
16 Feb 2023, 17:48I don't know how to make the command bar disappear but if you make "Chocolate" a command from the script tap of the password room the command will no longer work when in the research room. Have the command move the player object to the research room which is easy to do with the scripts but in a code view might look something like this.
MoveObject (player, Research Room)
Laraqua
16 Feb 2023, 23:56Thanks Bumper2016. I also realised that I just needed to change it from Command Pattern to Regular Expression under pattern and it works well.