- Joined
- Jun 9, 2014
- Messages
- 284
- Reaction score
- 469
- First Language
- Lithuanian
- Primarily Uses
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.
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 }
Last edited by a moderator:

