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


Joined: 17 Feb 2007
Posts: 9

PostPosted: Sat Feb 17, 2007 6:27 am   

Autoroll trigger help plz?
 
Ok so easy trigger, but i cant seem to get it. My mud rolls one number.


[42] Cmds: help, end, roll, add, rem>

is what you see when it rolls. The number that Changes is the [42]. What I want to accomplish is, something like
([%d] <= 54)
roll

[%d] representing the [42], and 54 representing the number to stop at, Roll being what is typed to get a new duplicate text of above, but with a new number in the [42].
Example:
[45] Cmds: help, end, roll, add, rem>
[36] Cmds: help, end, roll, add, rem>
Reply with quote
jroper73
Novice


Joined: 03 Aug 2006
Posts: 30

PostPosted: Sat Feb 17, 2007 7:10 am   
 
Give this a shot.

Code:

#trigger {^[%RollResults] Cmds} {
   if (@RollResults <= 54) {
      roll
   }
}


Asbestos
ncmud.org 9000
Reply with quote
Valkera
Newbie


Joined: 17 Feb 2007
Posts: 9

PostPosted: Sat Feb 17, 2007 7:53 am   
 
it doesnt seem to be picking up my pattern..
www.forsakenlands.org
also, Im using Zmud 7.21, and its trigger section is laid out like this.
Pattern:
Style:
Trigger:
Reply with quote
jroper73
Novice


Joined: 03 Aug 2006
Posts: 30

PostPosted: Sat Feb 17, 2007 8:02 am   Try this
 
Try this:

Code:

#trigger {^~[%RollResults~] Cmds} {
   if (@RollResults <= 54) {
      roll
   }
}
Reply with quote
Valkera
Newbie


Joined: 17 Feb 2007
Posts: 9

PostPosted: Sat Feb 17, 2007 8:10 am   
 
Not rolling anything,

For the pattern box, i use (It makes me name it here I cant leave it blank):
[%d] Cmds: help, end, roll, add, rem>

And the Value Box:
Your trigger, and the ones ive tried.

I know a trigger exists, I had one a while ago, i just dont remember the syntax QQ

Maybe you could use that address to the site to connect with the link and test ur code first hand to see if it works or not? This is really bugging me.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Feb 17, 2007 8:19 am   
 
Enter this right into the command line (where you type messages) and it will be created for you.

#trigger {^~[(%d)~] Cmds} {#if (%1<54) {roll}}


If that one doesnt work try this version
#trigger {^~[(%d)~] Cmds} {#if (%1<54) {roll}} "" {prompt|nocr}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Valkera
Newbie


Joined: 17 Feb 2007
Posts: 9

PostPosted: Sat Feb 17, 2007 8:24 am   
 
well, its not spamming the crap out of every line like my best code. Its just not stopping when the #>54, seems like an infinate loop.
Reply with quote
Valkera
Newbie


Joined: 17 Feb 2007
Posts: 9

PostPosted: Sat Feb 17, 2007 8:29 am   
 
I think I figured out the problem in my Pattern, that code works, thanks. If i have any problems with it ill drop a line back.
Reply with quote
Valkera
Newbie


Joined: 17 Feb 2007
Posts: 9

PostPosted: Sat Aug 30, 2008 12:05 am   FIXED
 
Pattern:
^~[(%d)~] Cmds: help, end, roll, add, rem>
Value:
#if (%1<40) {roll}
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