Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


No Go Back

Solution I called it no go back for lack of a better word. Lets say you make a room in a quest. There is something that they have to find in there whether its by word spoken or looking for a hidden spot, but lets say there is a trap door that if they fall in, they cant come back to that room until they figure out what they need in the next room to bring them back to this room. Another variation would be IF they fall in the trapdoor, they have to go the longer way around through this quest and you want to make it so they CAN'T come back this way, thus you want to eliminate the back arrow button. Its just to deter them because of a bad choice, they will be stuck in that second room until they find a way to get back to the original room they took a wrong turn in, or take a whole different route now to get to the same spot.

In the original room you need this script.....

ON ENTER {
passport GLOBAL
{ <room id of the room they may accidentally fall into> GOTOROOM } passport DEF
}

Then at the gate and in the room they will "fall" into if they make a bad choice you have this script.

ON ENTER {
passport GLOBAL
passport EXEC }

Now if they find whatever it is you wanted them to, you need to reDEF (redefine) this GLOBAL so it wont boot them back to this room. There are different ways to do this. If they have a prop theyve picked up you can do an ON SELECT like this

ON SELECT {
passport GLOBAL
{ { <room id of the room they may now pass to> GOTOROOM } passport DEF } 123098743 HASPROP IF }

You are only limited by your imagination on how to reDEF that GLOBAL.

*See the Explanations on DEF and EXEC to learn more about this script.
 
Was this article helpful? yes / no
Article details
Article ID: 228
Category: Room Scripts
Date added: 07-11-2011 20:44:58
Views: 412
Rating (Votes): Article not rated yet (0)

 
<< Go back

Powered by Help Desk Software HESK™