DoubleX RMVXA Confusion Edit v1.02e
by DoubleX
Introduction
If a battler has inflicted states with restrictions "attack an enemy", "attack anyone" or "attack an ally", he/she/it'll attack the respective targets via autobattle like actions with the autobattle flag unchanged.
This is done by reversing his/her/its identifications of allies and enemies(allies are identified as enemies and vice versa) with 50% and 100% chance with "attack anyone" and "attack an ally" respectively.
The battler won't just use "Attack"(skill #1), but instead will use all available skills. Actors will randomly pick actions as if they've autobattle flags; Enemies will pick actions according to their action patterns.
Spoiler#------------------------------------------------------------------------------| # * (v1.01a+)Notetag <confusion edit> for states | # To make a state with those restrictions have edited confusion effects, put| # the above notetag into that state's notebox in the database. | #------------------------------------------------------------------------------| # * (v1.02a+)Notetag <exclude self> for states | # To make battlers with an edited confusion state never target themselves, | # put the above notetag into that state's notebox in the database. | # This noteag only works on skills picking a single non-random target | #------------------------------------------------------------------------------| module DoubleX_RMVXA module Confusion_Edit #------------------------------------------------------------------------------| # * (v1.01a+)Always_Confusion_Edit, default = false | # Notetags will be ignored and all states with those restrictions will have | # the edited confusion effects if Always_Confusion_Edit is true | #------------------------------------------------------------------------------| Always_Confusion_Edit = false #------------------------------------------------------------------------------| # * (v1.02a+)Always_Exclude_Self, default = false | # Notetags will be ignored and all states with those restrictions will stop | # the battlers from targeting themselves if Always_Exclude_Self is true | # This setting only works on skills picking a single non-random target | #------------------------------------------------------------------------------| Always_Exclude_Self = false end # Confusion_Edit end # DoubleX_RMVXA
Features
Use of notetags(requires knowledge of notetag usage) to set specific states with those restrictions to have the edited confusion effects
A way to set all states with those restrictions to have edited confusion effects without using notetags(and ignoring them)
Screenshots
Spoiler
How to use
Open the script editor and put this script into an open slot between Materials and Main. Save to take effect.
FAQ
None
Credit and Thanks
DoubleX(Giving me credit is completely optional)
No terms of use other than not claiming this script as created by anyone except DoubleX or his alias
Compatibility
Scripts aliasing or rewriting method:
- evaluate_item_with_target, friends_unit, opponents_unit, prepare, valid?, make_targets, confusion_target, targets_for_opponents or targets_for_friends under class Game_Action
- make_actions under class Game_Actor
may have compatibility issues with this script
Place this script above those aliasing any of these methods if possible
Changelog
v1.02e(GMT 0100 13-8-2015):
- Fixed some syntax errors and typos
v1.02d(GMT 1400 7-7-2015):
- Improved this script's efficiency and readability
v1.02c(GMT 0000 2-6-2014):
- Fixed bugs on adding stuff other than damage in custom damage formula
v1.02b(GMT 0300 22-3-2014):
- Fixed bugs on <exclude self> notetag implementations
v1.02a(GMT 0600 21-3-2014):
- Added <exclude self> notetag
v1.01b (GMT 0000 17-1-2014):
- Methods are aliased rather than rewritten
v1.01a (GMT 0000 3-1-2014):
- Added <confusion edit> notetag to enable confusion edit for states
v1.00a (GMT 1600 1-1-2014):
- 1st version of this script finished