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
Iceman68
Newbie


Joined: 03 Feb 2011
Posts: 4

PostPosted: Sat Nov 10, 2012 6:17 pm   

Help with mapping in CMUD
 
I am currently playing a mud that has a shared guild (called room 1 for example) but different hometowns (rooms 2 and 3).

As a result if Character 1 goes north from room 1 he reaches room 2, but if character 2 goes north from room 1 he reaches room 3.

Now comes the issue, when I am trying to map this using CMud (Pro version 3.34) I can't figure out how to detect that the character going north room 1 ends up in the correct room 2 on the map and no in room 3 (Apart from two separate maps).

Any suggestions?
Reply with quote
shalimar
GURU


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

PostPosted: Sat Nov 10, 2012 8:12 pm   
 
i had a similar issue on my game... what i ended up doing is using the northeast and northwest exits as well, all would use the north command with the 'name' field, but where labeled according to where you wanted to be on the mapper, zonewise.. helps if the central room is in a zone of its own
_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 10, 2012 8:39 pm   
 
Is it only the north direction, or can it be any direction (or that multiple directions exhibit this feature)? Similarly, is it just this room or can multiple rooms have this exit feature? Also, can you take groups through this exit?

The above questions will help with the specific design, but ultimately all you're going to be doing is using an alias like this:

#alias exitguild {
#switch (@Name)
("character 1") {#location 2}
("character 2") {#location 3}
}

Just put the alias name in the Name field of the north exit for room1 and put the alias definition in a room script for room1. If you don't already have a name variable, you'll have to create one. You will also need to change "character N" to the appropriate name and the numbers for the #location commands to the appropriate room numbers in your map.
_________________
EDIT: I didn't like my old signature
Reply with quote
Iceman68
Newbie


Joined: 03 Feb 2011
Posts: 4

PostPosted: Sat Nov 10, 2012 9:29 pm   
 
MattLofton wrote:
Is it only the north direction, or can it be any direction (or that multiple directions exhibit this feature)? Similarly, is it just this room or can multiple rooms have this exit feature? Also, can you take groups through this exit?

The above questions will help with the specific design


It is only the north direction that have this feature and just within room 1. Whilst groups can go north from room 1 they can get spilt up as the destination is fixed by hometown, so one character in a group could end up in room 2, and another in room 3 (fortunately multi-playing is not allowed on the mud I play).

MattLofton wrote:
but ultimately all you're going to be doing is using an alias like this:

#alias exitguild {
#switch (@Name)
("character 1") {#location 2}
("character 2") {#location 3}
}

Just put the alias name in the Name field of the north exit for room1 and put the alias definition in a room script for room1. If you don't already have a name variable, you'll have to create one. You will also need to change "character N" to the appropriate name and the numbers for the #location commands to the appropriate room numbers in your map.


Tried the above script as a starting point. It is great for moving the marker forward, however the mud does not recognise exitguild as a direction, so my character stays stuck in room 1.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sun Nov 11, 2012 3:06 am   
 
You need to set that as the name of the exit, in the room properties window. Then instead of sending north, it'll send exitguild.
Reply with quote
Iceman68
Newbie


Joined: 03 Feb 2011
Posts: 4

PostPosted: Sun Nov 11, 2012 11:31 am   
 
Daern wrote:
You need to set that as the name of the exit, in the room properties window. Then instead of sending north, it'll send exitguild.


I might not have explained this properly but the alias does send exitguild to the mud, however, the MUD does not recognise exitguild as a direction and is wanting the direction north. A way around this that I haven't tried is to have the direction name as "n;exitguild" so that the mud moves me north and then the map executes the exitguild script?
Reply with quote
shalimar
GURU


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

PostPosted: Sun Nov 11, 2012 2:49 pm   
 
The alias still needs to issue a north command
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


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

PostPosted: Sun Nov 11, 2012 2:49 pm   
 
or you could use the name proporty for two comands, separated by the ; semi colon
_________________
Discord: Shalimarwildcat
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sun Nov 11, 2012 5:34 pm   
 
Yeah, n;exitguild as the name would work, personally I'd be more inclined to just make the alias send north too though. You could even make it more generic by setting the name to 'exitguild north' and then send %1 in the alias (which would expand to north). Then you'd be able to use it in other rooms with other directions if necessary.
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