Hi, been putting some decent hours into this project and finally come across something the forums don't appear to have answered already.
The situation is as follows: The game I'm making relies a lot on party positioning and switching in and out; if possible I would like the aggro towards each party member to depend on their relative position.
Example:
Actor 1: Draws 50% of enemy attacks.
Actor 2: Draws 20% of enemy attacks.
Actor 3+4: Draw 15% of enemy attacks.
That's just off the top of my head, nothing concrete until I know it can be done. If it helps, I'm working with Yanfly's Charge Turn Battle system.
Easiest way i can think about it is admittedly clunky.
With Yanfly's passive plugin, each actor can have 3 passives that each modify their target rate by 50%, 20%, and 15% one, and then each one would have their condition be based on the user's index within $gameParty.members()
I've already made pretty extensive use of Passive States so that sounds feasible. I'll have to give that a try tomorrow though, it's already late. Thanks.
Edit: Been trying for a while but no luck, enemies still target across the board even when 1st position is set to 999%. The states have been set as passives in the Yanfly plugin settings, also tried with the states manually placed into the actors' notes, so I'm guessing what I'm putting in for the custom conditions is either not activating any of them or is activating all of them for all actors. Tried the following inputs (changed 0 to 1, 2 and 3 respectively across the four), any suggestions are welcome.
Could you give hidden items to your party members behind the scenes and then have your enemies roll a number that's equal to your percentages? Then the enemies attack the party postion based on the number they rolled?
Example:
Game gives Party Leader hidden item 1.
Game gives Follower #1 hidden item 2.
Game gives Follower #2 hidden item 3.
Etc.
Enemy 1 chooses a random number between one and 20.
If the number chosen is 1-10 (50% chance), then they attack the actor holding hidden item 1.
If the number rolled is 11-15 (25% chance), then attack the actor holding hidden item 2.
If the number rolled is 16-18 (15% chance) then attack the actor holding hidden item 3.
Etc.
I'm away from my computer so cant give specifics, but something like that sounds like it might work?