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
Merkin
Newbie


Joined: 02 Apr 2004
Posts: 4
Location: Canada

PostPosted: Fri Apr 02, 2004 6:07 am   

help
 
need help with this i am trtying to
Pattern: The random generator produces %1 out of %2 for %3.
#if (%3=@LEADER) {slot %1} {#wait 10}


It doesnt seem to be working any advice
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Apr 02, 2004 6:27 am   
 
A. Read the helpfiles for Pattern Matching
B. Include a more descriptive Topic Subject and include more details in your post :P
C. Read the helpfile for #wait as I have no idea why your doing the the #wait 10
Your trigger SHOULD be working though even with %1 though but try something like this
if it doesnt work post mud output and desc of what you are trying to do

#TR {^The random generator produces (*) out of (*) for (*).} {#if (%3=@LEADER) {slot %1} {#wait 10}}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Apr 02, 2004 5:20 pm   
 
%1-%99 aren't intended to be used as wildcards in trigger patterns. They can be replaced with * or other, more specific, wildcards. It appears that %1 and %2 would probably be numeric, so %d would likely be the best choice for them. Parentheses are used to create numbered parameters for use in the trigger value. Of your 3 wildcards, you don't use %2 so it doesn't need parentheses around it. That, of course, would change %3 to %2.

Zugg recommends that you DON'T use #WAIT in triggers. There's an article in the Support Library (link at top of page) which explains why. In this case, I don't see any reason to use #WAIT since you don't take any action after it. All it will do is suspend processing (ALL trigger processing) for 10 milliseconds. If there is a good reason to suspend THIS trigger, it can be accomplished with a multistate trigger using the Wait type.

#TR rg {The random generator produces (*) out of * for (*).} {#IF ("%2" = @LEADER) {slot %1;#STATE rg 0}}
#COND {} {} {Wait|Param=10}
Reply with quote
Merkin
Newbie


Joined: 02 Apr 2004
Posts: 4
Location: Canada

PostPosted: Fri Apr 02, 2004 10:07 pm   
 
Problem resloved thank you Lightbulb
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