|
Virus Wanderer
Joined: 29 Jun 2002 Posts: 69 Location: USA
|
Posted: 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 |
|
|
|
Virus Wanderer
Joined: 29 Jun 2002 Posts: 69 Location: USA
|
Posted: 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 |
|
|
|
wilh Wanderer
Joined: 08 Feb 2001 Posts: 89 Location: USA
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
|
|
|