Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Xerakon
Apprentice


Joined: 10 May 2011
Posts: 111

PostPosted: 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!
Reply with quote
shalimar
GURU


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

PostPosted: 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
Reply with quote
Xerakon
Apprentice


Joined: 10 May 2011
Posts: 111

PostPosted: 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} }
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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