RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
DoubleX RMMV Substitute Edit

0 Members and 1 Guest are viewing this topic.

***
Scripter
Rep:
Level 36
Changelog
Code: [Select]
*      v1.00b(GMT 1500 21-12-2015):                                         
 *      1. Fixed typos and calling function via call instead of directly bug 
 *      v1.00a(GMT 1500 19-12-2015):                                         
 *      1. 1st version of this plugin finished                               

Authors
DoubleX

Credits
DoubleX(Optional)

Purpose
Lets you sets conditions determining the battler to substitute

Games using this script
None so far

Configurations
Code: [Select]
* @param substituteMissed
 * @desc Sets if substitutions will take place if the skill/item would miss
 *       This feature's not implemented yet but will possibly be implemented
 * @default false
 *
 * @param substituteEvaded
 * @desc Sets if substitutions will take place if the original target would
 *       evade the skill/item
 *       This feature's not implemented yet but will possibly be implemented
 * @default false
 *
 * @param substituteCountered
 * @desc Sets if substitutions will take place if the original target would
 *       counterattack/reflect the skill/item
 * @default false
 *
 * @param substituteCounter
 * @desc Sets if substitutions will take place if the skill/item's a
 *       counterattack/reflection of that of another action
 *       Might cause infinite counter loop with substituteBattlerCounter
 * @default false
 *
 * @param substituteBattlerMiss
 * @desc Sets if the skill/item can miss the substitute battler
 *       This feature's not implemented yet but will possibly be implemented
 * @default true
 *
 * @param substituteBattlerEvade
 * @desc Sets if the substitute battler can evade the skill/item
 *       This feature's not implemented yet but will possibly be implemented
 * @default true
 *
 * @param substituteBattlerCounter
 * @desc Sets if the substitute battler can counterattack/reflect the
 *       skill/item
 *       Might cause infinite counter loop with substituteCounter
 * @default true
 *
 * @param substituteBattlerFilters
 * @desc Sets the list of filters determining which battler to substitute
 *       Only movable battlers having the substitute flag will be considered
 *       The battlers passing the ith filter will proceed to the (i + 1)th one
 *       If only 1 battler passes the ith filter, all the remaining (i + j)th
 *       ones won't be used
 *       If no battler pass the ith filter, all battlers passing the (i - 1)th
 *       one will proceed to the (i + 1)th one
 *       Available filters:
 *       hpMp0 - The battler having 0 hp/mp
 *       immortal - The battler being immune to death
 *       maxCntMrf - The battler having the maximum cnt/mrf
 *       maxEvaMev - The battler having the maximum eva/mev
 *       maxPdrMdr - The battler having the maximum pdr/mdr
 *       maxHpMp - The battler having the maximum hp/mp
 *       maxGrd - The battler having the maximum grd
 *       maxCev - The battler having the maximum cev
 *       All unavailable filters in the list will be ignored
 *       The battler having the smallest party/troop member index will be the
 *       substitute battler if more than 1 battlers pass all filters in the
 *       list
 * @default hpMp0 immortal maxCntMrf maxEvaMev maxPdrMdr maxHpMp maxGrd maxCev

Plugin Calls
Code: [Select]
*    # Configuration manipulations                                           
 *      1. $gameSystem.substituteEdit.param                                   
 *         - Returns the value of param listed in the plugin manager         
 *      2. $gameSystem.substituteEdit.param = val                             
 *         - Sets the value of param listed in the plugin manager as val     
 *         - All $gameSystem.substituteEdit.param changes will be saved       

Prerequisites
Abilities:
1. Little Javascript coding proficiency to fully utilize this plugin

Terms Of Use
You shall keep this plugin's Plugin Info part's contents intact
You shalln't claim that this plugin's written by anyone other than DoubleX or his aliases
None of the above applies to DoubleX or his/her aliases
« Last Edit: December 23, 2015, 07:27:21 AM by DoubleX »

***
Scripter
Rep:
Level 36
Updates
Code: [Select]
*      v1.00b(GMT 1500 21-12-2015):                                         
 *      1. Fixed typos and calling function via call instead of directly bug