Target Rate (again)

I have an actor with a taunt, plus a few extras, skill. I have set Target Rate to 999% but the enemies will still tend to ignore him and go after some other actor.

Is there an obvious debug which I'm missing?

FYI here is the state called up by the skill. Calling this state is all the skill does.

1690795356233.png


It has a notetag which, as far as I can see, should not affect the target rate, but I include it in case there's something I've overlooked. What this does is nullify the damage and restore the TP cost of the skill.

Code:
<JS Pre-Damage As Target>
if (this.isPhysical() && this.isHpEffect() && value > 0) {
    value = 0;
    if (DataManager.isSkill(this.item())) {
    const tp = user.skillTpCost(this.item());
    // Recover the TP.
    target.gainTp(tp);
  }
    target.startAnimation(58);
}
</JS Pre-Damage as Target>

Thanks
what is the base target rate for that character?
@gstv87 It's 100%
I'm not sure if it's relevant and it may just be a pasting error, but your notetag doesn't have an opening <.
@Trihan Thanks for pointing that out. It's a pasting error. I'll correct that now.
the target rate is relative, not absolute.
if one actor has a TGR of 200% and another a target rate of 50%, then the 200% actor will be hit four times as often as the 50% actor.

If one actor has a target rate of 999% and three actors have target rates of 100%, then the first actor will be targeted ten times in thirteen actions while the other three will get one hit each per thirteen targets.

How often get your other actors targeted relatively to that one? if it does follow the above guidelines then it is correct - but if for example the other actors get hit every other case despite a much lower target rate, then something changed the default targeting behaviour.
@Andar I just did a test battle where there were 3 turns. The enemies never targeted the taunting actor even once. The actor who got almost all their attention was actor 4 who was the last actor to deal damage. I have seen a similar pattern of behaviour in battles where this skill was not used - but I can see nowhere in the VS plugins which would create this.
@Andar I just did a test battle where there were 3 turns. The enemies never targeted the taunting actor even once. The actor who got almost all their attention was actor 4 who was the last actor to deal damage. I have seen a similar pattern of behaviour in battles where this skill was not used - but I can see nowhere in the VS plugins which would create this.
Do you have the Aggro Control plugin?
@Trihan I own it, as it's part of 8 Waves, but I've not used it.
@Trihan I own it, as it's part of 8 Waves, but I've not used it.
There's a <taunt> tag for taunt skills that does all this for you without the rigmarole of messing with the target rate trait and AFAIK it's guaranteed to make enemies attack the user instead of other possibilities.
@Trihan Thank you. I'll take a look at that. Your help is much appreciated.
@Trihan Thank you. I'll take a look at that. Your help is much appreciated.
It's a pretty cool plugin packed with features people don't seem to know exist, like Provoke (which is like Taunt but you put it on a target and they can only attack the caster) and you can split taunt by physical, magical or certain hit actions. You can also create effects that bypass taunt (if you wanted a boss that ignores the tank's attempts to draw their ire, for example)
@Trihan There is something, though, which I find confusing. The sparam list refers to Target Rate. However in the VS Status Menu it refers to Aggro, not Target Rate. As the plugin refers to both Taunt and Aggro as being 2 separate things, which applies?
Correct - the plugin is not constantly modifying the actors' TGR parameter during battle.

It uses its own Aggro system as a replacement.

If you don't want to do that and you just want TGR to function correctly while using some VisuStella plugins, it sounds like you might want to file a bug report.
@ATT_Turan It's nice to know that it might not just be my ineptitude.
It doesn't seem so, from your descriptions. Yes, the Aggro Control plugin is what I'd consider a better way to implement your skill, but the default numbers should work if it's not in the existing plugin description/parameters as something that's modified.
The aggro plugin also has features that adjust aggro by how much damage and healing each actor has done, and if you haven't touched those it is probably shifting in really extreme values which is why it is probably your last actor being targeted all the time as they did the most recent damage.

I set those values to 0 myself.

What you are looking for is under Aggro settings -> Aggro per damage and Aggro per heal.

There's also a setting there to focus on highest TGR too, which defaults to false which is why it is ignoring the 999% TGR as well.
@Kes, always find the base for your calculation.
if you don't know why the readings don't match, find one thing that you know is true.
by adding or taking values you'll know if the problem is up or down the chain, from your reference point.

in your case, find the zero of reference from where to calculate your values.
usually it would be 100% rate, from where the system would randomly pick one target out of those of equal value.
but if you're at that calculation and it still makes no sense, then there's obviously something else interfering, so strip everything out and find the one true value.
go into the code and backtrack the calls to other functions until you can't backtrack any more.
The aggro plugin also has features that adjust aggro by how much damage and healing each actor has done, and if you haven't touched those it is probably shifting in really extreme values
I'll let Kes speak for himself, but my understanding from post #9 is that Aggro Control is not currently in his project.

If I'm misreading that, and he means that he did install the plugin without reading/modifying any of the parameters, obviously that would be a huge reason for unexpected behavior.
@ATT_Turan and @bgillisp
Following Trihan's and bgillisp's suggestion I have put the Aggro Control plugin into the project. This seems to have solved the endless hammering of the last actor to deal damage, which has been going on for a while.
The taunt skill isn't quite there yet, but I'll carry on poking around at it and hopefully that'll come good by the end.

Thank you both very much for your prompts which have got me this far.

Original thread: https://forums.rpgmakerweb.com/threads/target-rate-again.159897/