Introduction
In this combat system, modeled after the Shin Megami Tensei games, the party starts with a number of turns per battle round. By default, this number equals the number of actors in the party.
When an offensive skill or item critically hits or strikes an elemental vulnerability (e.g. the target's Element Rate for that element is greater than 100%), it triggers a Press Turn. That causes only half of a turn to be consumed by the action, rather than the full turn.
Half turns are taken as normal, except there is no further benefit to triggering a Press Turn if only half turns remain. All actions will consume half turns when available.
The plugin allows for a graphical representation of the remaining turns via images in the corner of the screen. These can be a game icon or an image in the pictures folder. Half turns are represented by the image turning grayscale and half opaque.
Spoiler: Features
Press turns are automatically triggered by landing a critical hit or hitting a target with an element they're vulnerable to. Plugin parameters allow you to toggle the critical hit implementation as well as define the element rate that needs to be hit in order to trigger a press turn that way.
There are also plugin parameters to customize the turn display via choice of icon, using a custom image, or no display at all.
Spoiler: Screenshots
Spoiler: Notetags
<press>
A skill or item with this notetag will always trigger a press turn. Note this notetag is case-sensitive.
<free turn>
A skill or item with this notetag will not consume any of the party's turns when used. Note this notetag is case-sensitive.
Spoiler: Script Calls
These script calls are provided to be used in conjunction with troop events or other plugins like Yanfly's Skill or Buffs & States Cores to give greater control over the turns.
Code:
BattleManager.pressTurn(X)
复制代码
Converts X full turns into half turns. If there are no remaining full turns, half turns will be consumed.
These script calls are provided to aid with skill requirement notetags or other conditional effects.
Code:
BattleManager.numTurns()
复制代码
Returns the total number of turns, whether full or half.
Code:
BattleManager.numHalfTurns()
复制代码
Returns the total number of half turns.
Code:
BattleManager.numFullTurns()
复制代码
Returns the total number of full turns.
Terms and Credits
Free for non-commercial and commercial use. Credit ATT_Turan.
I have tested the basic functionality, please let me know if you encounter any errors. I will consider making compatibility patches if the other plugin is free to use (or one I own, such as a Yanfly product) and unobfuscated. Otherwise, other authors are free to modify this code to make it compatible with theirs so long as I am still credited.