Press Turn Battle
Press Turn Battle 2.8ATT_Turan
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: FeaturesPress 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
https://forums.rpgmakerweb.com/attachments/1755359504115-png.347574/
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 CallsThese 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.
Example: BattleManager.pressTurn(2)
----------------------------------------------------------------------------
Code:
BattleManager.consumeHalfTurn(X)
Consumes X half turns. If there are no remaining half turns, full turns will be consumed.
Example: BattleManager.consumeHalfTurn(3)
----------------------------------------------------------------------------
Code:
BattleManager.consumeFullTurn(X)
Consumes X full turns. If there are no remaining full turns, it has no effect.
Example: BattleManager.consumeHalfTurn(2)
----------------------------------------------------------------------------
Code:
BattleManager.addHalfTurn(X)
BattleManager.addFullTurn(X)
These will add X full or half turns. Existing turns will be unaffected.
Examples:
Code:
BattleManager.addHalfTurn(3)
BattleManager.addFullTurn(2)
----------------------------------------------------------------------------
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.
本贴来自国际rpgmaker官方论坛作者:ATT_Turan处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/press-turn-battle.179602/
页:
[1]