Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Worgzark
Beginner


Joined: 03 Jul 2008
Posts: 10

PostPosted: Thu Jul 03, 2008 12:13 pm   

Aardwolf Statroller
 
Trigger Pattern

%s(%d)%s(%d)%s(%d)%s(%d)%s(%d)%s(%d)%s(%d)%s(%d)%s(%d)%sKeep These~?

The Trigger Script

#AD rolls 1
#MATH stattotal %1+%2+%3+%4+%5+%6+%7+%8+%9
#IF (%1>=@Str) {Str= %1} {}
#IF (%2>=@Int) {Int= %2} {}
#IF (%3>=@Wis) {Wis= %3} {}
#IF (%4>=@Dex) {Dex= %4} {}
#IF (%5>=@Con) {Con= %5} {}
#IF (%6>=@Luk) {Luk= %6} {}
#IF (%7>=@Prac) {Prac= %7} {}
#IF (%8>=@Trn) {Trn= %8} {}
#IF (%9>=@Hps) {Hps= %9} {}
#IF (@stattotal>=@highest) {highest= @stattotal} {}
#SH
#SH Total Rolls -- @rolls Stat Total -- @stattotal Stat Total Highest -- @highest
#SH Str Hi -- @Str Int Hi -- @Int Wis Hi -- @Wis Dex Hi -- @Dex Con Hi -- @Con
#SH Luk Hi -- @Luk Pracs Hi -- @Prac Trains Hi -- @Trn Hp Hi -- @Hps
#IF ((@stattotal>=@statgoal) AND (%1>=@Strgoal)AND (%2>=@Intgoal) AND (%3>=@Wisgoal) AND (%4>=@Dexgoal) AND (%5>=@Congoal)AND (%6>=@Lukgoal) AND (%7>=@Pracgoal) AND (%8>=@Trngoal) AND (%9>=@Hpsgoal)) {#BEEP} {no}

Alias List

reset
#VA rolls 0;#VA stattotal 0;#VA highest 0;#VA Str 0;#VA Int 0;#VA Wis 0;#VA Dex 0;#VA Con 0;#VA Luk 0;#VA Prac 0;#VA Trn 0;#VA Hps 0;#SH Your rolling counts have been reset to zero.

setall
settotal
setstr
setint
setwis
setdex
setcon
setluck
setprac
settrain
sethp

This is a list of aliases trigered by the alias setall. Each of these aliases can be used on their own to set individual stat goals.
Seting these variables to zero effectivly turns them off allowing that stat to be anything.

setcon
#PR Congoal {Please enter the Constitution to roll for.}

setdex
#PR Dexgoal {Please enter the Dexterity to roll for.}

sethp
#PR Hpsgoal {Please enter the Hitpoints to roll for.}

setint
#PR Intgoal {Please enter the Inteligence to roll for.} and so on making an alias for each variable.

Variables
A three letter variable to store the highest scores rolled for each stat and a goal variable as set by the above aliases. eg Con and Congoal. You will also need a rolls variable to store the number of rolls, a statgoal variable as set by the above aliases to store the user determined stat total goal, a stattotal variable to store the sum of the stats and a highest variable to store the highest stat total.

I have used somone elses script for the basis for this one but I can't remember who. If it was you let me know and thanks.

Worgzark
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Thu Jul 03, 2008 1:07 pm   
 
Perhaps it was this person?

Stat Roller for Aardwolf (1 trigger)

Charneus
Reply with quote
Worgzark
Beginner


Joined: 03 Jul 2008
Posts: 10

PostPosted: Thu Jul 03, 2008 1:21 pm   
 
Yeah that was it :) Thanks Private Apprentice.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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