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


Joined: 05 Nov 2020
Posts: 8

PostPosted: Thu Nov 05, 2020 1:09 am   

manually tagging exits
 
so the mapper for some reason is having issues detecting the full exit line. when i move around the mapper will see some of the exits and create null links for them but not others, i also have to manually map in and out exits(this is ok)
You see exits leading north (open door), east, southeast, south, west (closed door), up, in, and out.
just and example
how would i make a trigger script that would mark all exits for that room
possible exits are
north south east west northeast northwest southeast southwest up down in and out. exits with doors will say north (open door) or north (closed door), open door command isn't required
any ideas?
Reply with quote
shalimar
GURU


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

PostPosted: Thu Nov 05, 2020 5:05 am   
 
#TR {You see exits} {#TAG exit}
Then reconfigure the mapper.
_________________
Discord: Shalimar#3679
Reply with quote
fisban_Regner
Newbie


Joined: 05 Nov 2020
Posts: 8

PostPosted: Thu Nov 05, 2020 5:08 pm   
 
That's actually the way it's setup now but the mapper doesn't detect the exits for link creation but it does creat rooms as I walk untill I have to swim direction then it gets confused. Or if I use in and out directions
Reply with quote
shalimar
GURU


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

PostPosted: Fri Nov 06, 2020 2:46 am   
 
The in and out exits are not cardinal, and would not get mapped normally anyway.
You could try parsing the exits yourself to strip it down to the bare minimum:

#TR {You see exits leading (*).} {
exits=%1
//First we strip out the door strings and the word and:
exits=%replace(@exits, " (open door)")
exits=%replace(@exits, " (closed door)")
exits=%replace(@exits, " and",)
//Then we convert it to a string list
exits=%replace(@exits, ", ", "|")
//So we can remove the exits it doesn't understand
#DELITEM exits in
#DELITEM exits out
//We may need to turn it back to a string, if so insert an enter here: exits=%replace(@exits, "|", ", ")
//Before finally tagging it:
#TAG exit {@exits}
}
_________________
Discord: Shalimar#3679
Reply with quote
fisban_Regner
Newbie


Joined: 05 Nov 2020
Posts: 8

PostPosted: Tue Nov 10, 2020 12:58 am   
 
ill give that a try thank you. but wasnt there a way to tell zmud that in and out were proper directions i seem to remember you could create non normal direction links using a script for each direction, and it would tell the mapper hey I moved this direction. i know i used to do swim w and the mapper would see that i moved west but the command was swim west.
Reply with quote
shalimar
GURU


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

PostPosted: Tue Nov 10, 2020 1:30 am   
 
You can assign a different command to use a given exit, in the room properties window.
But that has to be done manual regardless.
_________________
Discord: Shalimar#3679
Reply with quote
fisban_Regner
Newbie


Joined: 05 Nov 2020
Posts: 8

PostPosted: Sat Nov 28, 2020 5:00 pm   
 
i have actually solved half of the issue here. the map will never create the null links for unnatural exit but the mapper will map them is you create custom directions in the settings. by creating a dir for in and out.
#dir [single digit dir name][single digit revers of dir] {command used} [type of link]
#DIR io {in} other
#DIR oi {out} other
#DIR */ {swim out} other
#DIR /* {swim in} other
when you use the custom direction it tells the mapper hey i moved this way make a new room. this can also be done with swim exits and door exits(if not standard)
#DIR 64 {swim e} w
#DIR 46 {swim w} w
#DIR 28 {swim s} s
#DIR 73 {swim nw} nw
#DIR 82 {swim n} n
#DIR 91 {swim ne} ne
#DIR 19 {swim sw} sw
#DIR 37 {swim se} se
#DIR -+ {swim up} u
#DIR +- {swim down} d
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