Basically, the problem I'm having is that when it comes to directions on my mud my mind flips east and west because of the way that the "Obvious exits:" exit/direction listing looks. I want to switch around the way it looks.
Example text sent by mud:
So, the mud sends this line:
Sometimes there are other exits like the rift listed above, or doorways and so forth. It'd be nice to just grab those while parsing the direction listing and tack them onto the new listing.
I know I'll need a trigger to do this, and I'll match on "Obvious exits:" Not entirely sure what kind of trigger, or if I'll be sending this to script or what, though.
I want to change the direction listing to look like the following:
The main problems I'm having is that the exit listing isn't constant. Some rooms only have certain exits from them, like the following.
The second problem lies in figuring out how to parse for extra exits like "rift" and "door" and tack them onto the final "Obvious exits:" listing.
Example text sent by mud:
A circle of stones
What was once a twisted, dark wood is now a crystal
sss landscape. All of the trees have lost their foliage, and have
-*s been layered in a thick, glistening cover of ice. The ground has
vss been covered in heavy snow, which refuses to show any signs of
melting, despite the scorching temperatures. Mixed in the snowy
landscape is the occassional frozen animal, frozen with a look of
terror to it. It's clear, cool, and there is absolutely no wind.
Obvious exits: n e s w nw ne sw se rift
A magical rift is glowing violently in the mid-air.
A set of rune-inscribed stones frame the center of the clearing here.So, the mud sends this line:
Obvious exits: n e s w nw ne sw se riftSometimes there are other exits like the rift listed above, or doorways and so forth. It'd be nice to just grab those while parsing the direction listing and tack them onto the new listing.
I know I'll need a trigger to do this, and I'll match on "Obvious exits:" Not entirely sure what kind of trigger, or if I'll be sending this to script or what, though.
I want to change the direction listing to look like the following:
Obvious exits: sw nw w n s e ne seThe main problems I'm having is that the exit listing isn't constant. Some rooms only have certain exits from them, like the following.
Foyer
This small, spartanly furnished room serves as a guard post for the guard
house. A legionnaire is posted here to make sure only authorized people
enter the barracks. The only other feature is a large banner on the north
wall.
Obvious exits: n(closed) w rift
A pair of shin guards lies here unused.
You see a pair of shoulder guards lying in the dirt.
A metallic helm with a leather strap lies here.
A collared shirt of chain mail lies here in a pile.
A long barbed spear lies here shining on the ground.
The corpse of a centaur is lying here.
A magical rift is glowing violently in the mid-air.
(Ethereal) The ghost of a stern male human is flying here.
(Ethereal) The ghost of a rugged male centaur is flying here.
A legionnaire corporal is here on duty.The second problem lies in figuring out how to parse for extra exits like "rift" and "door" and tack them onto the final "Obvious exits:" listing.