Setting Skill Ratings on Enemies

I don't understand the scripts well enough to figure this out, so looking for help with some examples.


The rating on a skill for an enemy is not a probability that the skill will be used (that'd be too easy). Here's what the popup help window says:

The action's priority of use. Of all actions meeting the conditions, the one with the highest rating will be the standard, and the one within 2 rating points of the standard will be used. Actions 1 rating point away will be used 2/3 of the time and those 2 rating points away will be used 1/3 of the time.
So that tells me, if I have 10 skills, and they each have a rating of 1-10 respectively, then only skills with a rating of 8, 9 or 10 will be used (since 10 is the highest rating, and it will only use actions within 2 rating points away). So the action with a rating of 9 will be used 2/3 of the time, and the action with a rating of 8 will be used 1/3 of the time. But what about the action with the 10 rating?


Or is the description misleading - will it only use actions ONE rating point away, and those that have the same rating as the highest will get a 2/3 chance, and those ONE rating point away will get a 1/3 chance?


As an example, how would I set them up if I wanted Skill A to be used 50% of the time, Skill B 30% of the time, and Skill C used 20% of the time?


Edit: Okay, have confirmed it DOES look at skills with a rating of 8, 9 or 10, so instead of 1/3 and 2/3, I think it's more like 3/6, 2/6 and 1/6 because it's got to use ratings that are the same, 1 away, and 2 away.
I believe it works something like that.  I think it assigns the top skill rating and the two below it a value between 1-3, then adds them together to determine the possibility.  If you were to add a forth skill with a rating of 9 then it should be like 3/8, 2/8, 2/8, 1/8.

For a 50%, 30%, and 20% ratio I'm thinking you might need 10 skills of A, 9 skills of B, and 12 skills of C with 60 being the base (A = 30/60 = 50%, B = 18/60 = 30%, C = 12/60 = 20%).

I might also be completely wrong.
Ugh! That seems a bit of a backwards way of doing it (adding multiples of the same skill just to fine-tune the chances). If I had the time to play with it, I'd just change the script so it uses a % probability and be done with it.


Thanks for the explanation though.
I wouldn't bother with finetuning to exact percentages, because that only works when there are no conditions deactivating some of those skill options - and no player would ever try to calculate the difference between say 16% and 20% chance of an attack occuring anyway, especially as he would need a lot of long fights to see the difference...
What I do to get my enemies to use skills at a decent rate is I first set up everything at a certain point rating, say 4 or 5. Then just make one of each within that range. But for skills that I want to add after a certain part in the fight, I just add if HP is between x and y percent.

Sometimes for guarding I add a guard every 3 or 4 rounds option. And for special moves that I want total control over I just use the troop events.

Probability like it is with item drops would have been so much better. But this is probably the best way to go about it. Just leave all the actions within 1 point and set up some conditions. And give the enemy at least 4 options of things to do so that it doesn't loop one or two things so frequently.
I don't understand the point of having 1-10 ratings when only 3 can be triggered.. 

In this configuration, for example, Condemnation is never used cause it's within 3 rating points of the standard  ? Why not a 1-3 points rating? Thanks, i realy need help to understand the logic.. or a script to get more control. 


[IMG]https://snag.gy/4ivEmC.jpg[/IMG]



About: 

The action's priority of use. Of all actions meeting the conditions, the one with the highest rating will be the standard, and the one within 2 rating points of the standard will be used. Actions 1 rating point away will be used 2/3 of the time and those 2 rating points away will be used 1/3 of the time.

 Shaz said: "So that tells me, if I have 10 skills, and they each have a rating of 1-10 respectively, then only skills with a rating of 8, 9 or 10 will be used (since 10 is the highest rating, and it will only use actions within 2 rating points away)."
varchild4, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.



For a more detailed explanation, please make a new topic, I'm closing this


But short form: you forgot the action conditions.


If you have several sets of ratings, one general without condition and ratings of 1-3, then one set conditioned to for example a switch with ratings of 5-8 and one conditioned to low HP with ratings of 11-13, then the higher ratings will only exist if the conditions are met.


All conditions off: the general set will be used. switch turned on - the general set now has too low ratings and the switch condition set of skills will be used. And so on


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/setting-skill-ratings-on-enemies.15172/