Pokemon 3000
huh?
- 70
- Posts
- 19
- Years
- Germany
- Seen Oct 15, 2013
I've tried to adding a new move effect, that's power is depending on the beauty-value of the attacker. But it doesn't work, so I guess I must first create an variable, that is pointing to the beauty-value. Here's the code that I have tried:
It's very basic yet, becauce I'm testing the function first and afterwards I espand the function...
Could anyone tell me what I must change, to work it properly? Thanks.
Code:
class PokeBattle_Move_133 < PokeBattle_Move
def pbBaseDamage(basedmg,attacker,opponent)
basedmg = 10
basedmg = 200 if attacker.beauty >= 200
return basedmg
end
end
It's very basic yet, becauce I'm testing the function first and afterwards I espand the function...
Could anyone tell me what I must change, to work it properly? Thanks.