じ☆ve冰风 发表于 2026-8-1 14:54:50

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.
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7

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.


本贴来自国际rpgmaker官方论坛作者:Engr. Adiktuzmiko处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/ruby-enemy-action-selection-v1-01.25961/
页: [1]
查看完整版本: Ruby Enemy Action Selection v1.01