VE - Action Conditions

victor-engine-script-title.png

action-conditions-name.png




​




This plugin allows to setup specific condtions to allow some skills or items to be used. You can create actions that can be used only when in danger or under a certain circumstance based on a switch or variable.

Download:
Victor Engine - Action Conditions


Credits:
Author: Victor Sant

Terms of Use
Hello Victor.

I was wondering if this plugin would allow me to replicate the skill Dreameater from Pokemon.
It can only target/damage enemies with certain states, i.e. Sleep. 
@HintonR


This plugin checks restrictions only on the user, not the targets.


I have a 'Target Conditions' that checks the targets instead of the user on the line for future releases.


You can try to do it with the Unreachable Target, i will update it today and some of the new features might help with what you want.
For anyone using this plugin, I think I found a bug when helping someone troubleshoot.

If your <custom action condition> seems to be getting ignored or giving the wrong result, find this section of code:

Code:
   Game_BattlerBase.prototype.meetCustomActionConditions = function(item) {
       if (!item || !item.actionConditions) return true;
       if (this.testCustomActionConditions(item)) return false;
       return true;
   };

and replace it with this:

Code:
   Game_BattlerBase.prototype.meetCustomActionConditions = function(item) {
       if (!item || !item.actionConditions || item.actionConditions.length === 0) return true;
       return (this.testCustomActionConditions(item));
   };

Original thread: https://forums.rpgmakerweb.com/threads/ve-action-conditions.51768/