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',
- )
- );
- $statNames = array('Constitution', 'Strength', 'Dexterity', 'Wisdom', 'Intelligence', 'Charm')
- foreach($bStats as $char => $statsb)
- {
- foreach($cStats as $class => $statsc)
- {
- echo "<strong>$char $class</strong>";
- foreach($statNames as $k => $v)
- {
- echo "\r\n> $v: " . $statsb[$v] + $statsc[$v];
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement