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,175
Reaction score
7,401
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,175
Reaction score
7,401
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,175
Reaction score
7,401
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

Hey everyone! No Studio Blue RPG Maker Critiques Stream today! But you can always check the playlist for old streams you've missed!

I ran out of paper sheets to draw, so I guess I'm forced to do digital for a while now...
x778xt8.jpg

Still haven0t found a colouring style that I like :kaoswt:
woods.pngshop.jpgboss.jpgRoom.png

Mapping is becoming so much easier!
FirestormNeos wrote on Neikoku's profile.
the cat in your profile picture is adorable
Are the default-size "chibi" sprites really a bad thing for a project? I'm not planning to sell my game anyway but I was wondering if they were as hated as some videos seem to claim...

Forum statistics

Threads
111,431
Messages
1,061,084
Members
144,797
Latest member
gh05tinblack
Top