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: 4662
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: Shalimarwildcat
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
yuvsaha123
Newbie


Joined: 16 Sep 2021
Posts: 1

PostPosted: Thu Sep 16, 2021 10:04 am   
 
nilats wrote:
shalimar wrote:
Alias or trigger could both work.

The important part is that a variable gets defined.

myShip=AB
https://breakfasthoursofficial.com/dunkin-donuts-breakfast-hours
https://breakfasthoursofficial.com/mcdonalds-breakfast-hours
https://breakfasthoursofficial.com/taco-bell-lunch

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


Oh Perfect thanks!


thanks for the awesome information.


Last edited by yuvsaha123 on Tue Feb 01, 2022 10:05 am; edited 1 time in total
Reply with quote
nagzpl12
Newbie


Joined: 11 Oct 2021
Posts: 1

PostPosted: Mon Oct 11, 2021 6:37 pm   
 
IT IS A TRICKY PART
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