A newbie question, but I can't figure it out (and having a hangover doesn't help).
How do I make the Guard skill actually reduce damage by let's say 50% ?
Where do you set the formula?
That's done by default with the guard command, as long as everyone has a guard rate of 100% (which they should be default). The way guard works is it calculates the damage by the following:
Damage taken / (1 + guard rate). If the guard rate is 100%, then you will take half damage, as that becomes damage taken / 2.
You don't have to set it up. By default, everyone has a guard rate of 100% unless you add a state that changes it. Now if you wish to change it, it is under features -> Sp parameter -> GRD. Note though the number you enter is multiplied to the existing guard rate though (as indicated by the * by the number you enter), so nly use this if you want to change it.
Now if it is not working for some reason, and you are not getting 50% damage reduction by default, this probably means you changed skill 2 in the database, as that is by default what is called when you guard. Make sure skill 2 is set up to handle guarding, and that it calls the state you want to add when you guard. That state should have special flag, guard. If it doesn't, it won't work.
Thanks again! It looks like there is a different problem then, because the skill and state (#2) are both set to Guard and haven't been touched, however Guard still doesn't do anything. I wonder if one of the plugins are interfering somehow. I'll try disabling those and see if it makes a change.
Also make sure skill 2 is still set to guard as well while doing that. Now, if you can't find it, you may wish to post the list of your plug-ins and have us move this thread to Plug-in support, so someone there can take a look at it.
When using alternate battle systems like ATB, CTB, or the like, make sure your states expire at the correct times. The damage reduction from Guard is tied to the Guard state, and Yanfly's ATB, for example, does strange things to state timers if you don't properly set up tick-based statuses. Check the plugin parameters for battle engine core, read the help files, and make sure you have the right timing set on your states.
Simple explanation: Normally the game works by a single, complete "turn" happening after you enter your commands, before you enter commands again. To make alternate battle systems people have to change that concept, so a lot of defaults don't work the way you'd expect. Yanfly's setup uses 'ticks' for a lot of timing instead, based on the frequency of the ATB bar going up.
Right. I thought I heard somewhere that the ATB system ends turns at the end of your current turn, so for it to work right, guard may have to be set to 2 turns instead of 1. Still end of turn though.
I tried changing Guard so that it ended after damage as well, but Guard still simply disappeared after a brief pause with not other movement of any ATB bars. I tried the 2 turn trick as well, and still no dice.
Even if that worked for Guard, how exactly are you supposed to get states to work with ATB properly?
Alter this line in the plugin?
Math.min(200, BattleManager.lowestBaseAgi() * 8)
Changing 8 to 50 didn't seem to have a noticeable effect...
Did you try changing the "duration in turns"?
I did but it didn't do anything.
Try changing to Actions then
Ok, so I got it working. I didn't have an icon so it seemed like it ended as soon as it was cast... -_-
So, my issue now is that turn limit settings don't take into account fast characters very well. If one character has double the agility of another, then he just ends guard way before the enemy ever strikes. Also, if he had status effects, they would come off way sooner than I might intend. If I made the states last longer it would globally affect slower, harder hitting characters in both better and worse ways depending on the state.
Is there a way I can tie state lifespan to a standard clock? Or adjust it to take into account agility?
Well, the formula does take into account Agility, so that may give me just enough control. I should be able to set up a (somewhat) self-correcting adjustment to the Full Turn based on an individual's agility.
Does a "turn" affect anything else besides states when it comes to ATB?