|
psm Novice
Joined: 19 Jan 2002 Posts: 34 Location: Austria
|
Posted: Wed Jan 30, 2002 9:50 pm
autoroller script for sojourn3 |
Sadly, the autoroller, we tried to make, did not work, but I found one in the web, so i'll post it here. (i tried to contact the author, but his mail did not work, but he included his name in the script anyway, so i guess it's ok to distribute it.)
if someone has an idea, how to add a sound-alarm to it, so that you hear a wav-file as soon as the wanted stats are rolled, please let me know.
#ALIAS rollsetup {str = 0;dex = 0;agi = 0;con = 0;pow = 0;int = 0;wis = 0;cha = 0;total = 0;#clr;#echo {This is an autoroller for Sojourn 3 MUD.};#echo {Written By: Jaerin};#echo {};#echo {You will be prompted for the minimum values of each statistic};#echo {please enter the number coorisponding to the minimum of each};#echo {statistic. Lastly, you will be asked how many of the statistics};#echo {must be equal to or greater than your minimum to stop the roller.};#echo {Please include don't cares in your final total.};#echo {The values of each catigory is as follows:};#echo {don't care = 0, bad = 1, mundane = 2, average = 3, fair = 4,};#echo {good = 5, mighty = 6, heroic = 7, perfect = 8};#wait 5000;#prompt strmin {Please enter the minimum Strength:};#prompt dexmin {Please enter the minimum Dexterity:};#prompt agimin {Please enter the minimum Agility:};#prompt conmin {Please enter the minimum Constitution:};#prompt powmin {Please enter the minimum Power:};#prompt intmin {Please enter the minimum Intelligence:};#prompt wismin {Please enter the minimum Wisdom:};#prompt chamin {Please enter the minimum Charisma:};#prompt totalmin {Please enter the minimum number of statistics that must be matched to stop the roller:};#trigger {Do you want to reroll this} {total = 0;#if (@str >= @strmin) {#math total {@total+1}};#if (@dex >= @dexmin) {#math total {@total+1}};#if (@agi >= @agimin) {#math total {@total+1}};#if (@con >= @conmin) {#math total {@total+1}};#if (@pow >= @powmin) {#math total {@total+1}};#if (@int >= @intmin) {#math total {@total+1}};#if (@wis >= @wismin) {#math total {@total+1}};#if (@cha >= @chamin) {#math total {@total+1}};#if (@total < @totalmin) {y}} "" {nocr|prompt}}
#TRIGGER {Strength:%s(%w)} {#if ("bad" =~ "%1") {@str = 1};#if ("mundane" =~ "%1") {@str = 2};#if ("average" =~ "%1") {@str = 3};#if ("fair" =~ "%1") {@str = 4};#if ("good" =~ "%1") {@str = 5};#if ("mighty" =~ "%1") {@str = 6};#if ("heroic" =~ "%1") {@str = 7};#if ("perfect" =~ "%1") {@str = 8}}
#TRIGGER {Constitution:%s(%w)} {#if ("bad" =~ "%1") {@con = 1};#if ("mundane" =~ "%1") {@con = 2};#if ("average" =~ "%1") {@con = 3};#if ("fair" =~ "%1") {@con = 4};#if ("good" =~ "%1") {@con = 5};#if ("mighty" =~ "%1") {@con = 6};#if ("heroic" =~ "%1") {@con = 7};#if ("perfect" =~ "%1") {@con = 8}}
#TRIGGER {Dexterity:%s(%w)} {#if ("bad" =~ "%1") {@dex = 1};#if ("mundane" =~ "%1") {@dex = 2};#if ("average" =~ "%1") {@dex = 3};#if ("fair" =~ "%1") {@dex = 4};#if ("good" =~ "%1") {@dex = 5};#if ("mighty" =~ "%1") {@dex = 6};#if ("heroic" =~ "%1") {@dex = 7};#if ("perfect" =~ "%1") {@dex = 8}}
#TRIGGER {Agility:%s(%w)} {#if ("bad" =~ "%1") {@agi = 1};#if ("mundane" =~ "%1") {@agi = 2};#if ("average" =~ "%1") {@agi = 3};#if ("fair" =~ "%1") {@agi = 4};#if ("good" =~ "%1") {@agi = 5};#if ("mighty" =~ "%1") {@agi = 6};#if ("heroic" =~ "%1") {@agi = 7};#if ("perfect" =~ "%1") {@agi = 8}}
#TRIGGER {Intelligence:%s(%w)} {#if ("bad" =~ "%1") {@int = 1};#if ("mundane" =~ "%1") {@int = 2};#if ("average" =~ "%1") {@int = 3};#if ("fair" =~ "%1") {@int = 4};#if ("good" =~ "%1") {@int = 5};#if ("mighty" =~ "%1") {@int = 6};#if ("heroic" =~ "%1") {@int = 7};#if ("perfect" =~ "%1") {@int = 8}}
#TRIGGER {Wisdom:%s(%w)} {#if ("bad" =~ "%1") {@wis = 1};#if ("mundane" =~ "%1") {@wis = 2};#if ("average" =~ "%1") {@wis = 3};#if ("fair" =~ "%1") {@wis = 4};#if ("good" =~ "%1") {@wis = 5};#if ("mighty" =~ "%1") {@wis = 6};#if ("heroic" =~ "%1") {@wis = 7};#if ("perfect" =~ "%1") {@wis = 8}}
#TRIGGER {Power:%s(%w)} {#if ("bad" =~ "%1") {@pow = 1};#if ("mundane" =~ "%1") {@pow = 2};#if ("average" =~ "%1") {@pow = 3};#if ("fair" =~ "%1") {@pow = 4};#if ("good" =~ "%1") {@pow = 5};#if ("mighty" =~ "%1") {@pow = 6};#if ("heroic" =~ "%1") {@pow = 7};#if ("perfect" =~ "%1") {@pow = 8}}
#TRIGGER {Charisma:%s(%w)} {#if ("bad" =~ "%1") {@cha = 1};#if ("mundane" =~ "%1") {@cha = 2};#if ("average" =~ "%1") {@cha = 3};#if ("fair" =~ "%1") {@cha = 4};#if ("good" =~ "%1") {@cha = 5};#if ("mighty" =~ "%1") {@cha = 6};#if ("heroic" =~ "%1") {@cha = 7};#if ("perfect" =~ "%1") {@cha = 8}}
#STAT {Total: @total/@totalmin Str: @str/@strmin Dex: @dex/@dexmin Agi: @agi/@agimin Con: @con/@conmin Pow: @pow/@powmin Int: @int/@intmin Wis: @wis/@wismin Cha: @cha/@chamin} |
|
|
|
Daris Newbie
Joined: 22 Mar 2004 Posts: 4 Location: USA
|
Posted: Wed Mar 24, 2004 2:27 am |
How do I actually get this to work?
|
|
|
|
Jaerin Apprentice
Joined: 10 Oct 2000 Posts: 132 Location: USA
|
Posted: Wed Oct 20, 2004 8:47 pm |
LOL this thing is *STILL* around...I wrote that in a hurry long ago. Glad someone is still making use out of it.
|
|
|
|
|
|
|
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
|
|