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
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Thu May 06, 2004 8:30 am   

substitutions
 
Ok I am trying to substitute room names with names that will make more sense to me. I've tried with #SUB, #SUBSTITUTE, and #PSUB

all of these end up placing things where they become hard to read.
#SUB & #SUBSTITUTE

Second Gate of MT (sw, gate and ne)A large gate(sw, gate and ne)
A well-muscled Dunnish man of western Gondor
A tall guard of Minas Tirith [2]
A handmade arrow

#PSUB
Second Gate of MT (sw, gate and ne) A well-muscled Dunnish man of western Gondor
A tall guard of Minas Tirith [2]
A handmade arrow

I don't know how, but I'd like to get it where it says this after the substitution,
Second Gate of MT (sw, gate and ne)
A well-muscled Dunnish man of western Gondor
A tall guard of Minas Tirith [2]
A handmade arrow

This is what it will look like before
A large gate(sw, gate and ne)
A well-muscled Dunnish man of western Gondor
A tall guard of Minas Tirith [2]
A handmade arrow

Thanks for all the help
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu May 06, 2004 2:23 pm   
 
I believe a simple #SUB should do the trick like this

#SUB {Original Room Name} {New Room Name}

However if that doesn't work you can try something like this *Untested*

#TR {(Original Room Name)} {#PSUB {New Room Name} %x1}
Reply with quote
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Fri May 07, 2004 6:38 am   
 
Ok I tried both of them, and still came up with the same problems as before. *shrug*
Reply with quote
Guede
Wanderer


Joined: 30 Nov 2003
Posts: 65
Location: United Kingdom

PostPosted: Fri May 07, 2004 8:37 pm   
 
Hi,

Try:

#TRIGGER {A large gate~(} {#SUB {2nd Gate of MT~(}}

Works fine here...One or two things to note though. If you use the mapper, update the room name so the mapper still follows. Em, and this will SUB for ALL rooms called "A large gate" I guess if you do more in the trigger you can narrow it down if exits are unique. Remember and use the quote character for the (.

HTH,

-G-
Reply with quote
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Sat May 08, 2004 8:07 am   
 
Cool, thanks for the help. It works now.
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