 |
Nickman Beginner
Joined: 26 Feb 2003 Posts: 15
|
Posted: Wed Dec 31, 2003 3:53 pm
Need help with triggers. |
pattern: Spell: (%1) :*$
value : #if %ismember(%1,@SpellCheck) {SpellCheck=%delitem(%1,@SpellCheck)}
I'm using this trigger (is a parf of automatic spellchecker) but when i execute the command all i can see instead of casting a spell is cast '%i'. All i can think is that the (%1) is not working as well (that is not captures the spell name) but everything that i have tried are not worked yet. Anyone have any ideas what might going on? |
|
|
 |
TonDiening GURU

Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Wed Dec 31, 2003 4:39 pm |
%1 as a pattern matching symbol is highly discouraged.
pattern: Spell: (*) :*$
help Pattern Matching |
|
|
 |
Nickman Beginner
Joined: 26 Feb 2003 Posts: 15
|
Posted: Wed Dec 31, 2003 5:40 pm |
I just did that but i got the same result. The strange is that the variable called SpelCheck contains every spell that needs to be casted.
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Dec 31, 2003 6:01 pm |
This trigger doesn't have "cast" and it doesn't have "%i". Those came from somewhere else (probably a spellup alias). That's also where your problem comes from.
|
|
|
 |
Nickman Beginner
Joined: 26 Feb 2003 Posts: 15
|
Posted: Wed Dec 31, 2003 7:05 pm |
The alias is #ALIAS CastSpells {#FORALL @SpellCheck {cast ~'%i~'}}
as far as i check from the help file the spelling is right but i really cant find the problem.. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Dec 31, 2003 10:48 pm |
There doesn't appear to be any problem with the alias itself, so the next culprit to check is the setting (trigger, button, etc.) which calls it. Instead of giving us the script one piece at a time, why don't you just post the whole thing?
|
|
|
 |
Nickman Beginner
Joined: 26 Feb 2003 Posts: 15
|
Posted: Thu Jan 01, 2004 11:37 am |
I found it .. the alias must be #ALIAS CastSpells {#FORALL @SpellCheck {cast '%i'}} without the ~ .
I tested it right now ant is working perfectly. Thanks for the help and (btw) Happy New Year to everyone :) |
|
|
 |
|
|