im creating new atributtes on RMXP, i create one called "vit" to represent the vitallity..
but i got an error
i created some methods
On Game_Actor
PS: I addicted a variable on "Setup(actor id)" called @vit_plus = 0
and a method in game_battler
PS2: In Game_Battler i addicted too a variable @vit_plus = 0
But i got an error
whats wrong?
but i got an error
i created some methods
On Game_Actor
Code:
#--------------------------------------------------------------------------
# - Definição da Base de Vitalidade
#--------------------------------------------------------------------------
def base_vit
n = 5
return [[n, 1].max, 999].min
end
PS: I addicted a variable on "Setup(actor id)" called @vit_plus = 0
and a method in game_battler
Code:
#--------------------------------------------------------------------------
# - Definição da Vitalidade
#--------------------------------------------------------------------------
def vit
n = [[base_vit + @vit_plus, 1].max, 999].min
n = [[Integer(n), 1].max, 999].min
return n
end
PS2: In Game_Battler i addicted too a variable @vit_plus = 0
But i got an error
whats wrong?