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

Substitution Script

 
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: Sat Apr 19, 2008 11:27 am    Post subject: Substitution Script Reply with quote

I'm trying to create a script to gag all messages from a player (all of his alts). I've been trying to just create a variable that has all of the character names then create some form of substitution/action to look for those char names on all channels. Here's some failed ones - what am I doing wrong?:

#variable {test} {koira}
#act {%1 gossips: %2} {#if {"%1" == "$test"} {#gag {%1}}}
#SUBSTITUTE {$test gossips: %1} {.}
#action {%0 gossips: %1} {#if {"%0" == "$test"} {#SUBSTITUTE {%0 gossips:} {.}}}
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Sun Apr 20, 2008 8:18 am    Post subject: Reply with quote

Keep in mind triggers are case sensitive. You would want to use the following:
Code:

#var gaglist [Koira|Bubba|CookieMonster]

#gag {$gaglist gossips: %1}
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