|
nilats Beginner
Joined: 21 Sep 2009 Posts: 17
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
nilats Beginner
Joined: 21 Sep 2009 Posts: 17
|
Posted: 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! |
|
|
|
yuvsaha123 Newbie
Joined: 16 Sep 2021 Posts: 1
|
Posted: Thu Sep 16, 2021 10:04 am |
nilats wrote: |
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 |
|
|
|
nagzpl12 Newbie
Joined: 11 Oct 2021 Posts: 1
|
Posted: Mon Oct 11, 2021 6:37 pm |
IT IS A TRICKY PART
|
|
|
|
|
|