Help - Search - Members - Calendar
Full Version: Attribute Stat Crunching
Dumpshock Forums > Discussion > Shadowrun
Egon
I was a little board at work so I did this just for fun. It is a PHP program to find a possible stat values. The way you read it is each collum is the number of attributes at that value. It base on human, but I know you guys are smart and can just add the bonuses for the other races.

CODE

[1]     [2]     [3]     [4]     [5]     [6]
0       0       4       4       0       0       200
0       1       2       5       0       0       200
0       2       0       6       0       0       200
1       0       1       6       0       0       200
0       0       5       2       1       0       200
0       1       3       3       1       0       200
0       2       1       4       1       0       200
1       0       2       4       1       0       200
1       1       0       5       1       0       200
0       0       6       0       2       0       200
0       1       4       1       2       0       200
0       2       2       2       2       0       200
1       0       3       2       2       0       200
0       3       0       3       2       0       200
1       1       1       3       2       0       200
2       0       0       4       2       0       200
0       2       3       0       3       0       200
1       0       4       0       3       0       200
0       3       1       1       3       0       200
1       1       2       1       3       0       200
1       2       0       2       3       0       200
2       0       1       2       3       0       200
0       4       0       0       4       0       200
1       2       1       0       4       0       200
2       0       2       0       4       0       200
2       1       0       1       4       0       200
3       0       0       0       5       0       200
0       1       6       0       0       1       195
0       2       4       1       0       1       195
1       0       5       1       0       1       195
0       3       2       2       0       1       195
1       1       3       2       0       1       195
0       4       0       3       0       1       195
1       2       1       3       0       1       195
2       0       2       3       0       1       195
2       1       0       4       0       1       195
0       3       3       0       1       1       195
1       1       4       0       1       1       195
0       4       1       1       1       1       195
1       2       2       1       1       1       195
2       0       3       1       1       1       195
1       3       0       2       1       1       195
2       1       1       2       1       1       195
3       0       0       3       1       1       195
0       5       0       0       2       1       195
1       3       1       0       2       1       195
2       1       2       0       2       1       195
2       2       0       1       2       1       195
3       0       1       1       2       1       195
3       1       0       0       3       1       195
0       5       1       0       0       2       200
1       3       2       0       0       2       200
2       1       3       0       0       2       200
1       4       0       1       0       2       200
2       2       1       1       0       2       200
3       0       2       1       0       2       200
3       1       0       2       0       2       200
2       3       0       0       1       2       200
3       1       1       0       1       2       200
4       0       0       1       1       2       200
5       0       0       0       0       3       195
total stat combos  61


or the short list on 1s or 6s

CODE

[1]     [2]     [3]     [4]     [5]     [6]
0       0       4       4       0       0       200
0       1       2       5       0       0       200
0       2       0       6       0       0       200
0       0       5       2       1       0       200
0       1       3       3       1       0       200
0       2       1       4       1       0       200
0       0       6       0       2       0       200
0       1       4       1       2       0       200
0       2       2       2       2       0       200
0       3       0       3       2       0       200
0       2       3       0       3       0       200
0       3       1       1       3       0       200
0       4       0       0       4       0       200
total stat combos  13


and here is the script

CODE

<?php
$ratings = array(1=>0,2=>0,3=>0,4=>0,5=>0,6=>0);
$rating_costs = array(1=>0,2=>10,3=>20,4=>30,5=>40,6=>65);
$good_ratings = array();
$good_min = 195;
$good_max = 200;

function find_bp_cost($ratings, $rating_costs){
foreach($ratings as $rating => $number_at){
 $cost = $cost + ($rating_costs[$rating] * $number_at);
}
return $cost;
}  

echo "\n[1]\t[2]\t[3]\t[4]\t[5]\t[6]";
 
while($ratings[6] != 4){
$ratings[1] = $ratings[1] + 1;
foreach($ratings as $rating => $number_at){
 if ($number_at >= 8){
  $ii = 1;
  while($ii <= $rating){
   $ratings[$ii] = 0;
   $ii++;
  }
  $ratings[$rating + 1] = $ratings[$rating + 1] + 1;
 }
}
if (
$good_min <= find_bp_cost($ratings, $rating_costs)  
&& find_bp_cost($ratings, $rating_costs) <= $good_max
&& ($ratings[1] + $ratings[2] + $ratings[3] + $ratings[4] + $ratings[5] + $ratings[6]) == 8
&& $ratings[1] == 0
&& $ratings[6] == 0
){
 array_push($good_ratings, $ratings);
 echo "\n".$ratings[1]."\t".$ratings[2]."\t".$ratings[3]."\t".$ratings[4]."\t".$ratings[5]."\t".$ratings[6]."\t".find_bp_cost($ratings, $rating_costs);
}
}
echo "\ntotal stat combos  ".count($good_ratings);
?>
deek
Not bad...

So, is that second list, with no 1s or 6s, telling us that there are only 13 combinations for the 8 stats? I would have figured there would have been a lot more, granted, it doesn't take into account the individual stat combinations, but still, much fewer than I would have figured...
Egon
its tricky to read. It doesn't show the comminations per stat just the combos of values.

QUOTE

[1]    [2]    [3]    [4]    [5]    [6]
0      0      4      4      0      0      200


what this line is saying is you could have 4 attributes at 3 and 4 attributes at 4 for 200bp. Of corse there are many combos of where you put those 4 3s and 4 4s.
Lagomorph
Very interesting results. Thanks!
Da9iel
From the first list: I believe you are only allowed to max out one stat.
Cabral
Just as a note: For metahumans it's not as simple as just adding the modifiers if there are any attribute penalties to get the stat possibilities. For example, a troll's Charisma can only be 1 [0 pts], 2 [10 pts], 3 [20 pts], or 4 [45 pts].
Geekkake
QUOTE (Da9iel)
From the first list: I believe you are only allowed to max out one stat.

I believe that limitation only applies to skills.
Abschalten
QUOTE (Geekkake)
QUOTE (Da9iel @ Aug 22 2006, 05:19 AM)
From the first list: I believe you are only allowed to max out one stat.

I believe that limitation only applies to skills.

"Improving a character’s Physical or Mental attributes costs 10 Build Points to increase an attribute by +1. The f nal increase spent to raise an attribute to its natural maximum (known as “maxing out”) costs 25 BP instead of the normal 10. Players may not spend more than half their total BP on Physical and Mental attributes (for a standard 400 BP character, this means a cap of 200 BP). Also, characters cannot have more than one attribute at their natural maximum. This measure prevents overspending in attributes and ensures that characters are well rounded."

Page 73.
Geekkake
QUOTE (Abschalten)
QUOTE (Geekkake @ Aug 22 2006, 05:30 PM)
QUOTE (Da9iel @ Aug 22 2006, 05:19 AM)
From the first list: I believe you are only allowed to max out one stat.

I believe that limitation only applies to skills.

"Improving a character’s Physical or Mental attributes costs 10 Build Points to increase an attribute by +1. The f nal increase spent to raise an attribute to its natural maximum (known as “maxing out”) costs 25 BP instead of the normal 10. Players may not spend more than half their total BP on Physical and Mental attributes (for a standard 400 BP character, this means a cap of 200 BP). Also, characters cannot have more than one attribute at their natural maximum. This measure prevents overspending in attributes and ensures that characters are well rounded."

Page 73.

Listen, I don't need you coming around here with your cites and your bronze statues of Sir Mix-A-Lot trying to get all up in my shit.
Zolhex
Page 73 SR4 under physical/mental attribute second paragraph starting at the second sentance.

Also characters cannot have more than one attribute at their natural maximum. This prevents overspending in attributes ans ensures that characters are well rounded.
Egon
The chart is just based on the human metatype. Some of the others don't fit at all really. I was just kinda getting an idea of how the min maxing of the system would break down is all. In my opinion I would never make a PC with a one or a six.

I think they did a good job with the new stat system and it will incurage people to make more well rounded PCs.
Abschalten
QUOTE (Geekkake)
Listen, I don't need you coming around here with your cites and your bronze statues of Sir Mix-A-Lot trying to get all up in my shit.

How many Shadowrun players can say they heisted a bronzed memorial statue of Sir Mix-A-Lot? wink.gif
Toshiaki
QUOTE (Abschalten)
QUOTE (Geekkake @ Aug 22 2006, 05:35 PM)
Listen, I don't need you coming around here with your cites and your bronze statues of Sir Mix-A-Lot trying to get all up in my shit.

How many Shadowrun players can say they heisted a bronzed memorial statue of Sir Mix-A-Lot? wink.gif

Oddly enough, my players can.

...what?
bclements
Please tell me at least they got it on Broadway.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Dumpshock Forums © 2001-2012