|
jysmystry Beginner
Joined: 28 Nov 2012 Posts: 16
|
Posted: Wed Apr 17, 2013 12:54 pm
Multiline Triggers for Room #Tags when Immortal |
After several months I feel I am nearly there - yey
However there is something wrong and I cant work it out, I know its something easy and stupid but can someone advise me on this?
Here is what a room looks like for me..
Quote: |
Aura:999/999 Health:999/999 Level:6790 Kills: 0/0
<<zonename><<roomNo>> (i.e. Zerg25 - but only shows if immortal)
-= Name of the room =-
desc desc desc desc desc descdesc desc descdesc desc desc
desc desc descdesc desc descdesc desc descdesc desc descdesc desc desc
desc desc descdesc desc descdesc desc descdesc desc descdesc desc desc
desc desc descdesc desc descdesc desc descdesc desc descdesc desc desc
Obvious exits are:
North : roomname
East : roomname
South : roomname
West : roomname
|
Now I dont think this is quite right yet but it seems to work mostly ok so here is my code to capture all of this...
Code: |
<trigger priority="810" newline="false" id="81">
<pattern>-= (*) =-</pattern>
<value>#trigger -= (*) =- {#tag name}
#condition {^%s(*)} {#tag desc}
#condition {^%sObvious exits are:%s(*)} {#tag exit}
#condition {^%s(Aura:%d/%d Health:%d/%d Level:%d Kills: %d/%d)} {#tag prompt} {prompt|nocr}</value>
</trigger>
|
This seems to be working mostly ok and captures the desc and exits. I have two queries though.
1. In my mud i can be mortal (and do quests, kill stuff etc) or immortal (where I cannot). As immortal i can see zonename and number (such as zerg45) but i cannot as mortal. What I want to be able to do is map as immortal and capture the room names like this ..
Code: |
-= roomname =- (zerg45) |
but be able to use it for being able to find my location and folow the map as a mortal if that makes sense.
2. With this code when i first create the room in the first line of the description there is a single space, if i then relook the room that space sissapears. How can i stop that space appearing when the room is created?
Hope this makes sense |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Apr 17, 2013 4:19 pm |
So you want to use information gathered as an immortal to play your mortal character? It's almost unheard of for a game to allow that sort of thing, and we're not going to help you break the rules.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri Apr 26, 2013 5:25 pm |
Well he only seems to be wanting to map the place. That's not so bad. Although, if you're the immortal why not just add GMCP to your mud to transmit room info and you won't have to worry about any of this. CMUD will automagically handle it all.
|
|
|
|
|
|