RPG Maker Forums

Hi there,

Each state has a set turn duration, but I was wondering if it can be extended via a scripts so they can last longer or shorter depending on the battle.

Once such problem is when using a move that gives you many positive states for one turn, but the states stand alone last for longer. The script would be used to change the duration accordingly.

I was wondering if there is a script that exists such as "extendstate([actor],[stateno.],[turnduration])" that would be able to alter the length of a state on any actor at when called.

I've noticed the code in the "Game_Battler" section of the script but I'm not sure how to link to an actor nor alter anything contained in it.

#--------------------------------------------------------------------------
# * Update State Turn Count
#--------------------------------------------------------------------------
def update_state_turns
states.each do |state|
@state_turns[state.id] -= 1 if @state_turns[state.id] > 0
end
end
Is something like this possible? I'm not sure how to tackle it. Many thanks in advance if someone can help.

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,038
Messages
1,018,467
Members
137,821
Latest member
Capterson
Top