View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,217

Old December 26th, 2008, 07:37 PM
I'm working on a set of data files (for the Secret of Zir'An game system), and I'm having trouble changing the handling of derived traits from the skeleton files to these files.

The traits in this game (called primary stats) each have minimums and maximums determined by the character's origin (aka birthplace/nationality) - that part I'll get to when I get to the origin component. Then the user gets to spend a pool of points to increase the base values.

The problem is that there are also derived traits - each has a base value derived from the primary stats, and then there's a separate pool of points to use increasing the derived stats.

I can't figure out how to modify the derived stat thing to allow user modification, and I can't figure out how to modify the attribute thing to allow me to calculate a base value.

P.S. Is there a better way than this to get the maximum of 4 things:

var max as number
max = maximum(a,b)
max = maximum(max,c)
max = maximum(max,d)

One of the derived stats = average(Highest Primary Stat, Lowest Primary Stat)
Mathias is offline   #1 Reply With Quote