Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. #pragma strict
  2.  
  3. //Max = 50 each
  4. //Strength, Dexterity, Constitution, Intelligence, Wisdom, Charisma
  5. var Cleric = [14, 8, 15, 10, 16, 12];
  6. var Mage = [10, 16, 12, 16, 13, 8];
  7. var Druid = [9, 15, 14, 11, 16, 13];
  8. var Bard = [8, 16, 14, 12, 10, 16];
  9. var Monk = [8, 17, 14, 10, 14, 12];
  10. var Paladin = [16, 10, 14, 8, 12, 15];
  11. var Barbarian = [16, 14, 15, 9, 13, 11];
  12. var Fighter = [16, 14, 15, 9, 13, 11];
  13. var Dwarf = [10, 17, 13, 14, 12, 9];
  14. var Elf = [10, 16, 13, 16, 12, 8];
  15. var Halfling = [10, 16, 13, 16, 12, 8];
  16. var Human = [16, 8, 13, 10, 16, 12];
  17. var DragonBorn = [12, 12, 12, 12, 12, 12];
  18. var Gnome = [8, 16, 10, 13, 12, 16];
  19. var HalfElf = [10, 16, 13, 16, 12, 8];
  20. var HalfOrc = [8, 16, 14, 12, 10, 16];
  21.  
  22. //Players
  23. var amountOfPlayers = 0;
  24.  
  25.  
  26. function Start () {
  27.  
  28. }
  29.  
  30. function Update () {
  31.  
  32. }
  33.  
  34.  
  35.  
  36. var amountPlayersGUI = true;
  37.  
  38. function OnGUI () {
  39. // Make a background box
  40. if(amountPlayersGUI){
  41. GUI.Box (Rect (10,10,100,150), "Players");
  42.  
  43. // Make the first button. If it is pressed, Application.Loadlevel (1) will be executed
  44. if (GUI.Button (Rect (20,40,80,20), "Player 1")) {
  45. amountOfPlayers = 1;
  46. amountPlayersGUI = false;
  47. }
  48.  
  49. // Make the second button.
  50. if (GUI.Button (Rect (20,70,80,20), "Player 2")) {
  51. amountOfPlayers = 2;
  52. amountPlayersGUI = false;
  53. }
  54. if (GUI.Button (Rect (20,100,80,20), "Player 3")) {
  55. amountOfPlayers = 3;
  56. amountPlayersGUI = false;
  57. }
  58.  
  59. // Make the second button.
  60. if (GUI.Button (Rect (20,130,80,20), "Player 4")) {
  61. amountOfPlayers = 4;
  62. amountPlayersGUI = false;
  63. }
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement