|
Chris_3413 Novice
Joined: 22 Mar 2004 Posts: 46 Location: Australia
|
Posted: Thu Mar 17, 2005 4:19 am
Mapper and Ignoring parts of a room name |
This is mainly for Achaea, but also applicable to Imperian/Lusternia/Aetolia:
When flying, each room name has the words 'Flying Above' appended to the start of the room name and while in the trees the prefix is 'In the trees above'
What I want to do is somehow strip the prefixes so that while in map creation mode if i'm flying at the time I dont get rooms being named 'Flying Above A small stream' etc as ive found that later while moving along the ground in follow mode, the mapper stops following when I pass through one of these rooms. |
|
_________________ What do you mean, Fatal Error! |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Thu Mar 17, 2005 1:09 pm |
Try this:
#ALIAS onroomcreate {#call %roomname(%roomvnum,%subregex(%roomname(%roomvnum), "((?:Flying Above)|(?:In the trees above) )", ""))} |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
|
|