View Single Post
Old 12-20-2017, 08:29 PM   #14
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: Made a major change to attributes

This is quick, off the top of my head, and I have NOT tested it, but it would be something like this I think:

Code:
Encoding=UTF-8
Version=3
//   The version information above MUST be the first line of the data file
Program=4.0.423
Description=12/20/2017 for Jareth Valar

// Jareth Valar
// 
// 	
// Default Re: Made a major change to attributes
// HP = 2 * (cube root of weight in lbs.) if living
// 
// We are rounding up.

[ATTRIBUTES]
Living Weight, basevalue(125), step(1), maxscore(1000000), minscore(0), mainwin(13), disadat(-1), display(no)

#ReplaceTags in "ST:Hit Points" with {basevalue( 2 * @round( @power(ST:Living Weight, 1/3) + 0.5 ) )}
If you're pasting into an existing data file, just paste in everything from the [ATTRIBUTES] marker on down.

I included the + 0.5 in the formula so that it should get any fractions up over .5 for the rounding function to round it up.

You can change the name of Living Weight to anything you like, but remember to change it in the formula for Hit Points as well.

Since this Living Weight attribute is intended to be entered by the user, they'll also have to manually adjust for things like Skinny or Overweight.
__________________
Armin D. Sykes | Visit my GCA5 blog for updates and previews. | Get GURPS Character Assistant 5 now at Warehouse 23.
Armin is offline   Reply With Quote