Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <?php
  2. $bStats = array(
  3. 'Dark Elf'=>array(
  4. 'Constitution'=>'5',
  5. 'Strength'=>'2',
  6. 'Dexterity'=>'3',
  7. 'Wisdom'=>'8',
  8. 'Intelligence'=>'13',
  9. 'Charm'=>'0',
  10. ),
  11. 'Dwarf'=>array(
  12. 'Constitution'=>'5',
  13. 'Strength'=>'12',
  14. 'Dexterity'=>'3',
  15. 'Wisdom'=>'6',
  16. 'Intelligence'=>'3',
  17. 'Charm'=>'1',
  18. ),
  19. 'Human'=>array(
  20. 'Constitution'=>'5',
  21. 'Strength'=>'5',
  22. 'Dexterity'=>'5',
  23. 'Wisdom'=>'5',
  24. 'Intelligence'=>'5',
  25. 'Charm'=>'5',
  26. )
  27. );
  28. $cStats = array(
  29. 'Wizard'=>array(
  30. 'Constitution'=>'-2',
  31. 'Strength'=>'0',
  32. 'Dexterity'=>'2',
  33. 'Wisdom'=>'4',
  34. 'Intelligence'=>'6',
  35. 'Charm'=>'0',
  36. ),
  37. 'Bard'=>array(
  38. 'Constitution'=>'2',
  39. 'Strength'=>'1',
  40. 'Dexterity'=>'5',
  41. 'Wisdom'=>'0',
  42. 'Intelligence'=>'0',
  43. 'Charm'=>'2',
  44. ),
  45. 'Cleric'=>array(
  46. 'Constitution'=>'-2',
  47. 'Strength'=>'0',
  48. 'Dexterity'=>'-1',
  49. 'Wisdom'=>'6',
  50. 'Intelligence'=>'4',
  51. 'Charm'=>'3',
  52. ),
  53. 'Warrior'=>array(
  54. 'Constitution'=>'5',
  55. 'Strength'=>'6',
  56. 'Dexterity'=>'0',
  57. 'Wisdom'=>'1',
  58. 'Intelligence'=>'-3',
  59. 'Charm'=>'0',
  60. )
  61. );
  62.  
  63. foreach($bStats as $char => $statsb)
  64. {
  65. foreach($cStats as $class => $statsc)
  66. {
  67. echo "<strong>$char $class</strong>";
  68. echo "\r\n> Consitution: " . $statsb["Consitution"] + $statsc["Consitution"];
  69. echo "\r\n> Strength: " . $statsb["Strength"] + $statsc["Strength"];
  70. echo "\r\n> Dexterity: " . $statsb["Dexterity"] + $statsc["Dexterity"];
  71. echo "\r\n> Wisdom: " . $statsb["Wisdom"] + $statsc["Wisdom"];
  72. echo "\r\n> Intelligence: " . $statsb["Intelligence"] + $statsc["Intelligence"];
  73. echo "\r\n> Charm: " . $statsb["Charm"] + $statsc["Charm"];
  74. }
  75. }
  76. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement