Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
cicada
Newbie


Joined: 25 Apr 2003
Posts: 3
Location: United Kingdom

PostPosted: Sun Apr 27, 2003 3:15 pm   

Running from a menu
 
I'm looking to make a menu/speedwalk system, that when I click on an item from a dropdown menu, it runs to that location, providing I'm in the room called 'Temple Antechamber'. Any ideas?
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Sun Apr 27, 2003 8:57 pm   
 
You can speedrun to any room you prefer by setting the room up as a favorite in the mapper. Not quite a pure menu, but it works.

Also, I think Paths could work in this case. Once again, not really a menu, but it does simplfy things.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Apr 27, 2003 10:06 pm   
 
Here's an idea. Just do what you suggested.

Make a dropdown menu. For each item in the menu, use the destination as the Name, and the commands needed to get there from 'Temple Antechamber' as the Script.

LightBulb
Advanced Member
Reply with quote
cicada
Newbie


Joined: 25 Apr 2003
Posts: 3
Location: United Kingdom

PostPosted: Sun Apr 27, 2003 11:34 pm   
 
I think you missed the question, is there anyway of capturing the room name and making sure that the start room is 'Temple Antechamber'?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Apr 28, 2003 2:56 am   
 
I didn't miss the question, you forgot to ask it. If you'll read your own post, you'll see that the only question you asked was, "Any ideas?". Nor could I infer from the rest of your post what, exactly, you wanted ideas about.

Your new question is much clearer. Four ideas come to mind. Actually scripting them would depend on specifics of your MUD.

1. If the room name shows up when you enter a room, write a trigger to catch it and store it in a variable. As part of the script for each menu item, check the variable to make sure you're in the correct room.
#IF (@room = "Temple Antechamber") {speedwalk to destination} {#MESS You're in the wrong room}

2. If you have a working map, you could do the same thing using the map's roomname.
#IF (%roomname() = "Temple Antechamber") {speedwalk to destination} {#MESS You're in the wrong room}

3. If the room name shows up when you "look" at the room, you could have the items store the appropriate destination to a variable and then perform a "look", with a trigger to go to the destination in the variable if the room is "Temple Antechamber".

4. You could just make sure you're in the right room before using the menu. No special script needed.

These are by no means the only possibilities, merely the ones that occured to me.

LightBulb
Advanced Member
Reply with quote
cicada
Newbie


Joined: 25 Apr 2003
Posts: 3
Location: United Kingdom

PostPosted: Tue Apr 29, 2003 10:58 pm   
 
Thanks for the help, works fine. Also, I didn't mean to come across as an ass before. Sorry bout that :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net