During battle, enemies will choose their targets based on their "threat" rather than randomly. The threat for an actor changes depending on what they do. For example, attacking raises threat and defending decreases threat.Features

Players maintain "threat" and the enemies attack the most dangerous actors first

Offers a new aspect of control in battles

Configurable change in threat for attack, defend, skill and items

Configurable "Threat Chance" decides how often enemies choose actors based on their threat (leaving some randomness for those who prefer it)

An ignore list for enemies who use random actor selection

Temporarily disable the threat system by using a switch

A "threat-by-damage" mode where threat is calculated based on damage inflicted

Two ways of keeping track of threat: status window mod for DBS and threat window for other battle system mods

#==============================================================================# ** Threat System#------------------------------------------------------------------------------# by Fantasist# Version: 1.2# Date: 23-Oct-2011#------------------------------------------------------------------------------# Version History:## 1.0 - First version (13-July-2009)# 1.1 - Fixed Force Action bug and added enemy-specific threat ignore (21-Oct-2011)# 1.2 - Added disable by switch, threat by damage, fixed a display bug#------------------------------------------------------------------------------# Description:## During battle, enemies will choose their targets based on their "threat"# rather than randomly. The threat for an actor changes depending on what they# do. For example, attacking raises threat and defending decreases threat.#------------------------------------------------------------------------------# Compatibility:## Might be incompatible with other battle systems or battle addons.#------------------------------------------------------------------------------# Instructions:## Place this script anywhere above "Main" and below "Scene_Debug".#------------------------------------------------------------------------------# Configuration:## Scroll down a bit and you'll see the configuration.## ATTACK_THREAT: Threat to increase when actor attacks# DEFEND_THREAT: Threat to decrease when actor defends (read THREAT_BY_DAMAGE)# THREAT_CHANCE: The chance of enemies attacking based on threat# THREAT_SWITCH: Turn this ON to temporarily disable the threat system# THREAT_BY_DAMAGE: When "true", an actor's threat increases by the damage# caused to enemies. Enabling this ignores ATTACK_THREAT.# When defending, actor's threat is divided by DEFEND_THREAT.# THREAT_DISPLAY: Display players' threats besides their name# THREAT_WINDOW: Whether to enable or disable threat window# To enable it, set it to "true". If you want to set it's# position and width, you can also set it to an array with# it's X position, Y position and width (eg: [0, 64, 160]).# ENEMY_IGNORE: List of enemy IDs which ignore the threat system## Skill Threat Configuration:## Look for "SKILL THREAT CONFIG BEGIN" and follow the example.# In the given example:## when 57 then [10, -2]## the skill 57 (Cross Cut) increases user's threat by 10 and decreases the# rest of the party's threat by 2.## Item Threat Configuration:## Works exactly the same as skill threat configuration.#------------------------------------------------------------------------------# Credits:## Fantasist, for making this script# KCMike20, for requesting this script## Thanks:## Blizzard, for helping me# winkio, for helping me# Jackolas, for pointing out a bug# yuhikaru, for fixing force action bug# Fenriswolf, for requesting enemy ignore list# Kagutsuchi, for requesting threat-by-damage feature#------------------------------------------------------------------------------# Notes:## If you have any problems, suggestions or comments, you can find me at:## forum.chaos-project.com## Enjoy ^_^#==============================================================================

#==============================================================================# ** ThreatConfig module#------------------------------------------------------------------------------# Module for settings and configuration of the Threat system.#==============================================================================

if ThreatConfig::THREAT_WINDOW#==============================================================================# ** Window_Threat#------------------------------------------------------------------------------# This window displays the threats of actors in the party.#==============================================================================

Look for the configuration section in the script and configure the following.

ATTACK_THREAT: Threat to increase when actor attacks

DEFEND_THREAT: Threat to decrease when actor defends

THREAT_CHANCE: The chance of enemies attacking based on threat

THREAT_DISPLAY: Display players' threats besides their name

THREAT_WINDOW: Whether to enable or disable threat window. To enable it, set it to "true". If you want to set it's position and width, you can also set it to an array with it's X position, Y position and width (eg: [0, 64, 160]).

ENEMY_IGNORE: List of enemy IDs which ignore the threat system

Skill Threat Configuration:

Look for "SKILL THREAT CONFIG BEGIN" and follow the example. In the given example:

No. Even misses generate threat. Try the demo, you'll see very quickly how it works. However, with basic scripting knowledge, an edit is possible. I might not be able to SOON, but within the next couple of days, I can edit it for you.

No. Even misses generate threat. Try the demo, you'll see very quickly how it works. However, with basic scripting knowledge, an edit is possible. I might not be able to SOON, but within the next couple of days, I can edit it for you.

Good ^^ I could see that some people might want to use this version of a threat system, but to me it just doesn't make sense to have a threat system where how much damage you deal doesn't deside your threat. < wow and aoc geek =D

Good ^^ I could see that some people might want to use this version of a threat system, but to me it just doesn't make sense to have a threat system where how much damage you deal doesn't deside your threat. < wow and aoc geek =D

A threat system can ideally do a lot of stuff, a LOT. Many of them, though, are the user's preference. I admit I could've done a better job with it's capabilities, but I've gotten sick of RGSS. You see, I'm at a point of life where everything I do should pay off to my education or my career, or I feel like I'm wasting time, or worse; that I'm letting my peers go way ahead in the game. I don't want to touch RMXP just for scripting anymore. I will only use it when I have the time and plan for my game. I left a lot of requests hanging and I felt bad, so I'm sort of completing them.btw, if any of that rant sounded like I was offended or something, it's not that, I appreciate your remarks

Logged

Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)The best of freeware reviews: Gizmo's Freeware Reviews