DoubleX RMMV Substitute Edit

Note

This plugin's available for commercial use

Purpose

Lets you sets conditions determining the battler to substitute

Games using this plugin

None so far

Configurations

Spoiler
* @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

Spoiler
* # 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

Changelog

Spoiler
 *      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
DoubleX RMMV Substitute Edit v100b.rar
Updates

Code:
 *      v1.00b(GMT 1500 21-12-2015):                                           *      1. Fixed typos and calling function via call instead of directly bug
i wonder how this plugin works.
i wonder how this plugin works.
Did you try reading the instructions?
Did you try reading the instructions?
Yep. it crashes the game after you attack in battle. it does not work anymore or it gave too little instructions on setup.
Yep. it crashes the game after you attack in battle. it does not work anymore or it gave too little instructions on setup.
Your original post gave absolutely no indication that you had tried the plugin or that it had crashed. There's no way for anyone to know that.

It is entirely possible that the plugin doesn't work anymore, it is 3 years older than the latest version of MV - I'm not sure why you're trying this instead of TAA's Substitute thingy.

But if you want to use it and it crashes, you need to press F12 and post a screenshot of the Console tab.
Your original post gave absolutely no indication that you had tried the plugin or that it had crashed. There's no way for anyone to know that.

It is entirely possible that the plugin doesn't work anymore, it is 3 years older than the latest version of MV - I'm not sure why you're trying this instead of TAA's Substitute thingy.

But if you want to use it and it crashes, you need to press F12 and post a screenshot of the Console tab.
Got it, uhhhh well i already uninstalled it from the plugin list, so ill make a entire project dedicated to it, and show a empty console.

( also i know i gave no indicaton that i tried the plugin, i just wanted to see if anyone would respond before i go about saying the issue i had with the plugin, and then do further testing on the plugin so the creator, if they did care. know how to fix these issues in the latest engine.)

buttt by now i would have edited my response showing a console, so be sure to wait on that
Got it. i think its better to just well, make a new message instead

1685569716727.png

1685569733231.png
Got it. i think its better to just well, make a new message instead
We're not supposed to double post. If you have something to add and no one else has replied yet, you can just click the Edit button.

That does appear to be a blatant error in the code. Go to that line and change "realTarget" to "target".
That does appear to be a blatant error in the code. Go to that line and change "realTarget" to "target".
Thanks for your input and yes it's really a silly error 🙁
It is entirely possible that the plugin doesn't work anymore, it is 3 years older than the latest version of MV - I'm not sure why you're trying this instead of TAA's Substitute thingy.
Even myself have to admit that I'm not sure whether it works now, but unfortunately now I'm having a full-time job, so it'd be hard for me to allocate enough spare time to check and perhaps fix this plugin if there are further issues, so maybe the best bet is really what you said - just try another plugin doing the same things 🙂
Even myself have to admit that I'm not sure whether it works now, but unfortunately now I'm having a full-time job, so it'd be hard for me to allocate enough spare time to check and perhaps fix this plugin if there are further issues
And no insult intended! It was more directed at the poster above, to check dates on things. I haven't tested it at all - for all I know, with that typo fixed it might work perfectly.
Thanks for your input and yes it's really a silly error 🙁

Even myself have to admit that I'm not sure whether it works now, but unfortunately now I'm having a full-time job, so it'd be hard for me to allocate enough spare time to check and perhaps fix this plugin if there are further issues, so maybe the best bet is really what you said - just try another plugin doing the same things 🙂
Props to you on the full time job! But I only replied and tested the plugin because I seen a lot of plugins on the fourm that haven't been interacted with in their entirety on the fourm, and they may not of had people to test out the plugin at the time. So they just gave up for a bit of time but always had it at the back of their head

Original thread: https://forums.rpgmakerweb.com/threads/doublex-rmmv-substitute-edit.53296/