|
Valkera Newbie
Joined: 17 Feb 2007 Posts: 9
|
Posted: 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> |
|
|
|
jroper73 Novice
Joined: 03 Aug 2006 Posts: 30
|
Posted: Sat Feb 17, 2007 7:10 am |
Give this a shot.
Code: |
#trigger {^[%RollResults] Cmds} {
if (@RollResults <= 54) {
roll
}
}
|
Asbestos
ncmud.org 9000 |
|
|
|
Valkera Newbie
Joined: 17 Feb 2007 Posts: 9
|
Posted: 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: |
|
|
|
jroper73 Novice
Joined: 03 Aug 2006 Posts: 30
|
Posted: Sat Feb 17, 2007 8:02 am Try this |
Try this:
Code: |
#trigger {^~[%RollResults~] Cmds} {
if (@RollResults <= 54) {
roll
}
}
|
|
|
|
|
Valkera Newbie
Joined: 17 Feb 2007 Posts: 9
|
Posted: 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. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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} |
|
|
|
Valkera Newbie
Joined: 17 Feb 2007 Posts: 9
|
Posted: 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.
|
|
|
|
Valkera Newbie
Joined: 17 Feb 2007 Posts: 9
|
Posted: 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.
|
|
|
|
Valkera Newbie
Joined: 17 Feb 2007 Posts: 9
|
Posted: Sat Aug 30, 2008 12:05 am FIXED |
Pattern:
^~[(%d)~] Cmds: help, end, roll, add, rem>
Value:
#if (%1<40) {roll} |
|
|
|
|
|