Welcome to PGMV! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
FTKR Battle Abort Conditions - FTKR_BattleAbortConditions.js
Plugin desc : v1.0.0 When the set conditions are met, the battle will be stopped and you will win or lose.
License : MIT License
Author : Futokoro
Desc page : https://github.com/munokura/futokoro-MV-plugins
Download Page : https://raw.githubusercontent.com/munokura/futokoro-MV-plugins/refs/heads/master/FTKR_BattleAbortConditions.js
File name : FTKR_BattleAbortConditions.js
Help of plugin :
@plugindesc v1.0.0 When the set conditions are met, the battle will be stopped and you will win or lose. @author Futokoro @url https://github.com/munokura/futokoro-MV-plugins @license MIT License @help English Help Translator: munokura This is an unofficial English translation of the plugin help, created to support global RPG Maker users. Feedback is welcome to improve translation quality (see: https://github.com/munokura/futokoro-MV-plugins ). Original plugin by Futokoro. Please check the URL below for the latest version of the plugin. URL https://github.com/futokoro/RPGMaker ----- ----------------------------------------------------------------------------- Overview ----------------------------------------------------------------------------- When certain conditions are met, the battle will be aborted and a victory or defeat will result. You can set the conditions by executing the following plugin command. 1. Setting the Victory Abort Condition BAC_SET_ABORT_WIN script By setting the condition expression (script) in script format, the battle will be aborted and a victory will result. Note that the condition expression cannot contain spaces. This setting will apply to all future battles. Example) BAC_SET_ABORT_WIN $gameTroop._turnCount>=5&&BattleManager.isTurnEnd() After 5 turns have passed, the battle will be won at the end of the turn. Obtain the number of turns elapsed with $gameTroop._turnCount, and determine whether the turn has ended with BattleManager.isTurnEnd(). To initialize the victory abort condition, execute the following plugin command. BAC_CLEAR_ABORT_WIN 2. Setting Loss Abort Conditions BAC_SET_ABORT_LOSE script By setting the condition expression (script) in script format, the battle will be aborted and the player will lose. Note: The condition expression cannot contain spaces. This setting applies to all future battles. Example) BAC_SET_ABORT_LOSE $gameActors.actor(1).isDead() The character with actor ID 1 will lose if they are unable to fight. To initialize the defeat abort condition, execute the following plugin command: BAC_CLEAR_ABORT_LOSE ----------------------------------------------------------------------------- !! Key Item Notice!! ---------------------------------------------------------------------------- The conditions you set will be valid for all battles until you initialize them. Therefore, even in encounter battles, fulfilling the conditions will result in a win or loss. Execute the initialization command as appropriate. ----------------------------------------------------------------------------- Setup Instructions ----------------------------------------------------------------------------- 1. Add this plugin to the "Plugin Manager." ----------------------------------------------------------------------------- License for this Plugin ----------------------------------------------------------------------------- This plugin is released under the MIT License. Copyright (c) 2018 Futokoro http://opensource.org/licenses/mit-license.php Plugin Publisher https://github.com/futokoro/RPGMaker/blob/master/README.md ----------------------------------------------------------------------------- Change History ----------------------------------------------------------------------------- v1.0.0 - February 12, 2018: First version created -----------------------------------------------------------------------------