Quote Originally Posted by Flareboy323 View Post
That's actually extremely helpful, thank you.

Also, to the others:

What the big picture is:

I need this for the game/game engine I'm working on.

The class (Game-wise, not programming-wise) has a perk that gives it x2 damage if it's holding a dagger.

I would need to make a statement to check if the x2 damage should be activated or not.

If playerweaponclass = light weapon //if the player has a light weapon
then
if playerweaponspec = dagger //check if that light weapon is a dagger
then
playerattack = playerattack * 2 //if it is, multiply the player's attack by 2

Where playerattack is the weapon's attack, the player's base attack stat, and any other additional attack stats from items all combined into one value (all added up)

I'd be happy to give another example if that STILL isn't clear enough, haha.
Sort of what I thought you were doing.

Yeah for this I'd recommend using OOP concepts like we've all been saying.
Inheritance is a big part of OOP and the main thing you're referring to.

Best of luck on the project.