Enemy Param Formulas

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
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.



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[1]     v[2] * 4   else     v[3] + 200   end</param formula>
This is only if you need more flexibility.
 
Last edited by a moderator:

Probotector 200X

Probotect and Serve
Veteran
Joined
Mar 14, 2012
Messages
913
Reaction score
168
Primarily Uses
So, as an example, you could have an enemy whose Max HP increase with say...each step you take?? Because stuff like that would be really, really awesome...

Now I wonder...something like this for characters...or equipment...ohmygosh. I hope that doesn't sound like a request...

Anyway, is there any chance this would work with a script that adds more stats? So, a new stat could also use a formula...
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
This script was only designed for the 8 basic parameters since someone wanted that specific functionality.


I have not released a script that basically adds formulas to almost everything.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top