Theo - Taunt and Hide MZ

About:
Adds taunt and hide mechanics.

When the actor is taunting, all single attack is directly aimed to them
When the actor is hiding, no single attack will target them
When the enemy is taunting, you can only target them
When the enemy is hiding, you can not target them

All of those mechanics are ignored when the skill is an area effect

How to use:
Put <taunt> or <hide> in the notebox.
You can use it literally anywhere. From states, equip, class, actor/enemy notes.
Do note that if you put them in the actor/class note box, they will always taunt/hide with no way of removing it.

Some things to note:
Q: What if the battler has both <taunt> and <hide>?
A: The <hide> tag takes priority

Q: What if there is more than one battler that is taunting.
A: The random target (that is taunting) will be rolled based on their TGR.

Q: What if all the battlers are hidden?
A: If there is no target (due to being hidden by the trait), all of them will be automatically exposed and will be targetable

Q: How do I tell if the battler is taunting/hiding? They don't have a visual indication, explanation, or anything
A: That is your problem. Go seek a plugin that does the thing. This plugin only deals with the mechanic. Not visual, or the user interface.

Q: Is this plugin compatible with <insert any target manager plugin>
A: Maybe, maybe not. I only overwrite the random target function. If the plugin does a similar thing, then it probably won't work. I might want to take a look and see if I can do something for compatibility as long as I could see the code (it is not paywalled/obfuscated)

Download:
Save as Theo_TauntHideTraits.js

Terms of Use:
Nice plugin! It's working with the basic visustella plugins too.
can i use this?
Why not?
How do I add this to my game?
Howdy! I realize this is an old post, but this plugin was a lifesaver for a test I'm trying to do. I'm curious though; when attacking an enemy who has the taunt state active, it still gives the choice to choose other enemies even though you can't actually attack them. Is it possible to set it so that players automatically pick the taunting user?
The auto target would be UI/UX aspect, which I choose not to deal with it to maximize the compatibility with other plugins. However, if you want to modify or ask someone to modify my plugin and then reposted the edited version of it, you have my permission.
worked perfectly. use it in a effect preferrably. when the effect is over, the mechanics ends too!

Original thread: https://forums.rpgmakerweb.com/threads/theo-taunt-and-hide-mz.133122/