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 Posts

Latest Profile Posts

2dfloor.png
What a fun tileset I've got here so far!
Minecraft Tiles, Maid Day, Custom Menu, Retry at GameOver, Save in Appdata | RPG Maker News #36

side view special bust.png
Reworking the art for the 'special busts' in important game dialogue. Potentially replacing the more 'dead-on' look of the original:
original.png
Me: Imma work on my game! Let's get some progress done
Me, five minutes later smoking a cigarette: *screams into the void*
Just got back from work... I got to recommend a dish I liked to a group of senior ladies, and they said they'd order it for dessert! What was it? CHURROS! It's one of my favorite desserts at my workplace.
What's your favorite dessert? I'll eat any pastry with cinnamon and sugar, but especially churros. And then there's chocolate... omg, so good!

Forum statistics

Threads
111,255
Messages
1,059,616
Members
144,536
Latest member
liondruid
Top