|
Kylu Newbie
Joined: 11 Jun 2005 Posts: 9
|
Posted: Sat Jun 11, 2005 10:29 pm
Autorolling Trigger (Should be simple.. I think?) |
Greetings all, was wondering if someone could help me whip up an Autorolling trigger? Here's the goods:
Dice left to distribute: 100, 95, 90, 85, 80, 75, 70, 65, 60, 55, 50, 40, 30, 20, 10
Show, reroll, assign, unassign, default, help, or done? reroll
Dice left to distribute: 99, 95, 90, 84, 74, 73, 62, 54, 52, 38, 36, 35, 25, 16, 3
Show, reroll, assign, unassign, default, help, or done?
Basically, I want the sum of everything behind "Dice left to distribute" to be 1050+. If it's not, just enter reroll until it finds one that is. If there's any possible way that it could output what the sum is, that'd be great too, but hardly a necessity.
Thanks in advance,
Sam |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Sat Jun 11, 2005 10:41 pm |
#TRIGGER {Dice left to distribute: (*)$} {
#SUBSTITUTE {Dice left to distribute: %1 - TOTAL: %eval(%replace("%1", ", ","+"))}
#IF (%eval( %replace( "%1", ", ", "+"))>=1050) {COMMANDS IF IT IS 1050 OR GREATER GO HERE} {reroll}
} |
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
Kylu Newbie
Joined: 11 Jun 2005 Posts: 9
|
Posted: Sat Jun 11, 2005 10:59 pm |
Okay.. stupid question.. but.. erm.. where do I paste that? What's the pattern/value? *blushes* Sorry about this. I'm just retarded.
|
|
|
|
Kylu Newbie
Joined: 11 Jun 2005 Posts: 9
|
Posted: Sat Jun 11, 2005 11:00 pm |
Misposted twice. Sorry.
|
|
|
|
Kiasyn Apprentice
Joined: 05 Dec 2004 Posts: 196 Location: New Zealand
|
Posted: Sat Jun 11, 2005 11:03 pm |
Pattern: Dice left to distribute: (*)$
Value:
#SUBSTITUTE {Dice left to distribute: %1 - TOTAL: %eval(%replace("%1", ", ","+"))}
#IF (%eval( %replace( "%1", ", ", "+"))>=1050) {COMMANDS IF IT IS 1050 OR GREATER GO HERE} {reroll} |
|
|
|
Kylu Newbie
Joined: 11 Jun 2005 Posts: 9
|
Posted: Sat Jun 11, 2005 11:04 pm |
Okay. It's going... and.. I *think* it's working. Not seeing the dice, but.. not seeing anything after TOTAL either.. will the Total only show up if it's over 1050?
|
|
|
|
Kylu Newbie
Joined: 11 Jun 2005 Posts: 9
|
Posted: Sat Jun 11, 2005 11:06 pm |
Exerpt:
Dice left to distribute: - TOTAL:
reroll
Show, reroll, assign, unassign, default, help, or done?
Dice left to distribute: - TOTAL:
reroll
Show, reroll, assign, unassign, default, help, or done?
Dice left to distribute: - TOTAL:
reroll
Show, reroll, assign, unassign, default, help, or done?
Dice left to distribute: - TOTAL:
reroll
Show, reroll, assign, unassign, default, help, or done?
Dice left to distribute: - TOTAL:
reroll
Show, reroll, assign, unassign, default, help, or done? |
|
|
|
Kylu Newbie
Joined: 11 Jun 2005 Posts: 9
|
Posted: Sat Jun 11, 2005 11:29 pm |
The command to stop should be SHOW by the way... if you'd like to take a look at exactly what I'm talking about, the game is Aarchon.. it's at mud.aarchonmud.com port 7000
I don't know if it matters, but I'm using Zmud 7.11a.
Thanks for everything you guys are trying.
Hopefully,
Sam |
|
|
|
Kylu Newbie
Joined: 11 Jun 2005 Posts: 9
|
Posted: Sat Jun 11, 2005 11:39 pm |
Okay. I'm fairly sure it isn't working now. I changed the 1050 to 200 (which would be met by any roll), and it still acted the same way. :-(
|
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Sun Jun 12, 2005 12:02 am |
Hmm... I tested this with the mud output you gave me, gonna go try and connect to your mud, test it there.
|
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Sun Jun 12, 2005 12:11 am |
Hmm... The trigger I gave you is working for me. What version of zmud are you using? Also, check to make sure you put in the trigger correctly. With my format above, you just copy/paste all of it to the command line. Kiasyn's looks right, though...
|
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Jun 12, 2005 5:16 am |
Sometimes the command-line parser mangles the entered command. This is usually due to Preferences like Expand Vars in Command Line.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|
|
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
|
|