Refresh my memory on how to make enemies use other skills besides attack? I've set up a snake or hornet to use a skill that will poison but all they use is attack. =/
How to make enemies use other skills?
RPG Maker MV SupportYou put things other than "attack" in this part of the enemy page:
If they still aren't doing things, make sure the condition is set correctly, that they can actually afford to use the skills (MP/TP costs, other plugin-related costs), and that the Rating is high enough. Enemies will typically use the highest-rated attack they are currently allowed to use, sometimes use an attack 1 rating below, and very rarely use something at 2 below. (Ex: If they can use attack at 5, they'd have a chance of using skills at 4, and a rare chance of using skills at 3, but would never use anything at 1 or 2.)
If you've checked all those already, check your plugins for additional AI / cost settings, or possibly conflicts between plugins.
If they still aren't doing things, make sure the condition is set correctly, that they can actually afford to use the skills (MP/TP costs, other plugin-related costs), and that the Rating is high enough. Enemies will typically use the highest-rated attack they are currently allowed to use, sometimes use an attack 1 rating below, and very rarely use something at 2 below. (Ex: If they can use attack at 5, they'd have a chance of using skills at 4, and a rare chance of using skills at 3, but would never use anything at 1 or 2.)
If you've checked all those already, check your plugins for additional AI / cost settings, or possibly conflicts between plugins.
The above post is correct.
Slight correction to the rating system though. I'm fairly certain that it's a random skill selection system with rating affecting the weight of the skill. If:
- Skill A has a rating of 8
- Skill B has a rating of 5
- Skill C has a rating of 3
The chance of using:
- Skill A is 8/16
- Skill B is 5/16
- Skill C is 3/16
Not 100% sure about this since I don't use the default battle system (coded mine to work like this, with additional weight correction based on numerous varying factor).
Slight correction to the rating system though. I'm fairly certain that it's a random skill selection system with rating affecting the weight of the skill. If:
- Skill A has a rating of 8
- Skill B has a rating of 5
- Skill C has a rating of 3
The chance of using:
- Skill A is 8/16
- Skill B is 5/16
- Skill C is 3/16
Not 100% sure about this since I don't use the default battle system (coded mine to work like this, with additional weight correction based on numerous varying factor).
Very close, but there's another condition at play. The following comes from the help file, and is the same for Ace and MV:
So in the above example, skill A is the only one that would be used, as skills B and C are not within 2 points of the highest rating.
Based on the code, I THINK it looks at ALL actions first and collects only those that are valid based on the conditions. Then it checks what is the highest rating. Then it filters to only those actions with the highest rating, or one or two lower. Then it chooses the action based on the probabilities above.
So if they're always attacking, my first suggestion would be to ensure the other skills you've given the enemy have a rating of at least 3, and if you want them to use the skills more than attack, give them a rating higher than 5, as attack has a default rating of 5.
And set the MP requirement to 0 if you want them to be able to use the skill for the entire duration of the battle. I've seen some people wonder why an enemy uses a skill for a certain number of turns, then reverts to attacking - it's because they've given the skill an MP cost and the enemy has run out of MP.
So in the above example, skill A is the only one that would be used, as skills B and C are not within 2 points of the highest rating.
Based on the code, I THINK it looks at ALL actions first and collects only those that are valid based on the conditions. Then it checks what is the highest rating. Then it filters to only those actions with the highest rating, or one or two lower. Then it chooses the action based on the probabilities above.
So if they're always attacking, my first suggestion would be to ensure the other skills you've given the enemy have a rating of at least 3, and if you want them to use the skills more than attack, give them a rating higher than 5, as attack has a default rating of 5.
And set the MP requirement to 0 if you want them to be able to use the skill for the entire duration of the battle. I've seen some people wonder why an enemy uses a skill for a certain number of turns, then reverts to attacking - it's because they've given the skill an MP cost and the enemy has run out of MP.
Yeah if I recall correctly, they had to be within 2 units of each other in order to proc.
So, yeah like Shaz says: if attack has 5, skill one could have 5 and it'd be a toss up, and skill two could be a 3 and be a deadly or healing skill etc.
Edit: I am no where near my pc, this is just by my terrible memory.
So, yeah like Shaz says: if attack has 5, skill one could have 5 and it'd be a toss up, and skill two could be a 3 and be a deadly or healing skill etc.
Edit: I am no where near my pc, this is just by my terrible memory.
Thanks guys!
Well... that's... baffling. Why someone thought they were done after coding that, I don't know. It's even in the manual. At the risk of sounding like an angry video game nerd... WHAT WERE THEY THINKING?! This literally makes no sense. It's counter-intuitive. And worse, there's no indication whatsoever that this is what the game will do. Just utterly baffling.
@mobiusclimber I totally agree. It would make a lot more sense if the rating is the weight in a random process.
EDIT: That's why I recoded it lol.
EDIT: That's why I recoded it lol.
The RPG Makers I've used in the past all use percentages for this. I'm, again, baffled at why that isn't what they do here. That takes all the guesswork out of it. Yeah, you'd ideally want it set up so the user couldn't accidentally go over or under 100% but there are a number of ways of doing that as well. If the RPG Maker on the PS1 can handle that, there's no reason MV couldn't.
But yes, a weighted rating would also work.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-enemies-use-other-skills.104966/