Hey guys! I'd like to know if there is a way to force all enemies to attack an enemy inflicted with a certain state?
This is how it would work: I use a skill that inflicts a certain state onto an enemy, then all enemies proceed to attack that enemy.
I can't find a script call in the master list to get an array of all skills that a class can learn (as you would set in the engine database under the Class tab). Is this something that exists or not? I know I can pull it as JSON data easily enough but getting it as part of a common event would be quite helpful.
The flip side to this is just making an array per class within my common event of all skill names, but that would be tedious and I'd rather make a modular solution if possible.
is your console not showing any errors?
trying to access the learnings for a blank level does return undefined. i assume youre getting an error for trying to get the skillId for undefined, the rest of the code isnt running, and wherever else youre using variable 64 is just using the last value
Hello. I don't think my question deserves a new thread, so I'm asking here. I hope it is the right place.
I'm looking for help with something that is very difficult for me, but I think it could be easy, even silly, for someone who understands scripting. Basically, all I need is a script call line that checks what the current class of the second current party member is. I think it would be ideal for the class Id to be stored in a given variable.
I need this because I'm creating a custom class change screen using events and images, and I would like to display the image of the current class in the menu, but since there are 16 different classes and almost 50 playable actors, I simply can't tell which character was selected to enter this custom class change screen. And even if I knew that, I would still need to know what the current class of the selected actor is to display the correct image.
I've tried things like:
$gameParty.members(1).currentClass.Id
$gameParty.members(1).currentClass().name
$gameParty.members(1).isClass($dataClasses[1])
Nothing seems to work. I've discovered that there are actually two possible solutions to my problem: I can set the current class ID of the selected actor to a variable, then all I have to do after that is create a conditional branch asking if the value of the variable is equal to 1, or 2, or 3, until I finally know which class is the correct one. Or I can use the conditional branching to ask if the second member of my party is currently "using" class ID X.
I'm hoping someone can help with this, as I've spent the last two days trying to figure it out with no luck.
Edit: Oh, I forgot to tell that I'm using RPG Maker MZ!