Hello everyone! I'm currently working on a game for a school project and I need a demo of it ready for this friday. I've made basically everything of it already, but this is my first time ever using any version of RPGM, so naturally, I'm having some difficulties with it. My problem right now is that I want to program the enemies in a way that they only attack the player when the "wrong" skill is used. If I use the "right" one, it should just accept it and die. I tried using switches, a skill through "force action", if statements and even common events, but I just can't do it. I need this so that the battle system may work. If anyone knows about a plugin or another kind of event that does it, please say it, it would really help me out. I have some other problems with the coding, but I need to fix this first for now. Anyways, thanks in advance.
How do I link a skill to a switch?
RPG Maker MZ SupportYou can bind Common Events on Skills, so when a Skill is chanted, then a Common Event starts. So I think you want to create one Common Event for each of your special Skills. In the Common Events, you can enable and disable Switches. I hope that helps.
I would suggest instead of switches, have your skills apply a state to the target.
The states can have traits that seal skill types and specific skills.
So if my target enemy is set to attack using the Claw skill, my "right attack" inflicts a state that seals Claw, so on their turn they'll do nothing.
If that doesn't work, I think it would be easier to use a plugin like VisuStella Battle Core that can run code when you use skills; you can use that to set switches, variables, attach variables to the target, etc. That would be much more efficient than making a switch and a common event for every skill in your game.
The states can have traits that seal skill types and specific skills.
So if my target enemy is set to attack using the Claw skill, my "right attack" inflicts a state that seals Claw, so on their turn they'll do nothing.
If that doesn't work, I think it would be easier to use a plugin like VisuStella Battle Core that can run code when you use skills; you can use that to set switches, variables, attach variables to the target, etc. That would be much more efficient than making a switch and a common event for every skill in your game.
Well, I don't know a way to awnser both of you at the same time, but I ended up mixing your ideia with ATT_Turan's, and it worked out perfectly. Thanks, you guys helped me a lot!
Just click whatever button you clicked a second time. Reply puts the quote directly into the text box and Quote lets you arrange their order first.
Or @tag like you did.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-link-a-skill-to-a-switch.160335/