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 Confusion Edit

0 Members and 1 Guest are viewing this topic.

***
Scripter
Rep:
Level 36
Changelog
Code: [Select]
*      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                               

Authors
DoubleX

Credits
DoubleX(Optional)

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

Games using this script
None so far

Notetag
Code: [Select]
*    # 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
Code: [Select]
*    # 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
https://www.youtube.com/watch?v=NCVMdR7HFls

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: January 30, 2016, 07:39:02 AM by DoubleX »

***
Scripter
Rep:
Level 36
Updates
Added this video:
https://www.youtube.com/watch?v=NCVMdR7HFls
Code: [Select]
*      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