Need help on a roller

Scripts and support for your favorite MUD client.
lorekeeper
Sojourner
Posts: 4
Joined: Mon Sep 12, 2005 1:42 pm

Need help on a roller

Postby lorekeeper » Mon Sep 12, 2005 1:45 pm

I've found a couple rollers in the forums thus far but they all seem based around get a specific score in a specific stat. What I am looking for is basically a script to look for a certain number of specified stats. So insted of looking for a perfect con and might int I want to look for 4 mightys and 4 goods or below that way I can tailor how I choose and this way the roller doesnt pass by the good rolls just because one of the stats is in the wrong place.

Cheers
Jesus saves and takes half damage
Vikaz
Sojourner
Posts: 92
Joined: Mon Feb 10, 2003 4:22 am
Contact:

Postby Vikaz » Mon Sep 12, 2005 2:48 pm

This works for me

Code: Select all

#CLASS {roller}
#TRIGGER {Rerolling this character.} {#t+ roll1;#t+ roll2}
#CLASS 0
#CLASS {roller|roll2}
#TRIGGER {^To swap stats:} {#if (@myvar < 4) {#echo @myvar;y;myvar=0;#t- roll2} {#beep;myvar=0}}
#CLASS 0
#CLASS {roller|roll1}
#TRIGGER {(%w):(%s){heroic|perfect|mighty}} {#add myvar 1}
#CLASS 0
Botef
Sojourner
Posts: 1056
Joined: Fri May 10, 2002 5:01 am
Location: Eastern Washington
Contact:

Postby Botef » Mon Sep 12, 2005 3:21 pm

I think Lilithelle's roller accounts for swapping if I'm not mistaken, but it's been awhile since I've used it.
lorekeeper
Sojourner
Posts: 4
Joined: Mon Sep 12, 2005 1:42 pm

Postby lorekeeper » Mon Sep 12, 2005 5:23 pm

Vikaz wrote:This works for me

Code: Select all

#CLASS {roller}
#TRIGGER {Rerolling this character.} {#t+ roll1;#t+ roll2}
#CLASS 0
#CLASS {roller|roll2}
#TRIGGER {^To swap stats:} {#if (@myvar < 4) {#echo @myvar;y;myvar=0;#t- roll2} {#beep;myvar=0}}
#CLASS 0
#CLASS {roller|roll1}
#TRIGGER {(%w):(%s){heroic|perfect|mighty}} {#add myvar 1}
#CLASS 0


I think I see how this one is supposed to work but Im not positive....how do I implement this one into zmud and run?
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Mon Sep 12, 2005 7:14 pm

Copy it into a .txt file, import the .txt file as ASCII.
Support Your Addiction! Vote for TorilMUD Today!

Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev

Why Nerox is jealous of me:

Nerox tells you 'man this thing is kicking my ass and i have blisters!'
Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Guest

Collage degree

Postby Guest » Wed Nov 23, 2005 8:28 am

[quote="lorekeeper"][/quote]

You know - this was acctually a part of my collage degree believe it or not... B: 8)
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Wed Nov 23, 2005 10:59 pm

Delete this wank's account.
Support Your Addiction! Vote for TorilMUD Today!



Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev



Why Nerox is jealous of me:



Nerox tells you 'man this thing is kicking my ass and i have blisters!'

Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Gizep
Sojourner
Posts: 150
Joined: Thu Mar 10, 2005 4:34 pm
Location: Menzoberranzan
Contact:

Postby Gizep » Fri Jan 06, 2006 12:00 am

Here's a simple autoroller for wintin, it just looks for close to 4 perfects, or enough of the smaller ones to hit the score, it also stops at each new high and asks if you want to keep it.

Code: Select all

#defgroup {}
#action  {Rerolling} {#enable Autoroll}
#defgroup {}


#defgroup {Autoroll}
#action  {Agility: %1 W} {test %1} {G|Autoroll}
#action  {Charisma: %1} {test %1} {G|Autoroll}
#action  {Constitution: %1 C} {test %1} {G|Autoroll}
#action  {Dexterity: %1 I} {test %1} {G|Autoroll}
#action  {Intelligence: %1} {test %1} {G|Autoroll}
#action  {Power: %1} {test %1} {G|Autoroll}
#action  {Strength: %1 P} {test %1} {G|Autoroll}
#action  {Wisdom: %1} {test %1} {G|Autoroll}
#action  {swap:} {#if {$highscore < $hits} {#var highscore $hits;#showme Hits: $hits New High Score!;resethits;#disable Autoroll} else {#showme Hits:$hits Highscore $highscore;#if {$hits < 14} {resethits;y} else {resethits;#show Keep?;#bell;#disable Autoroll}}} {G|Autoroll}
#alias  {resethits} {#var hits 0} {G|Autoroll}
#alias  {test} {#ifmatch {$good} {%0} {#math hits {$hits+1}};#ifmatch {$mighty} {%0} {#math hits {$hits+2}};#ifmatch {$heroic} {%0} {#math hits {$hits+3}};#ifmatch {$perfect} {%0} {#math hits {$hits+4}}} {G|Autoroll}
#variable  {hits} {0} {G|Autoroll}
#defgroup {}

#defgroup {}
#variable  {good} {good}
#variable  {heroic} {heroic}
#variable  {highscore} {0}
#variable  {mighty} {mighty}
#variable  {perfect} {perfect}

#log

#debug off

#tinsep {;}
#swdelay {0}
#speedwalk on
#message off
#ignore off
#togglesubs off
#presub off
#tinchar #
As long as we live in this world we are bound to encounter problems. If, at such times, we lose hope and become discouraged, we diminish our ability to face difficulties. If, on the other hand, we remember that it is not just ourselves but everyone who has to undergo suffering, this more realistic perspective will increase our determination and capacity to overcome troubles.
-- The Dali Lama

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 19 guests