Restat calculator

Scripts and support for your favorite MUD client.
Tasan
Sojourner
Posts: 1710
Joined: Fri Mar 30, 2001 6:01 am
Location: Fridley, Mn USA
Contact:

Restat calculator

Postby Tasan » Tue Nov 11, 2008 2:21 am

I called the alias statcheck:

Code: Select all

{
#var start %1
#var end %2
#var loops %eval( @end - @start)
#var totalstat 0
#Until (@loops = 0) {
  #math interval %eval( @end -%eval( @loops - 1))
  #math totalstat (@totalstat + %eval( 1+((@interval - 55)/10) - %if( (%mod( @interval - 55, 10)) = 0, 0, 1/%mod( @interval - 55, 10))))
  #add loops -1
  }
#say @totalstat
}


statcheck <starting attribute number> <desired attribute number>

displays cost in points.

statcheck 70 99

displays: 100

Enjoy! :)

!!x
Danahg tells you 'yeah, luckily i kept most of it in my mouth and nasal membranes, ugh'

Dlur group-says 'I have a dead horse that I'm dragging down the shaft with my 4 corpses. Anyone want to help me beat it?'

Calladuran: There are other games to play if you want to play with yourself.

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 10 guests