Iavra Auto States

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
Calls update on battle start and on battle end (twice on start). Nowhere else.
 
Last edited by a moderator:

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
Okay, then try modifying UPDATE like this:

Code:
UPDATE = [  :battle_start,  :battle_end,  :advance_turn]
 
Last edited by a moderator:

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
It now works! Thank you.
 

C.W. Plainview

Veteran
Veteran
Joined
Nov 14, 2012
Messages
143
Reaction score
45
First Language
English
Primarily Uses
Is there a way to possibly implement an update method that works mid-turn? Possibly one that automatically detects changes in HP, MP, and TP? I love this script, but I wish I could have auto states apply more automatically instead of having to wait for the next turn.
 
Last edited by a moderator:

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
Well, i haven't done Ruby in a long time, so probably can't help you without spending some time getting into it again, but you could always try manually calling this method:

Code:
IAVRA::STATES.update
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I have an actor where an auto state kicks in when he's under 35% HP. However, if he is already afflicted with another state e.g. poison, attack down (when it's part of a state and not the standard debuff) then I get the following error message:

line 144: ArgumentError occurred
wrong number of arguments (2 for 1)

As the fact that he has a state inflicted by an enemy is likely to be part of the reason the HP is below 35%, this is going to kick in pretty often.

Is there a fix for this?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top