01-02-2010, 04:11 AM
|
#5 (permalink)
|
|
The Contributor
Join Date: Nov 2007
Location: Nashville, TN
Posts: 66
Thanks: 20
|
Now thats a whole different angle than the one I considered. Below is sort of how I was starting to construct the function.
Code:
function barbarian_background(){
$background = array("Athletics"=>'10', "Perception"=>'5', "Resilience"=>'10', "Stealth"=>'5');
return $background;
}
$background = barbarian_background();
print_r($background);
if(array_key_exists("Athletics", $background)) {
echo "<br> Bingo! Athletics is there. Currently it's at a ".$background["Athletics"].". Let's update that to ";
$background["Athletics"] = $background["Athletics"] + 5;
echo $background["Athletics"].".";
}
I'm just not sure how to handle things like picking 2 of 5 possible skills to add 5 bonus points to at this point. Or picking 1 of 6 possible new skills yet.  I'm sure I can figure it out though, still I am open to suggestions.
__________________
I am not a programmer, nor do I play one on tv.
|
|
|
|