じ☆ve冰风 发表于 2026-7-25 11:52:58

Enemy Param Formulas

This script allows you to use a formula to calculate an enemy's parameters. You can use literal values or a set of variables provided for the formulas.


http://himeworks.files.wordpress.com/2013/07/enemyparamformulas1.jpg


Download

Get it at Hime Works!

Installation

Place this script below Materials and above Main

Usage

There are 8 formulas available, one for each parameter

Use the notetag

<param formula: mhp FORMULA><param formula: mmp FORMULA><param formula: atk FORMULA><param formula: def FORMULA><param formula: mat FORMULA><param formula: mdf FORMULA><param formula: agi FORMULA><param formula: luk FORMULA>Where the FORMULA is any valid ruby formula that returns a number.You can use the following variables in your formula:

val - original parameter value specified in the databaseself - the RPG::Enemy object   a - the subject (this Game_Enemy object)   p - game party   t - game troop   v - game variables   s - game switchesIf no formula is specified, then the default value is given.If you would like to use ruby statements that extend across multiple lines,

you can use the extended note-tag:

                Code:       
<param formula: mhp>   if s   v * 4   else   v + 200   end</param formula>

This is only if you need more flexibility.


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