Threat System v1.0
What does the script do?
The threat system adds a "smart" way for enemies to decide who to attack in battle.
How it works:
As actors deal damage and heal they build up a "threat" value. Whoever has the highest threat becomes the target of enemy attacks. (Normally "random" attacks.)
In battle, a small window is displayed to show how much threat each actor has accumulated to let the player plan accordingly.
The tactical part of the system is in the threat modifiers.
Some skills can cause more threat than normal attacks, actors/classes can have different threat modifiers,
specific elements can deal more or less threat than others etc etc.
Using this system you can effectively create "Tank" characters who are supposed to take the majority of the damage
in battles and also give skills to weaker characters to reduce the amount of threat they produce.
Extended Features List
(Details of usage explained better in the plugin help section)
Threat modifiers are split up into different categories to give you more ways to control threat.
Modifiers are added together, 1.0 is 100% 0.1 = 10%
This note tag will increase or decrease all threat caused by healing or damage.
This note tag will increase or decrease threat caused by damage.
This note tag will increase or decrease threat caused by healing.
Different elements can have different threat modifiers.
x = the element ID y = the modifier
Skill Note Tags
A skill with this tag automatically puts the user at the top of the threat table by 1 point.
Marsha has 150 threat. Harold uses a <taunt> skill. Harold now has 151 threat.
If a <taunt> skill ALSO has damage, the taunt is applied first then the extra threat from the damage is added afterwards.
This reverses the final threat done by the skill.
With this you can create a skill that deals 350 damage, and removes 350 threat.
A skill with this increases or decreases the threat modifier by x for this attack only.
State Note Tags
An actor with this state will appear to have 0 threat.
Note: Threat still continues to increase/decrease like normal.
An actor with this state will always be attacked regardless of threat.
Note: If there is more than 1 actor with a provoke state, the enemy will choose one at random.
An actor with this state will generate no threat.
(The damage_no_threat tag means damage causes no threat.)
(The heal_no_threat tag means healing causes no threat.)
Rename the file extension to .js
I have tested this plugin in a project with many Yanfly plugins and there were a lot of problems.
I will be writing fixes for these issues for use in my own projects,
so once those are complete I'll update this topic with download links.
Future Features I'd Like To Implement
A "misdirect" skill which allows an actor to target an ally party member. While the effect is active,
all threat dealt by party member A is added to party member B's total instead.
For use in Commercial or Non-Commercial games free with credit.
If there are any errors or bugs, please let me know and I'll do my best to fix them.
If your problem is a compatibility issue with another script I can't guarantee I'll make a fix for it,
but it's something I may look into.