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


Joined: 01 Jun 2004
Posts: 8
Location: USA

PostPosted: Sun Sep 05, 2004 1:27 am   

Room name in the status bar.
 
I'm looking to make a trigger that puts the room name, look like this:

Whatever the room name is. [Room: 3000]
The room description underneath, probably multiple lines.

[Exits: north south]

[Room: 3000] is the vnum or the room. I would also like the vnum and exits to be put in the status bar, too.

I have tinkered with this for hours on end, with no luck. I'm not very good with triggers, so if anyone could help me with this, it would be greatly appreciated.
_________________
"I like the kind of girl that can kick my ass."

-Spike
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Sep 05, 2004 1:31 am   
 
#TR {(*) ~[Room: (%d)~]} {RoomName="%1";RoomVnum=%2}
#TR {~[Exits: (*)~]} {RoomExits="%1"}
#ST "room" {@RoomName @RoomVnum @RoomExits}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Rambo
Newbie


Joined: 01 Jun 2004
Posts: 8
Location: USA

PostPosted: Sun Sep 05, 2004 7:10 am   
 
It works.. in kind. I enabled show triggers to see what was happening, and it is reading what it needs to, just not putting it in the status bar.

This is what the trigger captures:
[(*) ~[Room: (%d)~]-> RoomName = "Inside a large cave."
RoomVnum = "5001"]

And:
[[Exits: (.*)]-> RoomExits="north south"]

But again, the only thing that shows in the status bar is one word.. 'room'. Thanks again for the help.
_________________
"I like the kind of girl that can kick my ass."

-Spike
Reply with quote
Falan
Wanderer


Joined: 17 Aug 2004
Posts: 98
Location: OK, USA

PostPosted: Sun Sep 05, 2004 7:51 am   
 
From the Help Library:

Quote:
STATUS
Syntax: #ST [literal] [class] [id]


Quote:
#ST {Room:%roomname() <color teal>Exits:</color>%expandlist(%roomexit(),", ")}

Display current room information from the automapper on the status line.


If you aren't using the mapper, then try:

#ST {@{RoomName}. [Room: @{RoomVnum}] [Exits: @{RoomExits}]}

Can't remember off-hand if any ~ are needed in #ST. Feel free to experiment in the Editor Window.
_________________
zMUD 7.05a
Reply with quote
Rambo
Newbie


Joined: 01 Jun 2004
Posts: 8
Location: USA

PostPosted: Sun Sep 05, 2004 8:13 am   
 
Thank you, that worked great.
_________________
"I like the kind of girl that can kick my ass."

-Spike
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Sep 07, 2004 11:57 am   
 
*whap self*
Sorry I messed up on the #ST and put the ID in the wrong spot :p
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Rambo
Newbie


Joined: 01 Jun 2004
Posts: 8
Location: USA

PostPosted: Wed Sep 08, 2004 5:20 am   
 
Well the trigger works great, but I would like to add some to it. I'm a builder for a mud, and I want to make it so when I type redit, oedit, medit, and mpedit, it puts some information in the status bar as well. Like so..

Vnum = any number from 0 to 999999 in the examples below.

I type 'oedit vnum' it puts
Mode: Oedit - vnum

I type 'medit vnum' it puts
Mode: MEdit - vnum

I type 'mpedit vnum' it puts
Mode: MPEdit - vnum

I type 'redit' it puts
Mode: REdit

And when I type 'done' to exit any editor I'm working in:
It either puts nothing, or Mode: none

I also have to be able to use these commands to enter the editors.

Anyways, I just recently, a month or two ago, I think, switched from a way less complex mud client to zmud so I don't know the trigger system that well yet. Thanks in advance for any help ppls!
_________________
"I like the kind of girl that can kick my ass."

-Spike
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Sep 08, 2004 5:06 pm   
 
Add another variable, @Mode, to your status line definition. Then, make an alias for each command.
Code:
#AL oedit {#VAR Mode {Oedit - %-1};~oedit %-1}
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
Reply with quote
Rambo
Newbie


Joined: 01 Jun 2004
Posts: 8
Location: USA

PostPosted: Wed Sep 08, 2004 11:28 pm   
 
Thanks again, works great.
_________________
"I like the kind of girl that can kick my ass."

-Spike
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