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,212
Reaction score
7,487
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,212
Reaction score
7,487
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,212
Reaction score
7,487
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 Posts

Latest Profile Posts

Add Smart Help Window Popup to Items and Skills | RPG Maker News #79

Is it unusual to think your own music is strange? xD I honestly don't know if I'm gonna use any of them :p
I've been keeping my cards fairly close to my chest, but Team Muxedo Task is proud to present the first offering for our contest entry: the title screen background.1624496085488.png

Forum statistics

Threads
112,516
Messages
1,068,842
Members
146,194
Latest member
collegestory
Top