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
Virus
Wanderer


Joined: 29 Jun 2002
Posts: 69
Location: USA

PostPosted: Sun Jun 30, 2002 5:43 am   

Alias COmmands to another window
 
Ok, heres the situation. I have 1 Mux. On this mux I have certain things being #CAP'd to certain windows using triggers. Well. What if I wanted to say look at an inventory sheet but instead of getting the imput and Mux Output to show on the main window I want it to show in say window Inv. How do I do this? The aliased command would be inv. I may be able to use triggers to do it, but the reason I dont want to is maybe i need that Output on the main screen. Anyone get me?

Anyhow, heres what I did:
#Alias Inv {#SEND Inventory;#CAP {33} {Inv};#GAG 33;} Inventory

All that I get in the inventory is the last 33 lines that show up, and since I needed the inventory on the main mux gaged I got 33 line before the command on the inv window:(

I can explain more detail if needed

Richard Powell
Mux Alias: Virus
2796 Wizard Staff
64.89.10.1 port 2796
Reply with quote
Virus
Wanderer


Joined: 29 Jun 2002
Posts: 69
Location: USA

PostPosted: Sun Jun 30, 2002 6:22 am   
 
KK,
I just made a trigger and am dealing with it that way. Now the next thing I must know. Its what I needed last time but this I am able to explain way better.

When I type Navigate I get a screen similar to the following:
0 __
___________ __/ __
/ Location: 27, 17, 0 __/ __/ __
300 / 60 Terrain: Grassland / __/ __/ / __/ __/ __/
/ / __/rm__/ 270 ( * ) 90 Speed: 0.0 __/ __/ __/
/ Vertical Speed: 0.0 / __/ __/ / Heading: 240 __/ __/ __/
240 / 120 __/ __/
___________/ __/

180

Now since thats kinda big, I want to #GAG it from the main mux window and send the whole thing to a new window labled NAV. Is there a way to do it?


Richard Powell
Mux Alias: Virus
2796 Wizard Staff
64.89.10.1 port 2796
Rich@gigdev.com
Reply with quote
wilh
Wanderer


Joined: 08 Feb 2001
Posts: 89
Location: USA

PostPosted: Sun Jun 30, 2002 9:30 am   
 
If I'm understanding what you are looking for, you occasionally want your inv to be captured to one window, but may sometimes want it displayed on the main window.

The way to do that would be to put your CAP triggers in a class that is turned on by your alias and off when the inventory is terminated. For example, you could have something like this (untested code coming up..)

#CLASS Inventory
#TRIGGER {^(*)$} {#CAP Inventory}
#TRIGGER {$} {#T- Inventory}
#CLASS 0
#ALIAS showInventory {#T+ Inventory;#ALARM +15 {#T- Inventory};inv}

I hope that provides some insight into your problem. Let us know if that's not what you had in mind.

Wil

Wil Hunt
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jun 30, 2002 4:45 pm   
 
You can easily turn capturing and gagging on with an alias for your navigate command. The hard part is detecting when to stop capturing/gagging. It appears you could use the 180 line for that. You'll probably need to include some of the underscores so the trigger doesn't fire on a heading of 180.

#AL navigate {#C+ Navigation;#GAGON;~navigate}
#TR {180} {#C-;#GAGOFF}

LightBulb
Senior Member
Oops, forgot to include the "navigate" command for the MUD. It's fixed 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