Creating a skill that draws enemy aggro for one turn

Just checked in the Chrono Engine js file, there's no mention of substitute anywhere.
I did find this, though:
1593744290689.png

but I found no matches for trg (target rate)
I was thinking that if there's coding for special parameters like physical damage rate and magical damage rate, then we could use that as a foundation to input some coding for a target rate? Man, I feel totally lost in the file, but it seems worth a shot?
I might be able to find the original coding for the target rate in the defaul system files..
I was very worried it was going to be the Chrono Engine. Unfortunately, I don't think Moghunter takes bug reports anymore, and due to how much base code he's overwriting, fixes aren't usually easy. (It also doesn't help that the code isn't documented that well.) They're almost always possible to fix, but that would require looking through thousands of lines of code, figuring out how everything interacts in his version, and usually rewriting a few methods to fix the issue.

I've done this before for a few clients, as part of a paid commission - and for the 10-20 hours it would probably take me to relearn Mog's code base, figure out the flow of targeting, and write the fixes, I'd only be willing to invest that much time as a paid commission as well. I'll leave that offer open to you (PM me in a couple weeks) if you find yourself so in need of this fix that you're willing to pay for it, but hopefully a hero who knows Mog's code more intimately will be able to swoop in and give you the code fix you need with a lot less effort.

Sorry I can't be of more help. 🙁

EDIT: BTW, I assume the reason you couldn't find any mention of Substitute is because Mog overwrote one of the battle flow methods that normally calls the Substitute processing, and in his overwrite he did not call any Substitute processing. If true, that would explain why you can't find any mention of substitute (which would normally imply that he's not touching it) yet Substitution doesn't work at all when you have Chrono Engine turned On.
Just checked in the Chrono Engine js file, there's no mention of substitute anywhere.
I did find this, though:
View attachment 149881
but I found no matches for trg (target rate)
I was thinking that if there's coding for special parameters like physical damage rate and magical damage rate, then we could use that as a foundation to input some coding for a target rate? Man, I feel totally lost in the file, but it seems worth a shot?
I might be able to find the original coding for the target rate in the defaul system files..

Does the plugin rewrite or replace BattleManager.invokeNormalAction()?
I was very worried it was going to be the Chrono Engine. Unfortunately, I don't think Moghunter takes bug reports anymore, and due to how much base code he's overwriting, fixes aren't usually easy. (It also doesn't help that the code isn't documented that well.) They're almost always possible to fix, but that would require looking through thousands of lines of code, figuring out how everything interacts in his version, and usually rewriting a few methods to fix the issue.

I've done this before for a few clients, as part of a paid commission - and for the 10-20 hours it would probably take me to relearn Mog's code base, figure out the flow of targeting, and write the fixes, I'd only be willing to invest that much time as a paid commission as well. I'll leave that offer open to you (PM me in a couple weeks) if you find yourself so in need of this fix that you're willing to pay for it, but hopefully a hero who knows Mog's code more intimately will be able to swoop in and give you the code fix you need with a lot less effort.

Sorry I can't be of more help. 🙁

EDIT: BTW, I assume the reason you couldn't find any mention of Substitute is because Mog overwrote one of the battle flow methods that normally calls the Substitute processing, and in his overwrite he did not call any Substitute processing. If true, that would explain why you can't find any mention of substitute (which would normally imply that he's not touching it) yet Substitution doesn't work at all when you have Chrono Engine turned On.
yeah, I suspected as much. Thanks for the help anyway, I'lll try and figure it out myself!
BattleManager.invokeNormalAction()
There's no mention of it anywhere in the main file, so I'm assuming no
There's no mention of it anywhere in the main file, so I'm assuming no

That's weird, because that's the function that replaces the target with the substitute if there is one.

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-skill-that-draws-enemy-aggro-for-one-turn.123535/