mjc65

rp2

Apr 30th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.21 KB | None | 0 0
  1. using System;
  2.  
  3. namespace herosAndMonsters
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int heroStrength, heroIntelligence, heroDexterity, heroConstitution, heroCharisma, heroWisdom, heroMagicPoints, heroHealth;
  10.             heroStrength = 17;
  11.             heroIntelligence = 6;
  12.             heroDexterity = 12;
  13.             heroConstitution = 14;
  14.             heroCharisma = 16;
  15.             heroWisdom = 14;
  16.             heroMagicPoints = 4;
  17.             heroHealth = 14;
  18.            
  19.             string heroName, heroAttack, heroRace;
  20.             heroName = "Legolas";
  21.             heroAttack = "Bow";
  22.             heroRace = "Wood Elf";
  23.  
  24.             Console.WriteLine("Name: {0}\nRace: {1}", heroName, heroRace);
  25.             Console.WriteLine("Core Weapon : {0}", heroAttack);
  26.             Console.WriteLine("Strength: {0}\nIntelligence: {1}\nDexterity: {2}\nConstitution: {3}\nCharisma: {4}\nWisdom: {5}\nMagic Points: {6}\nHealth: {7}", heroStrength, heroIntelligence, heroDexterity, heroConstitution, heroCharisma, heroWisdom, heroMagicPoints, heroHealth);
  27.  
  28.             int creatureStrength, creatureIntelligence, creatureDexterity, creatureConstitution, creatureCharisma, creatureWisdom, creatureMagicPoints, creatureHealth;
  29.             creatureStrength = 25;
  30.             creatureIntelligence = 30;
  31.             creatureDexterity = 12;
  32.             creatureConstitution = 20;
  33.             creatureCharisma = 8;
  34.             creatureWisdom = 8;
  35.             creatureMagicPoints = 40;
  36.             creatureHealth = 40;
  37.  
  38.             string creatureName, creatureAttack, creatureRace;
  39.             creatureName = "Sauron";
  40.             creatureAttack = "Mace";
  41.             creatureRace = "Valar";
  42.  
  43.             Console.WriteLine("\n\nName: {0}\nRace: {1}", creatureName, creatureRace);
  44.             Console.WriteLine("Core Weapon : {0}", creatureAttack);
  45.             Console.WriteLine("Strength: {0}\nIntelligence: {1}\nDexterity: {2}\nConstitution: {3}\nCharisma: {4}\nWisdom: {5}\nMagic Points: {6}\nHealth: {7}", creatureStrength, creatureIntelligence, creatureDexterity, creatureConstitution, creatureCharisma, creatureWisdom, creatureMagicPoints, creatureHealth);
  46.  
  47.         }
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment