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
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Thu May 31, 2012 11:49 pm   

Location-specific portals
 
I think this has been suggested before, but I couldn't find anything. It would be great if portals could be set to only be enabled for a specific location (or multiple locations), and other locations would not use them when speedwalking.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Jun 01, 2012 2:03 am   
 
I assume you mean room, since they can already be limited by zone.
_________________
EDIT: I didn't like my old signature
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Fri Jun 01, 2012 2:41 am   
 
you can always make it a normal exit in the room in question and add the command to the name field in room properties
_________________
Discord: Shalimarwildcat
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Fri Jun 01, 2012 3:37 am   
 
MattLofton wrote:
I assume you mean room, since they can already be limited by zone.


No, I mean locations. They're used to track more than one character on the map at once.

shalimar wrote:
you can always make it a normal exit in the room in question and add the command to the name field in room properties


I'm talking about portals, not exits with custom commands. Portals are not tied to a single room, they work from anywhere.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Fri Jun 01, 2012 6:15 am   
 
I understand that. But if you want X number of specific rooms only to be able to use it, it seems like it would be easier todo via exits that trying to rewrite portals.
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Fri Jun 01, 2012 6:19 am   
 
Oh i see, you have a supersession and want tolimit the portal to just one character. Hmm let me think.
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Fri Jun 01, 2012 6:23 am   
 
you might be able to do it with a character specific #EVENT but you would need to use the %pathfrom function to determine weather or not to use that characters teleporting ability instead of #PORTAL
or maybe have it toggle %portalenabled as needed?
We need a new #EVENT handle... onPathFind or onTrack (since #TRACK changes which #LOC is used, i assume that switching active sessions would #RAISE this)
_________________
Discord: Shalimarwildcat
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Fri Jun 01, 2012 4:46 pm   
 
shalimar wrote:
or maybe have it toggle %portalenabled as needed?

That's the only way I've been able to come up with. I keep track of which portals each of my characters have in a variable, then loop through it and enable/disable portals as required in an onConnect event. This is made easier because my MUD doesn't allow having multiple characters logged in at once, but for people who play MUDs that do allow that, they would need to run that enable/disable loop every time they wanted to speedwalk with any character. It really feels like something that should be built in, though.
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