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,211
Reaction score
7,484
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,211
Reaction score
7,484
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,211
Reaction score
7,484
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

Quite the versatile cast so far :p

chars.PNG

Edit: Sprites are made by Alexdraws and TheMightyPalm. I just edited them.
Degica Games Turn Komodo | RPG Maker News #77

Well, rats. Was really looking forward to trying out FPS Creator, but trying to install and set it up was pretty much impossible for my tiny brain to comprehend. So much for that, then.
Ah, home once more! I think I can safely work on my games now.
Let's hope power remains on for the day

Forum statistics

Threads
112,414
Messages
1,068,136
Members
146,065
Latest member
TrooperEddie
Top