Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace herosAndMonsters
- {
- class Program
- {
- static void Main(string[] args)
- {
- int heroStrength, heroIntelligence, heroDexterity, heroConstitution, heroCharisma, heroWisdom, heroMagicPoints, heroHealth;
- heroStrength = 17;
- heroIntelligence = 6;
- heroDexterity = 12;
- heroConstitution = 14;
- heroCharisma = 16;
- heroWisdom = 14;
- heroMagicPoints = 4;
- heroHealth = 14;
- string heroName, heroAttack, heroRace;
- heroName = "Legolas";
- heroAttack = "Bow";
- heroRace = "Wood Elf";
- Console.WriteLine("Name: {0}\nRace: {1}", heroName, heroRace);
- Console.WriteLine("Core Weapon : {0}", heroAttack);
- 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);
- int creatureStrength, creatureIntelligence, creatureDexterity, creatureConstitution, creatureCharisma, creatureWisdom, creatureMagicPoints, creatureHealth;
- creatureStrength = 25;
- creatureIntelligence = 30;
- creatureDexterity = 12;
- creatureConstitution = 20;
- creatureCharisma = 8;
- creatureWisdom = 8;
- creatureMagicPoints = 40;
- creatureHealth = 40;
- string creatureName, creatureAttack, creatureRace;
- creatureName = "Sauron";
- creatureAttack = "Mace";
- creatureRace = "Valar";
- Console.WriteLine("\n\nName: {0}\nRace: {1}", creatureName, creatureRace);
- Console.WriteLine("Core Weapon : {0}", creatureAttack);
- 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);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment