I'm trying to access some values from a class, to assign it and show it when selected
10:24 08 Apr 2026

I'm very new to coding, so please, be understanding, my code might be quite wrong.

Imagine a pokemon game, where each pokemon has basic stats. So I'm trying to make a function that will call these 'pokemon and their stats to view them, and then a way to assign them to the player. Please, explain it to me like I'm 5, I never learnt coding, I'm doing it through Youtube and google, some of the terms used I dont understand.

Thank you for your patience.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ConsoleApp1;

namespace ConsoleApp1
{
    public class WeaponCalling
    {
        public void CallDagger()
        {
            Weapons weapon = new Weapons();
            weapon.Dagger();
            Console.WriteLine(weapon.Dagger());
        }
        public void CallSword()
        {
            Weapons weapon = new Weapons();
            weapon.Sword();
            return;
        }
        public void CallAxe()
        {
            Weapons weapon = new Weapons();
            weapon.Axe();
            return;
        }
        public void CallHammer()
        {
            Weapons weapon = new Weapons();
            weapon.Hammer();
            return;
        }
    }
    public class Weapons
    {
        string Name;
        int HP = 0;
        int Atk = 0;
        int Def = 0;
        int Spd = 0;
        int Spl = 0;
        string Ability;

        public void Dagger(string Name, int HP, int Atk, int Def, int Spd, int Spl, string Ability)
        {
            Name = "Dagger";
            HP = 9;
            Atk = 10;
            Def = 10;
            Spd = 19;
            Spl = 15;
            Ability = "Speed"; 
        }

        public void Sword(string Name, int HP, int Atk, int Def, int Spd, int Spl, string Ability)
        {
            Name = "Sword";
            HP = 11;
            Atk = 12;
            Def = 12;
            Spd = 16;
            Spl = 15;
            Ability = "Piercing"
        }
        public void Axe(string Name, int HP, int Atk, int Def, int Spd, int Spl, string Ability)
        {
            Name = "Axe";
            HP = 13;
            Atk = 14;
            Def = 14;
            Spd = 14;
            Spl = 15;
            Ability = "Boomeranxe"
        }
        public void Hammer(string Name, int HP, int Atk, int Def, int Spd, int Spl, string Ability)
        {
            Name = "Hammer";
            HP = 15;
            Atk = 16;
            Def = 15;
            Spd = 11;
            Spl = 15;
            Ability = "Big Chance";
        }
    }
}
c# game-development