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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Tue Mar 31, 2009 4:10 am   

Using a variable as a room exit
 
I use variables for some room exits so certain speedwalks are updated depending on what exit I want to take. For example you can choose difficulties to get into an area, the area is identical for all difficulties just harder mobs so there is no point to make 10 different maps for 10 difficulties. So the exit type is 'other' with @difficulty as the exit, i go to the area with an alias that sets the difficulty I want and ect. However, the speedwalk doesn't follow because if difficulty is 'hard' it sends hard rather than @difficulty, making the mapper believe it isn't following. Anyway around this, is it a bug, ect.?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Mar 31, 2009 4:09 pm   
 
No, I don't think it's a bug. Exits are not intended to be variables. I do have a solution for you, though. Make 10 exits, named 'hard', 'easy', etc., all going to the same room.
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Wed Apr 01, 2009 4:24 am   
 
my workaround if anyone else has the same problem: in roomscript put #if (%nextdir = "@varname") {#tele vnum you go to}. I'd rather do this than clutter the map with 10 other exits.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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