DoubleX RMMV Confusion Edit

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
Note
This plugin's available for commercial use

Purpose
Lets you set some states to reverse the ally/foe identification

Games using this plugin
None so far

Notetag
JavaScript:
*    # State Notetags:                                                     
*      1. <confusion edit: reverse, excludeSelf>                           
*         - Sets the confusion state to reverse the ally/foe identification
*           only instead of restricting the battler to be merely using the 
*           1st skill in the database if reverse is true and the actions   
*           aren't forced                                                   
*         - Reversal will never take place for state Restriction as Attack an
*           Enemy nor skill/item scope as The User                         
*         - Reversal will have 50% chance to take place for state Restriction
*           as Attack Anyone                                               
*         - Reversal will always take place for state Restriction as Attack
*           an Ally                                                         
*         - Sets the confusion state to make the battler never targeting self
*           if excludeSelf is true and the actions aren't forced           
*         - Only the effective notetag with the highest priority will be used

Plugin Calls
JavaScript:
*    # State manipulations                                                 
*      1. meta.confusionEdit                                               
*         - Returns the confusion edit reverse and excludeSelf flag in the 
*           form of { reverse: reverse, excludeSelf: excludeSelf }         
*      2. meta.confusionEdit = { reverse: reverse, excludeSelf: excludeSelf }
*         - Sets the confusion edit reverse and excludeSelf flag in the form
*           of { reverse: reverse, excludeSelf: excludeSelf }               
*         - All meta.confusionEdit changes can be saved if                 
*           DoubleX RMMV Dynamic Data is used

Video

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
JavaScript:
 *      v1.00d(GMT 0200 6-6-2020):
 *      1. Fixed actions having no targets not executing bug
 *      v1.00c(GMT 0300 9-3-2020):
 *      1. Fixed undefined subject in hasValidOriginalTargets
 *      v1.00b(GMT 0800 30-1-2016):                                           
 *      1. Fixed missing return in targetsForOpponents and targetsForFriends 
 *      2. Fixed undefined target in targetsForReversedExcludeSelf due to typo
 *      3. Fixed infinite loop with excludeSelf when subject's always selected
*      v1.00a(GMT 0800 3-1-2016):                                           
*      1. 1st version of this plugin finished

DoubleX RMMV Confusion Edit
 
Last edited:

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
Updates


Added this video:







Code:
 *      v1.00b(GMT 0800 30-1-2016):                                           
 *      1. Fixed missing return in targetsForOpponents and targetsForFriends  
 *      2. Fixed undefined target in targetsForReversedExcludeSelf due to typo
 *      3. Fixed infinite loop with excludeSelf when subject's always selected
 
Last edited by a moderator:

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
Updates
JavaScript:
 *      v1.00d(GMT 0200 6-6-2020):
 *      1. Fixed actions having no targets not executing bug
 *      v1.00c(GMT 0300 9-3-2020):
 *      1. Fixed undefined subject in hasValidOriginalTargets
 

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
167
Reaction score
64
First Language
French
Primarily Uses
RMMV
Thank you for this script! Just saved me hours of fiddling with code and skills to prevent self-attack

Sadly, I get a RangeError: Maximum call stack size exceeded (doublex_rmmv_confusion_edit_v100d.js:173:25)

Also tried changing parameters to True, True and also False, False...
 
Last edited:

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
It seems to me that it's a compatibility issue, so I'd like you to send me your project(preferably via pm) or at least list the plugins you're using with their ordering preserved :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top