marcel.makkink
Member
Hey folks,
Came across this line in Game_Battler 3 :
Now I was wondering if this could be modified per class.
As in only the Warrior class needs 'the' Strength, but the Hunter relies on Dexterity, a Mage on Intelligence and a Rogue on Agility.
To make it so each class has it's specific 'Strength Stat'.
For example an attacking Hunter, I was thinking of something along the lines of this:
But I'm just getting into Ruby again so.. yeah.
Any help is appreciated!
Came across this line in Game_Battler 3 :
Code:
atk = [attacker.atk - self.pdef / 2, 0].max
self.damage = atk * (20 + attacker.str) / 20
# Element?
self.damage *= elements_correct(attacker.element_set)
self.damage /= 100
Now I was wondering if this could be modified per class.
As in only the Warrior class needs 'the' Strength, but the Hunter relies on Dexterity, a Mage on Intelligence and a Rogue on Agility.
To make it so each class has it's specific 'Strength Stat'.
For example an attacking Hunter, I was thinking of something along the lines of this:
Code:
if $game_actors[class_id] == 2
self.damage = atk * (20 + attacker.dex) / 20
elsif .. etc
But I'm just getting into Ruby again so.. yeah.
Any help is appreciated!