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
capt_warf
Beginner


Joined: 16 Oct 2002
Posts: 10
Location: USA

PostPosted: Fri Oct 25, 2002 7:33 pm   

trigger help please
 
Ok I play on a circle based mud in case that helps.

My question is this. when a clan member says

[CLAN]: Belgarath says, 'ts kowz'.

I want to automaticaly cast the spell

cast true belgarath

this is what was given before to try and it didnt work although i have messed with it still cant get it to cast the spell for me.

#TR {~[CLAN~] %w says, ~'ts (%w)} {#T+ truesight;cast true %1}

thank you
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Fri Oct 25, 2002 7:37 pm   
 
The parameter which you wish to capture is the one you must enclose in parentheses. Since you wish to capture the name, you must enclose the first %w, not the second.

#TR {~[CLAN~] (%w) says, ~'ts %w} {#T+ truesight;cast true %1}



Troubadour
(Win 98, Pentium III, 550 MHz)
Reply with quote
capt_warf
Beginner


Joined: 16 Oct 2002
Posts: 10
Location: USA

PostPosted: Fri Oct 25, 2002 8:15 pm   
 
Nope that didnt work either...I think there is more wrong with the command then just that but not sure what.. Even if I was in the ballpark I would at least think I would get a HUH? msg but not getting any kind of error msg so not sure what to look at to fix.
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: Fri Oct 25, 2002 8:32 pm   
 
*smacks Troubador with a clue-by-four*

What happens to the colon in the trigger text??? You left it out of the trigger.

Try:

#TR {~[CLAN~]: (%w) says, ~'ts %w} {#T+ truesight;cast true %1}


Not sure offhand if the colon needs a ~ in front of it.... if this doesn't work, try it with a ~.
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Fri Oct 25, 2002 8:35 pm   
 
In both of your examples, i noticed the : missing from your trigger patterns. Does this work?:

#TR {~[CLAN~]~: (%w) says, ~'ts kowz} {#T+ truesight;cast true %1}

*edit* beat me to it Lalaynya, *teehee*
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Sat Oct 26, 2002 12:40 am   
 
Meh. Yeah, I focused in on the parentheses and neglected to compare to the original message. Btw, neither the colon or the single-quote needs a quote character (~) in front.

Troubadour
(Win 98, Pentium III, 550 MHz)
Reply with quote
capt_warf
Beginner


Joined: 16 Oct 2002
Posts: 10
Location: USA

PostPosted: Sat Oct 26, 2002 1:11 am   
 
ok on reading back i screwed up on origanal message.. i wrote

[CLAN]: Belgarath says, 'ts kowz'.

I want to automaticaly cast the spell

cast true belgarath

but what i really need is to cast true on Kowz NOT Belgarath or the person they want to true see as for the commands so far given..they have not worked yet..still playing with the configuration though trying to get it to work..sorry for the mix up and thanks for helping.
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Sat Oct 26, 2002 1:59 am   
 
Ok, then it's back to your original trigger. All thats missing is to include the colon in your trigger as far as i can see

#TR {~[CLAN~]: %w says, 'ts (%w)} {#T+ truesight;cast true %1}

pertaining to your use of #T+ truesight, is that a class, or is it a single trigger? Hopefully it's not the ID of _this_ trigger, because it will never fire if it starts off disabled.
Reply with quote
capt_warf
Beginner


Joined: 16 Oct 2002
Posts: 10
Location: USA

PostPosted: Sat Oct 26, 2002 2:25 am   
 
Ok now i have kinna sorta got it now..but my problem is this..it gets TO litteral on the casting.. what i mean is this

[CLAN]: Belgarath says, 'ts kowz'.

now when it casts the spell or attempts to cast it it also grabs what is after the name as well in this case the '. and the spell backfires cuz it dosnt know what that is connected to the name..i am not sure even how to ask how to fix this so it will cast the spell on just the name as in c true kowz not c true kowz'. it is so close to working its not funny and pulling my hair out here ha ha ha ha thanks again
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Sat Oct 26, 2002 2:51 am   
 
Hmm, that's odd. It shouldn't be picking up that last ' as part of %1, because the %w wildcard only matches words as far as i know. At any rate, it should just be a matter of adding the ' to the pattern, like so.

#TR {~[CLAN~]: %w says, 'ts (%w)'} {#T+ truesight;cast true %1}
Reply with quote
Karnov
Newbie


Joined: 26 Oct 2002
Posts: 3
Location: Sweden

PostPosted: Sat Oct 26, 2002 12:22 pm   
 
pattern:
~[CLAN~]: (%w) says, '(%*)'.

command:
#T+ truesight;cast true %lower( %1)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Oct 26, 2002 1:54 pm   
 
Use doomfyre's one instead. Karnov's trigger also works, but it is unsafe to use %* to match what you want, and in the way it is used in the commands of the trigger, it allows for possible abuse.

Kjata
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