Threat-based targeting
i just played a bit with rpgmaker and ruby first timeand made this script to make enemies attack party members based on received damage.
Intro: This is a script to improve the AI of Enemies for RPG Maker VX Ace. During a battle, the script lets enemies choose targets based on the accumulated "threat" they feel for each opponent (multiplied by his tgr). This script will maintain a threat table for each enemy, threat rises when an party member hurts an enemy or when he heals another member.
https://github.com/dodger451/rpgmaker/blob/master/Thread_Sytem.rb
i hope you like it!
本贴来自国际rpgmaker官方论坛作者:dodger451处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/threat-based-targeting.48155/
页:
[1]