Formula Effects

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,230
Reaction score
3,079
First Language
English



All items and skills in RPG Maker come with additional “effects”.

Effects include gaining HP, learning a skill, gaining a buff in a parameter, or running a common event.

However, what if you would like a skill to do something that isn’t provided by default?

You could use the damage formula, but what if you would like to create conditions on those effects? You could include those conditions in the formula as well, but the problem here is you may end up with a very complex damage formula.

Instead of using the damage formula for everything, you can create custom effects that support formulas. If you already knew how to write the formula, then you can just move it from the damage formula into this formula effect.

Because a formula effect is just another effect, it supports other plugins that work with effects, such as Effect Conditions, which allows you to determine whether an effect should be executed based on a condition.
 


More information and downloads are available at HimeWorks
Free for use in Commercial and Non-Commercial games
 
Last edited by a moderator:

Wavelength

Edge of Eternity
Global Mod
Joined
Jul 22, 2014
Messages
4,944
Reaction score
4,126
First Language
English
Primarily Uses
RMVXA
I have a feeling that this script is providing something extremely valuable, but I'm having a bit of a hard time understanding exactly what!


Is the main point of the script to enable easy database-side access for scripted effects on UsableItem objects (assuming one knows how to code), rather than having to find the appropriate places in the code and check which skill/item was used?


Very cool of you to allow access to the "Result" of the action, btw.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,230
Reaction score
3,079
First Language
English
I have a feeling that this script is providing something extremely valuable, but I'm having a bit of a hard time understanding exactly what!


Is the main point of the script to enable easy database-side access for scripted effects on UsableItem objects (assuming one knows how to code), rather than having to find the appropriate places in the code and check which skill/item was used?


Very cool of you to allow access to the "Result" of the action, btw.


My purpose for writing this plugin is to avoid tossing everything into the damage formula.


For me, a damage formula should only involve the computation of a number that determines how much damage the skill does.


It is not meant to also add states, or also add buffs, or also remove party members, etc which is something that I see suggested.


A side-effect of this plugin is that, yes, you can basically just define your own effects without having to write a separate plugin for it.


Another consequence is you can use the "results" of the previous effect, or the action's initial damage, since this information may be available.


However, one downside is you are unable to actually determine whether the skill/item has any effect on the selected target or not if you chose to include conditional checking in the formula itself.


My solution would be to use Effect Conditions to separate the conditional checks from the actual effect resolution.
 
Last edited by a moderator:

Wavelength

Edge of Eternity
Global Mod
Joined
Jul 22, 2014
Messages
4,944
Reaction score
4,126
First Language
English
Primarily Uses
RMVXA
Thanks for clarifying :)


It seems like this plugin provides the means for a lot of really cool skill/item effects, requiring just a tiny bit of JavaScript knowledge (as opposed to the moderate JS knowledge and familiarity with MV's own default script idiosyncracies that would have been necessary before).  So I really hope people take advantage of the great power and flexibility that's offered here!


If this script becomes as popular as it deserves to, there would be some value in having a repository of different lines that can be entered to achieve a desired effect (with things like the gainHp lines in your example becoming one of hundreds).
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,230
Reaction score
3,079
First Language
English
I think I will put together such a list of formulas that may be useful somewhere.
 

Ashouse

Resident Zombie
Veteran
Joined
Oct 25, 2015
Messages
245
Reaction score
91
First Language
English
Primarily Uses
N/A
I think I will put together such a list of formulas that may be useful somewhere.
Please do this. That would make my life so much easier. Thanks for this. If i can learn some formuli, this will be great!
 

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

Latest Threads

Latest Profile Posts

Managed to find a way to hang a bed cover over my window. So no more being toasted alive in the afternoon!:kaoswt2:
So, uh, has anyone tried buying any resources from KokoroReflections? Because I've been looking for a 'buy' button on the site for like 10 minutes now and can't find one.
Any also thought it's too cringy to put the word "and you" in your credit as a special thanks?
Cause that's what I thought...
Everyone in the US right now: Please stay safe.
Symphony Celestia: Prophecy of the Falling Stars RPG Maker music pack WIP. Symphony Celestia is a new series that focuses on symphonic and orchestrated music to tell a story. Each story will include compositions that make up that story from beginning to end. Themes include: Battles, adventures, character themes, etc. Below is a video preview to the first story.

Forum statistics

Threads
97,980
Messages
948,321
Members
129,244
Latest member
Noxtrasave
Top