The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: Euphoria on August 16, 2014, 07:35:15 PM

Title: Euphoria - Threat System
Post by: Euphoria on August 16, 2014, 07:35:15 PM
THREAT SYSTEM
V1.4
 
 
(https://euphoria337.files.wordpress.com/2014/08/untitled-11.png)
 
Introduction
The Threat System script is relatively simple. It adds a threat gauge in battle and allows the user to note tag skills with the amount of threat they add to the gauge. The actor with the highest threat level will be the target of enemy attacks.
 
Suggestions/Errors?
If you notice any errors or have any suggestions for this script, feel free to comment them here or on my website, thanks!
 
Special Thanks
Fomar0153 (Idea and Segment of Code)
TheoAllen (Help Resolving Issues With Code)
bloodyliao (bug reports)

Credits
Credit me (Euphoria) if you want to use this script. The rest of the terms of use are in the scripts header.
 
Download Below
Threat System Download (http://euphoria337.wordpress.com/2014/08/16/threat-system-v1-0/)
Title: Re: Euphoria - Threat System
Post by: yuyu! on August 16, 2014, 11:34:32 PM
Neato! :) Does the thread gauge replace TP, or is it something entirely separate?
Title: Re: Euphoria - Threat System
Post by: Euphoria on August 16, 2014, 11:56:32 PM
I made it so that it replaces TP, cause I'm lazy, but I could easily make it work both ways with a little work. If that's something anyone is interested in I'll add it!
Title: Re: Euphoria - Threat System
Post by: Arrow on August 17, 2014, 10:08:29 PM
An idea: Could you theoretically make it so that it increases the threat level of targets with multiple buffs?

Example: Dan is level 29, Bob is level 31. Bob is naturally the bigger threat. But, Dan has a boost to STR, DEF and INT. This makes him considerably more dangerous than Bob for the time being, so enemies would focus on wiping out Bob.

I feel that would add an interesting layer to combat strategies.
Title: Re: Euphoria - Threat System
Post by: Euphoria on August 17, 2014, 11:15:42 PM
That seems like it would be really tough to code since it would have be based on level and buffs, I could make a buff add to threat, but the level would take some thinking. I'll add it to my updates list! Thanks for the suggestion :)
Title: Re: Euphoria - Threat System
Post by: Arrow on August 17, 2014, 11:48:01 PM
I think the trick would to be add a quantifiable degree of emphasis to each statistic. If A is higher than B by two levels, then that might be two points general emphasis. If B has STR and DEF buffed, that might be four points. Thus, B is the immediate threat. You'd have to tinker with a scale to see what felt fair, but yeah.
Title: Re: Euphoria - Threat System
Post by: Euphoria on August 17, 2014, 11:52:01 PM
Yeah, I'll get to figuring that out one day! I really like the idea, you have some pretty awesome ideas. So adding another thing to my to-do list xD

Also: Updated to V1.1 which adds compatibility with Yanfly's battle system.
Title: Re: Euphoria - Threat System
Post by: Euphoria on August 19, 2014, 11:05:50 PM
V1.2 adds in two new options: random_chance and random_number. Random_chance, if set to true, will allow the enemies to target randomly(the normal way) sometimes. MOST attacks will still be aimed at the highest threat, but some can be random now. Random_number is a number that you can adjust to change the rate of random attacks. The higher you set this number, the lower the chances of a random attack will be.

I am still considering which options to add, as I have had a lot of suggestions for future versions.

Edit:

V1.3 adds an option to represent threat as user defined icons rather than a gauge
Title: Re: Euphoria - Threat System
Post by: Euphoria on August 21, 2014, 08:30:51 PM
1.4) States can now give/take threat, DEFAULT_STT is the amount used by states that are untagged. Skills/attacks with no  damage now add to threat IF they have valid effects (add a state or buff/remove a state or buff, etc). Buffs and debuffs can also give/take threat now through the variables DEFAULT_BF and DEFAULT_DB, or individually through the buff and debuff settings if IND_BF_RATE and IND_DB_RATE are set to true. RANDOM_CHNC has been changed to allow three  different styles of battle. All threat values can be be negative!
Title: Re: Euphoria - Threat System
Post by: Danstandard on December 31, 2014, 09:08:59 AM
I made it so that it replaces TP, cause I'm lazy, but I could easily make it work both ways with a little work. If that's something anyone is interested in I'll add it!

Sorry to bother you - went through your script several times trying to tweak this, but I can't program to save my life. I'm experimenting on a game with no MP. Do you have the time to provide?