This might sound like a stupid question, but what's the difference between these?

I know this is probably a REALLY stupid question, given that I should know this by now, but...


In the States section of the Database, what's the difference between Action End and Turn End? What's an example of either?
There are multiple actions in each turn. Each action has 5 steps, Setup, Whole, Target, Follow, and Finish. Each serves a specific goal, and happens at a different time in the skill/item processing. A brief explanation from Yanfly's page:


Each skill and item consists of five different action sequences. They are as follows:


1. Setup Actions
They prepare the active battler before carrying out the bulk of the action and its individual effects. Usually what you see here are things such as the active battler moving forward a bit, unsheathing their weapon, etc. This step will occur before the active battler expends their skill or item costs.


2. Whole Actions
These actions will affect all of the targets simultaneously. Although this section does not need to be used, most actions will use this for displaying animations upon all enemies. This step occurs after skill and item costs.


3. Target Actions
This section will affect all of the targets individually. Used primarily for physical attacks that will deliver more personal forms of damage. Actions that occur here will not affect other targets unless specifically ordered to do so otherwise.


4. Follow Actions
This section will dedicate towards cleanup work after the individual targeting actions. Here, it’ll do things such as removing immortal flags, start up common events, and more.


5. Finish Actions
This section will have the active battler close up the action sequence. Usually stuff like running waits and holds at the last minute for skills and items, moving back to place, and others.


Once all of those actions have been completed, that characters turn ends.
As far as I know. It was at least this way ith VX Ace, and I don't see why they would change it drastically:


Action End: After the actor moves. I.e., I'm on fire. My burning state has one turn left. I attack, I take the burn damage, I am now no longer on fire.


Turn End: After all actors move. I.e., I'm on fire. My burning state has one turn left. I attack, I take the burn damage. Rest of the actors attack. Turn ends, I am now no longer on fire.
If the state persists until action end, it will remove itself after the character finishes their attack that turn. If it removes itself at turn end, your character will have the state applied to them until all characters have finished their turn. 
Err. Yup. Ignore my answer. That's something else.
Thanks!


Sorry for such a dumb question.


Don't worry, Ugouka, that's still useful to remember!
As far as I know. It was at least this way ith VX Ace, and I don't see why they would change it drastically:


Action End: After the actor moves. I.e., I'm on fire. My burning state has one turn left. I attack, I take the burn damage, I am now no longer on fire.


Turn End: After all actors move. I.e., I'm on fire. My burning state has one turn left. I attack, I take the burn damage. Rest of the actors attack. Turn ends, I am now no longer on fire.



By default, all "regenerate" effects (which includes negative regeneration due to a state) occur at the end of the turn. Plugins would be required to have "regenerate" effects occur after the action.


It's also worth noting that "regenerate" effects are processed before the state is removed if set to Turn End. Slip damage or regeneration states are best set to "Turn End" for this reason, otherwise the number of times the "regenerate" effect triggers can be affected by action order.
By default, all "regenerate" effects (which includes negative regeneration due to a state) occur at the end of the turn. Plugins would be required to have "regenerate" effects occur after the action.


It's also worth noting that "regenerate" effects are processed before the state is removed if set to Turn End. Slip damage or regeneration states are best set to "Turn End" for this reason, otherwise the number of times the "regenerate" effect triggers can be affected by action order.



Now is this considering the program's default regenerate/slip damage (i.e., HGR +/- x%), or plug-in regenerate/slip damage which uses a damage formula? Just trying to clear this up for myself now haha
Now is this considering the program's default regenerate/slip damage (i.e., HGR +/- x%), or plug-in regenerate/slip damage which uses a damage formula? Just trying to clear this up for myself now haha



It is the default behaviour for HRG/MRG/TRG effects.


As for the plugin, it would depend on the plugin itself. I imagine most plugins for formulas for "regenerate" effects would still process them at the end of a turn. One of Yanfly's states plugins does allow to have effects that trigger after an action, so that can be used for regeneration/slip damage after an action.
Cool! So I'll ask Ellye if his/hers does it after action or at the end of a turn. Thanks 🙂

Original thread: https://forums.rpgmakerweb.com/threads/this-might-sound-like-a-stupid-question-but-whats-the-difference-between-these.59909/