1,
2 => 2,
3 => 3,
4 => 4,
5 => 6,
6 => 8,
7 => 11,
8 => 14,
9 => 18,
10 => 23
];
// Define skills in each category (excluding "Restricted Skills")
= [
'Combat/Strength' => [
'Ranged Combat',
'Close/Martial Combat',
'Feat of Strength'
],
'Deductive Reasoning' => [
'Leadership',
'Information Systems',
'Intelligence Gathering',
'Item Identification/Appraisal',
'Diplomacy'
],
'Engineering/Academics' => [
'Piloting',
'Starship Engineering',
'Civil Engineering',
'Repair',
'Research/Innovation'
],
'Life Skills' => [
'Domestic Skills',
'Survivalism',
'Medicine'
],
'Special Skills' => [
'Concentration (Gem/Mental/Physical)',
'Gem Specialization (Fill in gem type)',
'Psionic Energy',
'Ki Energy'
]
];
// Initialize an array to store skill points
= [];
// Display the skills in each category and prompt the user for points
foreach ( as => ) {
echo "Skills in :
"; foreach ( as ) { do { echo "Enter the points for (0-10): "; = readline(); } while (!is_numeric() || < 0 || > 10); = (int); } } // Calculate the total skill points = array_sum(); // Display the updated skill points echo "
Updated Skill Points:
"; foreach ( as => ) { echo ": points
"; } echo "
Total Skill Points: points
"; // Generate standard vital stats = [ 'STR' => rollD20(), 'DEX' => rollD20(), 'CON' => rollD20(), 'INT' => rollD20(), 'WIS' => rollD20(), 'CHA' => rollD20() ]; // Display the rolled vital stats echo "
Standard Vital Stats:
"; foreach ( as => ) { echo ":
"; } ?>
"; foreach ( as ) { do { echo "Enter the points for (0-10): "; = readline(); } while (!is_numeric() || < 0 || > 10); = (int); } } // Calculate the total skill points = array_sum(); // Display the updated skill points echo "
Updated Skill Points:
"; foreach ( as => ) { echo ": points
"; } echo "
Total Skill Points: points
"; // Generate standard vital stats = [ 'STR' => rollD20(), 'DEX' => rollD20(), 'CON' => rollD20(), 'INT' => rollD20(), 'WIS' => rollD20(), 'CHA' => rollD20() ]; // Display the rolled vital stats echo "
Standard Vital Stats:
"; foreach ( as => ) { echo ":
"; } ?>