opaattack

Villager
Member
Joined
Mar 18, 2021
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I want to make a state that improves the effectiveness of the guard ability. Is it possible to make the guard state more increase defense more if active while affected this other state?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,168
Reaction score
7,374
First Language
Indonesian
Primarily Uses
RMVXA
The easiest solution would be to change the skill ID 2.
Instead of applying guard state, you play around the damage formula, determining if a certain state exists, then you apply a different state, a stronger state.

Do you know how to play around with the damage formula?
 

opaattack

Villager
Member
Joined
Mar 18, 2021
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMVXA
The easiest solution would be to change the skill ID 2.
Instead of applying guard state, you play around the damage formula, determining if a certain state exists, then you apply a different state, a stronger state.

Do you know how to play around with the damage formula?
I know a bit about using the damage formula. I have a different skill that behaves differently if the target has a certain state. Can I apply states using the damage formula?
 

opaattack

Villager
Member
Joined
Mar 18, 2021
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Yes, use b.add_state(n) to add state to the target and a.add_state(n) if it's for the user.
It almost works, now the word "NULL" appears over my character's head whenever they defend, and both defend states are applied when the other state is found, rather than just the one I want.
For reference, my formula is if a.state?(7);a.add_state(13);else;a.add_state(3);end
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,168
Reaction score
7,374
First Language
Indonesian
Primarily Uses
RMVXA
Try to add 0 at the end of the formula if that would make a difference
if a.state?(7);a.add_state(13);else;a.add_state(3);end;0
It serves as a default damage value.

and both defend states are applied when the other state is found, rather than just the one I want.
For this, you need to remove add guard state in the skill effect.
 

opaattack

Villager
Member
Joined
Mar 18, 2021
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Try to add 0 at the end of the formula if that would make a difference
if a.state?(7);a.add_state(13);else;a.add_state(3);end;0
It serves as a default damage value.


For this, you need to remove add guard state in the skill effect.
Well, I sure feel like a goof for not noticing I forgot to remove adding guard to the skill effect. Thanks for that, however adding a 0 to the end of the code did not fix the "NULL" issue.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,168
Reaction score
7,374
First Language
Indonesian
Primarily Uses
RMVXA
In that case, go ahead to edit Yanfly Battle Engine, on POPUP_SETTING, remove the :nulled, edit it to be :nulled => "",
 

opaattack

Villager
Member
Joined
Mar 18, 2021
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMVXA
In that case, go ahead to edit Yanfly Battle Engine, on POPUP_SETTING, remove the :nulled, edit it to be :nulled => "",
Well, I suppose that works. Thanks for the help!
 

Latest Threads

Latest Profile Posts

Marquise* wrote on KazukiT's profile.
*cybermental hugs for the rainy days*
Thanks for the visit
Test thử cái nào! : nụ cười:
Các bác sĩ cho biết thêm:
How funny would it be if one of us remade "The Town With No Name" in RPG Maker?
I miss my friends from the work experience program... maybe once I move, I'll have a little party with them. I'll even show them my games and perhaps my puppets. Did you know I make working puppets?
Episode 18 is here. We're still making a game in RPG Maker MZ. This week, let's make that cliff map look awesome with the new tiles we made last week! Join us live, now!

Forum statistics

Threads
111,218
Messages
1,059,364
Members
144,478
Latest member
eveque
Top