I have only one playable character who can wield any weapon. The thing is, I want the damage calculation to depend on what the character is wielding.
If it's a melee weapon he is using, damage is calculated on strength, weapon attack, enemies' strength and defense.
If it's a ranged weapon he is using, damage is calculated on dexterity, weapon attack, enemies' dexterity and defense.
If it's a magical weapon he is using, damage is calculated on intelligence, weapon attack, enemies' intelligence and magical defense. (example: wands)
How do i do this? How do I make the game find out what type of weapon the character is using? How do I categorize weapons?
If it's a melee weapon he is using, damage is calculated on strength, weapon attack, enemies' strength and defense.
If it's a ranged weapon he is using, damage is calculated on dexterity, weapon attack, enemies' dexterity and defense.
If it's a magical weapon he is using, damage is calculated on intelligence, weapon attack, enemies' intelligence and magical defense. (example: wands)
How do i do this? How do I make the game find out what type of weapon the character is using? How do I categorize weapons?