- Joined
- Oct 29, 2018
- Messages
- 9
- Reaction score
- 0
- First Language
- Português
- Primarily Uses
- RMXP
Hi guys,
In my project using RPG Maker XP, I wat use 2 HP counters; the HP, and other, called EP. I search all functions for HP, and duplicate, just renaming for EP, and scripting the battle for decide when remove from each counter. The enemies can have just one counter, but for less headache (aka less knowledge), I duplicate too, but take just from HP counter, the EP counter is useless for enemies. But I get an error on Game_Actor;
In line "n *= $data_states[ i ].maxep_rate / 100.0", I dont have this attribute, and I cant find where I can add or how I can edit the class State. I tried to understand how use this script, to use other solution/code that replace this without problem, but I dont know what I can do. I get the error during the battle. I can replace this with other code, or create a manual array (with what kind of data exactly?), or edit this class?
Thanks for reading
In my project using RPG Maker XP, I wat use 2 HP counters; the HP, and other, called EP. I search all functions for HP, and duplicate, just renaming for EP, and scripting the battle for decide when remove from each counter. The enemies can have just one counter, but for less headache (aka less knowledge), I duplicate too, but take just from HP counter, the EP counter is useless for enemies. But I get an error on Game_Actor;
#--------------------------------------------------------------------------
# * Get Maximum EP
#--------------------------------------------------------------------------
def maxep
n = [[base_maxep + @maxep_plus, 1].max, 9999].min
for i in @states
n *= $data_states[ i ].maxep_rate / 100.0
end
n = [[Integer(n), 1].max, 9999].min
return n
end
# * Get Maximum EP
#--------------------------------------------------------------------------
def maxep
n = [[base_maxep + @maxep_plus, 1].max, 9999].min
for i in @states
n *= $data_states[ i ].maxep_rate / 100.0
end
n = [[Integer(n), 1].max, 9999].min
return n
end
In line "n *= $data_states[ i ].maxep_rate / 100.0", I dont have this attribute, and I cant find where I can add or how I can edit the class State. I tried to understand how use this script, to use other solution/code that replace this without problem, but I dont know what I can do. I get the error during the battle. I can replace this with other code, or create a manual array (with what kind of data exactly?), or edit this class?
Thanks for reading

