| View previous topic :: View next topic |
| Author |
Message |
raela
Joined: 19 Apr 2008 Posts: 4
|
Posted: Sun Mar 06, 2011 12:23 pm Post subject: [SOLVED] recently upgraded and gag script no longer works |
|
|
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 |
|
 |
Chicomecoatl
Joined: 08 Sep 2009 Posts: 73 Location: Kansas
|
Posted: Sun Mar 06, 2011 9:04 pm Post subject: |
|
|
| 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 |
|
 |
raela
Joined: 19 Apr 2008 Posts: 4
|
Posted: Tue Mar 08, 2011 8:23 am Post subject: |
|
|
| 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 |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Tue Mar 08, 2011 10:59 am Post subject: |
|
|
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 |
|
 |
|