- Joined
- Apr 22, 2016
- Messages
- 28
- Reaction score
- 4
- First Language
- English
- Primarily Uses
- RMMZ
So in a game I'm working on, I have an actor who reflects magical attacks of most elements. Because of this, I want the stronger, more intelligent enemies in the game to know this and, during battle, not target her with their unique magical attacks. Yanfly's selection control plugin has a note tag to enforce this, but it can only apply to actors universally, which would render her elemental reflection completely useless and then no less intelligent enemies could target her with any magical attacks at all.
However, you can also set custom conditions for targeting on skills using Javascript, apparently. But having no knowledge of Javascript's language whatsoever, I don't know what to do to make this. Basically, I need a JS command that checks to see if the target's name is NOT this specific character's name, and if that condition returns true, then the attack goes through. If I knew how to check to see if something is not equal to something else in Javascript, I could do it myself, using the handy example on the plugin's info page (link here) as a base.
So could someone please help me out with this? Either by posting a modified version of the command on the plugin page or just telling me how to check for something not being a certain way so I can modify it myself.
However, you can also set custom conditions for targeting on skills using Javascript, apparently. But having no knowledge of Javascript's language whatsoever, I don't know what to do to make this. Basically, I need a JS command that checks to see if the target's name is NOT this specific character's name, and if that condition returns true, then the attack goes through. If I knew how to check to see if something is not equal to something else in Javascript, I could do it myself, using the handy example on the plugin's info page (link here) as a base.
So could someone please help me out with this? Either by posting a modified version of the command on the plugin page or just telling me how to check for something not being a certain way so I can modify it myself.

