YEP CTB battle system and guarding bug

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
1,876
Reaction score
776
First Language
French
I've noticed that when a character guards, they will stop guarding:
a) if another character plays just after
b) after taking 1 (and only 1) hit from the enemy
I personally find that pretty stupid. A character IMO should keep guarding until they play again. Also, guarding doesn't seem to reduce the damage at all, like it's not even implemented.
So I was wondering if I'm doing something wrong with this plugin and in case I'm not, is there a way to edit it so that guard lasts for a "full turn"?

EDIT: if that helps, I've also noticed adding the Guard feature (same category as "substitute", "autoplay" etc), then the character will guard... all the time... which is just as equally buggy IMO.
That said, the enemy damage IS reduced, this time.
 
Last edited:

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
355
Reaction score
139
First Language
english
Primarily Uses
RMMV
guard command just applies state 2. if u changed state 2 in any way that is changing what guard is doing. and the guard special flag uses a default formula to calculate damage reduction.
something like dmg / (2*guard effect rate) so by default guard lasts 1 turn and halves damage
so make sure your state 2 has guard special flag, 1 turn duration, and isnt removed by damage
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
12,961
Reaction score
13,317
First Language
English
Primarily Uses
RMVXA
You'll have to check the state duration. CTB uses a tick based system so the state needs to last enough ticks for it to do what you want.

Also sadly CTB by Yanfly is no longer supported, so that could be some of the issue here as well.
 

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
1,876
Reaction score
776
First Language
French
Thank you, it's clearer now. It does need a bit of re-adjusting then.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Posts

Latest Profile Posts

Anyone have advice for recruiting friends to bugtest with you? I had some buddies volunteer without me asking, and we agreed on dates and times... and they all just flaked...
A mousefolk sprite I made, I think I did good.
Discovering math. functions for damage formulas was one of the greatest things for me.
It's very useful for balancing skills to work in a variety of possible circumstances.
For example if you have a skill that is supposed to work for both mages and warriors:
Code:
Math.max(a.atk * 2 - b.def, a.mat * 2 - b.mdf)
SpaceX: First-ever successful (manned) commercial spaceflight!! In these terrible and self-sabotaging times for the world, that's a ray of excitement and hope I needed badly.

Forum statistics

Threads
98,020
Messages
948,585
Members
129,276
Latest member
abhikhurana
Top