Save-Point
DoubleX RMVXA Confusion Edit - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: DoubleX RMVXA Confusion Edit (/thread-4956.html)



DoubleX RMVXA Confusion Edit - DoubleX - 01-24-2014

DoubleX RMVXA Confusion Edit
Version: v1.02f
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.


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

[Image: bandicam2014-01-0212-30-18-453.jpg]

[Image: bandicam2014-01-0212-30-28-750.jpg]

Script

"script"

Instructions

Open the script editor and put this script into an open slot between Materials and Main. Save to take effect.

FAQ

None

Compatibility

Scripts aliasing or rewriting method:
- friends_unit, opponents_unit, prepare or make_targets 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


Credits and Thanks

None

Author's Notes

None

Terms and Conditions

None other than not claiming this script as created by anyone except DoubleX or his alias


RE: DoubleX RMVXA Confusion Edit - DoubleX - 07-21-2015

Updates
v1.02d(GMT 1400 7-7-2015):
- Improved this script's efficiency and readability


RE: DoubleX RMVXA Confusion Edit - DoubleX - 06-06-2020

Updates
v1.02f(GMT 0200 6-6-2020):
- Fixed actions having no targets not executing bug