Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $bStats = array(
- 'Dark Elf'=>array(
- 'Constitution'=>'5',
- 'Strength'=>'2',
- 'Dexterity'=>'3',
- 'Wisdom'=>'8',
- 'Intelligence'=>'13',
- 'Charm'=>'0',
- ),
- 'Dwarf'=>array(
- 'Constitution'=>'5',
- 'Strength'=>'12',
- 'Dexterity'=>'3',
- 'Wisdom'=>'6',
- 'Intelligence'=>'3',
- 'Charm'=>'1',
- ),
- 'Human'=>array(
- 'Constitution'=>'5',
- 'Strength'=>'5',
- 'Dexterity'=>'5',
- 'Wisdom'=>'5',
- 'Intelligence'=>'5',
- 'Charm'=>'5',
- )
- );
- $cStats = array(
- 'Wizard'=>array(
- 'Constitution'=>'-2',
- 'Strength'=>'0',
- 'Dexterity'=>'2',
- 'Wisdom'=>'4',
- 'Intelligence'=>'6',
- 'Charm'=>'0',
- ),
- 'Bard'=>array(
- 'Constitution'=>'2',
- 'Strength'=>'1',
- 'Dexterity'=>'5',
- 'Wisdom'=>'0',
- 'Intelligence'=>'0',
- 'Charm'=>'2',
- ),
- 'Cleric'=>array(
- 'Constitution'=>'-2',
- 'Strength'=>'0',
- 'Dexterity'=>'-1',
- 'Wisdom'=>'6',
- 'Intelligence'=>'4',
- 'Charm'=>'3',
- ),
- 'Warrior'=>array(
- 'Constitution'=>'5',
- 'Strength'=>'6',
- 'Dexterity'=>'0',
- 'Wisdom'=>'1',
- 'Intelligence'=>'-3',
- 'Charm'=>'0',
- )
- );
- foreach($bStats as $char => $statsb)
- {
- foreach($cStats as $class => $statsc)
- {
- echo "<strong>$char $class</strong>";
- echo "\r\n> Consitution: " . $statsb["Consitution"] + $statsc["Consitution"];
- echo "\r\n> Strength: " . $statsb["Strength"] + $statsc["Strength"];
- echo "\r\n> Dexterity: " . $statsb["Dexterity"] + $statsc["Dexterity"];
- echo "\r\n> Wisdom: " . $statsb["Wisdom"] + $statsc["Wisdom"];
- echo "\r\n> Intelligence: " . $statsb["Intelligence"] + $statsc["Intelligence"];
- echo "\r\n> Charm: " . $statsb["Charm"] + $statsc["Charm"];
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement