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:
Spoiler
Checking Party Gold
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
本贴来自国际rpgmaker官方论坛作者:izyees处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/izys-eval-condition.57501/