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
mo24
Wanderer


Joined: 31 Jan 2006
Posts: 55

PostPosted: Wed May 10, 2006 9:19 pm   

Feature that would be useful in next zmud version...
 
A function or command that does the same thing as 'Disable all portals' in the portals menu of the mapper would be very useful.

It would be very convenient to have a way to easily disable all portals and then re-enable them back to their previous state on demand through script.

It can be done now with a very lengthy script, but it is very inefficient. You must know all of the portal names, and you must disable each of them, storing their prior values, and then re-enable each of them with those values. A very lengthy script. I don't think there is any better way to do this currently.
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Thu May 11, 2006 11:17 pm   
 
id love this as well
Reply with quote
NowhereMan
Beginner


Joined: 09 Dec 2004
Posts: 10

PostPosted: Fri May 12, 2006 6:54 pm   
 
i agree.
however, looping to disable/enable your portals shouldn't be that difficult
i keep all of my portals in a database (po) with portal name (&Key) and level (&Level). i define enabled and disabled views in that db using formula filters of %portalenable(&Key)==1 and %portalenable(&Key)==0, respectively.

my enable portals alias:
#LOOPVIEW disabled|po {
#NOOP %portalenable(&Key,%if(&Level<=@score.Level,1,0))
}
disable alias:
#LOOPVIEW enabled|po {
#NOOP %portalenable(&Key,0)
}

of course, keeping the db in sync can be a pain.
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