RPG Maker Forums

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;
#--------------------------------------------------------------------------
# * 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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top