RPG Maker Forums

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.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top