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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Nickman
Beginner


Joined: 26 Feb 2003
Posts: 15

PostPosted: 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?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Dec 31, 2003 4:39 pm   
 
%1 as a pattern matching symbol is highly discouraged.

pattern: Spell: (*) :*$

help Pattern Matching
Reply with quote
Nickman
Beginner


Joined: 26 Feb 2003
Posts: 15

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
Nickman
Beginner


Joined: 26 Feb 2003
Posts: 15

PostPosted: 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..
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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?
Reply with quote
Nickman
Beginner


Joined: 26 Feb 2003
Posts: 15

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