Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[RTAB] "Threat" System... Please?

I need a "threat" system compatible with RTAB.

A threat system, simply put is one where enemies do not attack randomly at characters. Instead they attack the one with the "highest threat".

Threat should increase with damage, that is, the more damage a character do, the more likely they are to attack him.

It should also be modificable by skills, so a skill could rise your threat or lower it.

Another view of the same.
Battle start. Every character has threat 0, that means that they are choose ramdomly to be attacked.
Chara A, attacks, does damage, and his treath goes up by 10. His threat is now 10. Now, he is 10 times more likely to be attacked than his peers with threat 0.
Chara B attacks and does more damage than A. His threat is now 15. The enemies will mostly pick him for attack.
Chara C Guards. His Threat stays the same.

Enemies will probably attack B. Might attack A. C might not be attacked at all.

If i remember well, the game Outlaw City, has a similar system. If the owner of such script could share, or someone knows a similar one, or someone could create one, i'll be very, vey happy. And someday i'll finish my game.
Thanks.:thumb:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top