Enemy AI - Checks & Tables
What does it do?Instead of using Attack Patterns in database which don’t allow for much customization. All enemy patterns will be written in module allowing more complex and varying interactions in the battle.
How the AI works:
AI goes through every Check in order, checking conditions for it. Depending on condition results, it checks which Table to use.
If Table is a nil, it goes to the next check. Else it uses the Table that was set.
Repeat for all checks until Table is found.
After Table is found, it uses weighted randomness to determine which attack to use from that Table.
Warning: This may be a tiny little bitty bitsy complex to set up
Author: Mr. Trivel
Name: Enemy AI – Checks & Tables
Created: 2014-11-09
Version: 1.1
Instructions:
Read carefully and set up everything.
Script: <Link: Github>
Blog: <Link: On blog>
Sample conditions. Ask if you have no idea how to set up some specific condition.
Code:
# Any actor has less than 50% hp$game_party.battle_members.any? { |m| m.hp_rate < 0.5 }
本贴来自国际rpgmaker官方论坛作者:Mr. Trivel处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/enemy-ai-checks-tables.33774/
页:
[1]