Join the forums now, and start posting to receive access to our Scripts Vault!
$units = array(0,0,0,0,0,0,0,0,0,0,0);$info = mysql_query("SELECT `t1`,`q1`,`t2`,`q2`,`t3`,`q3`,`t4`,`q4` FROM `table`");while ($data = mysql_fetch_array($info)) { for ($i=0; $i<8; $i+=2) { $units[$data[$i]] += $data[$i+1]; }}for ($j=1; $j<count($units); $j++) { echo "Unit ".$j.": ".$units[$j]."<br />";}
$info = mysql_query("SELECT 1,`q0`,2,`q1`,`t2`,`q2`,`t3`,`q3`,`t4`,`q4` FROM `table`");while ($data = mysql_fetch_array($info)) { for ($i=0; $i<12; $i+=2) { $units[$data[$i]] += $data[$i+1]; }}
$info = mysql_query("SELECT '1' AS `t0`,`q0`,'2' AS `t1`,`q1`,`t2`,`q2`,`t3`,`q3`,`t4`,`q4` FROM `table`");
Don't know how seriously you meant that, but ...carefulFrequency of usage doesn't immediately imply being better. I don't know how complex your game is, but...It's often the way that people don't use some unit and then a skilled and resourceful player comes and use that unit so well that the rest of players start using it as well. Many imbalances will be discovered as the time goes by, combinations and usages of unit neither devs nor players thought about etc.Speaking mainly based on experience from dawn of war 2, which I play since beta, but I think these ideas can apply everywhereThe race that seemed the least powerful, heroes that weren't popular at the beginning proved totaly broken and overpowered after some time, when people learned to used them or just stopped overlooking themYou're probably aware of that, just felt the need, 'repetition is the mother of wisdom' as the saying goes...