Original Source
- Original title: Izy's Eval Condition
- Original author: izyees
- Original date: February 25, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/izys-eval-condition.57501/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)
Summary
Izy's Eval Condition This script allow javascript as a condition. As the title said, this script will make a condition with a javascript. Meant, it can break the condition limit such as gold value, actor's HP/TP/MP, Actor's equipment, Map ID, Actor's state and more. For more code, please refer to this https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0
Archived First Post
Izy's Eval Condition
This script allow javascript as a condition.
As the title said, this script will make a condition with a javascript. Meant, it can break the condition limit such as gold value, actor's HP/TP/MP, Actor's equipment, Map ID, Actor's state and more.
For more code, please refer to this https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0
This is some example code:
if ($gameParty.gold() < 200) condition = false;
//Check if party gold is bigger than 200
Checking Actor's HP/TP/MP
if ($gameActors.actor(1)._hp < 100) condition = false;
//Change hp to mp or tp as what you want. Don't forgot the '_' sign.
//Check if actor's 1 hp/tp/mp is lower than 100
Checking Actor's Equipment
if ($gameActors.actor(1)._equips[x].itemId() != 1) condition = false;
//Check if actor equipment of type x is item of 1. If not, false.
Checking Current Map ID
if ($gameMap._mapId != 1) condition = false;
//Check if the current map id is 1. If not, false.
Checking Actor's State
for (state = 0; state < $gameActors.actor(1)._states.length; state++) {
if ($gameActors.actor(1)._states[state] == 1) condition = false;
};
//Check if actor 1 is dead or have state 1 (state 1 is dead), then it'll false.
Grab the plugin now and see the magic! Direct Link
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...