|
Xerakon Apprentice
Joined: 10 May 2011 Posts: 111
|
Posted: Wed Jan 14, 2015 8:48 am
Trigger - Output in Same Line |
Good evening,
Here's what I have:
Code: |
CommNet 0 [A Twi'lek male]( quietly ): Where can I find one of those?
CommNet 10 [A Twi'lek female]: Studying a blueprint is a sure bet
|
What I'd like to end up with is:
Code: |
CommNet 0 {Public}[A Twi'lek male]( quietly ): Where can I find one of those?
CommNet 10 {Incom}[A Twi'lek female]: Studying a blueprint is a sure bet
|
Basically ends up placing an identifier tag behind the comm channel. I would use a database record variable to keep the ones that I want to identify. Any idea on how to do this?
Thanks! |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Wed Jan 14, 2015 10:18 am |
thats easy... you want #SUB
#TR {(CommNet (%d))} {
#LOCAL $channel
#SWITCH (%2) (0) {$channel={Public}} (10) {$channel={Incom}}
#SUB {%1 $channel}
} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Xerakon Apprentice
Joined: 10 May 2011 Posts: 111
|
Posted: Thu Jan 15, 2015 6:58 am |
Because the channel's owners/organizations change often, I created a database record variable with the channel number as the key and the value as the organization. Thanks for pointing me in the right direction!
Code: |
#SUB {CommNet %1 {@CommID.%1} }
|
|
|
|
|
|
|