TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

[SOLVED] recently upgraded and gag script no longer works

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
raela



Joined: 19 Apr 2008
Posts: 4

PostPosted: Sun Mar 06, 2011 12:23 pm    Post subject: [SOLVED] recently upgraded and gag script no longer works Reply with quote

Hi all,

This is a really simple "script," but I haven't upgraded in a long time, so who knows how many things have changed.. Since the person in question has many characters, I put all of them into a variable then have gags for that variable.. as in:

#var gaglist [CharA|CharB|CharC]
#GAG {$gaglist gossips:}

I've been trying to search the manual and change around the syntax, but I can't figure out what's going on.. Does anyone have any ideas?

edit: That fixed it - thank you very much!!


Last edited by raela on Thu Mar 10, 2011 7:53 am; edited 1 time in total
Back to top
View user's profile Send private message
Chicomecoatl



Joined: 08 Sep 2009
Posts: 73
Location: Kansas

PostPosted: Sun Mar 06, 2011 9:04 pm    Post subject: Reply with quote

Code:

#act {^{CharA|CharB|CharC} gossips: %2$}
{
    #line gag;
}


or

Code:

#var {gaglist} {CharA|CharB|CharC};
#act {^{$gaglist} gossips: %2$}
{
    #line gag;
}

_________________
Chico
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
raela



Joined: 19 Apr 2008
Posts: 4

PostPosted: Tue Mar 08, 2011 8:23 am    Post subject: Reply with quote

Thank you! However, the first one works, but not the second form. There are 14 channels I have filtered, thus wanting to use the variable - easier to add a new nick once than to add 14 times. It isn't too big of a deal to just add a new nick to all 14, but I would like to understand how to properly use variables in such a command.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Tue Mar 08, 2011 10:59 am    Post subject: Reply with quote

Make sure you create the variable before creating the actions, and double check the variable is set correctly as there's a minor bug where adding a space behind a variable definition will clear the variable, for example '#var {bla} {bli} ' opposed to '#var {bla} {bli}'.

Performance wise it's also faster to use:

Code:

#var {gaglist} {CharA|CharB|CharC}

#gag {^{$gaglist} gossips: %2$}
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group