Ruby Enemy Action Selection v1.01

Overview

This script allows you to use full RGSS3 formulas for determining
which action an enemy will use. Uses enemy notetags to set-up.

Example

Use skill 4 if HP is > 50, else use skill 10

<ruby_actions> if self.hp > 50 4 else 10 end <end_ruby_actions>Downloads
Get it Here!

Notes
Thanks to Tsukihime for noticing that the regex was set-up wrongly. 🙂

This does not take into account by default if the enemy can actually use the skills (MP costs, etc) so you should
handle any checks by yourself. If an enemy is given a skill order that it cannot use, the enemy will skip the turn.
The regex/eval looks like it'll crash the game if there are any other tags in the note after it.
Wait... hmmm... gonna test something, I think the example will pose problems... and yeah it might error... I'll change it soon. thanks!


EDIT: Updated! Changed the regex
I might update it to use methods made in the scripts editor rather than cluttering the notebox...

Original thread: https://forums.rpgmakerweb.com/threads/ruby-enemy-action-selection-v1-01.25961/