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
nilats
Beginner


Joined: 21 Sep 2009
Posts: 17

PostPosted: Fri Aug 07, 2020 12:53 am   

capturing and coloring information based on a specific mud command w/ variables
 
My mud has ships/ship fights. each time a ship undocks it is assigned a new random two letter identifier that is unique to that ship.
we use a Look Contacts command to give a data represenation of where that ship is, headed, bearing, speed and in what relation my ship is to the other ship

much like this: [AB] Brut X:49 Y:50 R:1.6 B:251 H:0 S:66 |FS
[CD] Funeral Dirge X:49 Y:75 R:1.6 B:251 H:0 S:30 |FS


We use a LOCK command: lock AB OR lock CD etc to initiate combat.

I have a separate window that updates every 2 secs the information to I receive from look contacts command

I was trying to fathom a way to setup an alias/trigger/class that will allow me to color highlight whatever ship I've sent the command LOCK xx when it sends that info to my second window
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4252
Location: Pensacola, FL, USA

PostPosted: Fri Aug 07, 2020 3:42 pm   
 
Alias or trigger could both work.

The important part is that a variable gets defined.

myShip=AB

#TR {%q{@myship}%q} {#CW cadetblue}
_________________
Discord: Shalimar#3679
Reply with quote
nilats
Beginner


Joined: 21 Sep 2009
Posts: 17

PostPosted: Mon Aug 10, 2020 5:09 pm   
 
shalimar wrote:
Alias or trigger could both work.

The important part is that a variable gets defined.

myShip=AB

#TR {%q{@myship}%q} {#CW cadetblue}


Oh Perfect thanks!
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