Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,872
First Language
English
effectConditions1.png



 
In RPG Maker, you can assign effects to items or skills. Effects are special behaviors that occur when the item or skill is successfully executed.
 
For example, you can create a "Poison" skill that has a 50% chance to add a "Poison" state to the target, or you can create a "Skill Book" item that will teach a new skill to a particular actor when that actor is selected.
 
Now, let's say you had a skill book that teaches Fire, but only magic users can learn it. Do you want non-magic users to be able to use the book as well? Maybe not.
 
In this situation, it would be useful to be able to define "conditions" that must be met in order for the skill book to be used.
 
This plugin allows you to define "effect conditions", which are conditions that are given to each and every effect on an item or skill. Before an effect can be applied, all conditions must be met.
 
With these conditions, you can now check whether the actor that you would like to use it on is able to learn Fire!
 
Effect conditions are formulas, so you can create conditions on anything that you can imagine.
 


More information and downloads available at HimeWorks


Free for use in Commercial and Non-Commercial projects.
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
329
Reaction score
180
First Language
English
Primarily Uses
RMMV
This plugin sounds useful, but I found a bug: Just having this plugin installed breaks the feature where it won't let you use items that have no effect, whether they have effect conditions or not. (Though if they do have effect conditions, at least one must be met.)


For example, your "Fire Book" would be usable on someone that already knows Fire, assuming they meet the first effect condition. A Potion with no effect conditions at all can be used on someone with full HP. Neither of those would happen without this plugin.


EDIT: Ah, I figured out why. The problem is in this line:


TH_GameAction_applyItemEffect(this, target, effect);


It should be

Code:
TH_GameAction_applyItemEffect.call(this, target, effect);
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,872
First Language
English
Thanks for the report.


I tested whether the logic works, but I think I may have only been doing positive testing and not negative testing.


I've updated the plugin with the "call".
 
Last edited by a moderator:

Suuyasha

Sliver Kid
Member
Joined
Sep 18, 2018
Messages
4
Reaction score
2
First Language
German/Engl.
Primarily Uses
RMMV
Supercool plugin!!!! Thank you a lot Hime!! You're awesome! :) Just one question what I didn't find out yet. I want to acheave if the actor can't learn the spell, he's saying this in a message box. I added it as 2. effect but it doesn't work.... Maybe I do something wrong?
 

Attachments

  • Unbenannt2.PNG
    Unbenannt2.PNG
    33.9 KB · Views: 9
  • Unbenannt1.PNG
    Unbenannt1.PNG
    91.2 KB · Views: 9

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,988
Reaction score
665
First Language
English
Primarily Uses
RMVXA
Maybe I do something wrong?
Your first effect is learn spell
Your second effect is call common event
But you wrote them the opposite in the note box.
not class 11 learn then class 11 common event
 

Suuyasha

Sliver Kid
Member
Joined
Sep 18, 2018
Messages
4
Reaction score
2
First Language
German/Engl.
Primarily Uses
RMMV
yes was some kinda logical thing ^^ works now...
 

Latest Threads

Latest Posts

Latest Profile Posts

Voting for the second round of the Map Madness Tournament is now live! Vote for your favorite in each matchup! https://forums.rpgmakerweb.com/index.php?forums/map-madness-2021-polls.187/
Just bought the Visustella All Waves bundle... Time to go IN!!
Oh, I was just confirmed I'll be doing small online classes during june - july, on one side I'm nervous and looking forward it, on the other one: I've became the very thing I swore to destroy. :kaodes:
Work starts today at 2pm. I hate jeans, but the dress code says I have to wear them... That's how I discovered I was a plus size. Shopping for my first pair of jeans.
Anyhow, I'll post a new video on TheDazzlingsAreBack as soon as I'm able to.
dEj6ha4.png

WIP :)
Added some cliffs / walls / roofs to the tilesheet and am currently working on roof objects to make them prettier and more variable. And of course, windows and doors that fit to the game's style.
I also adjusted the grass color but i have some issues with my display, so if it looks weird, please let me know :)

Forum statistics

Threads
110,571
Messages
1,054,297
Members
143,684
Latest member
Viazaa
Top