Hi, My approach to this is shown in this post using a tool one of the forum members made.
This tool:
Basically you add all the variables you want to track to your startup file
like this: *comment savestatsetup str agi int char cons gold_coins
Then at the point you want to know the values you do a *comment savestats
Then you run the tool as many times as you want (the longer and more branched the game the more iterations you should do to have a better distribution and endpoints.)
After that you’ll have a file with all the output, and from there you can do simple excel functions to get the endpoints or averages:
Or you can use more complex tools to graph probability distribution or all sorts of things.