You are. You are too far into the technical weeds and have yet to put into basic words what you want to do and how you expect it to work. You've mostly talked about how you think you should implement it and/or how you've tried.
Are you trying to trigger a secondary target selection for a separate skill after you initially select a target for a specific skill?
For example:
- Let's say that you have a a skill, called Healing Strike: attack one enemy, and immediately heal one ally afterwards.
- After selecting Healing Strike from the skill menu in battle, the player can select an enemy to target—exactly as per default.
- After selecting an enemy, the player is prompted with a window to select an actor—this is where your custom handling comes in.
- On selecting an actor, the skill input is finished, and you'd advance either to the next actor command or the next battle phase.
If that's what you want to do, then you realistically need a custom plugin to modify the command input handling. You should also consider custom UI prompts, because immediately jumping from an enemy selection window to an actor selection window with no context would be jarring for a player.
You could probably do this with some kind of after-turn common event that prompts the player to select a target after the action actually occurs, but your latest post's description seems to imply some image positioning requirements which tells me that you have more or less skipped over all of the relevant information needed for someone to give you any kind of actionable recommendation.
Hey, thanks for the reply!
Sorry, to be clear, the action actually
does work now without requiring a force skill thanks to rpgLord69's method. But for more context, it's a skill that I use to target an enemy that has been grabbed (checked via a state), then I target another enemy to "throw" them at said enemy and deal damage to both of them.
I just use JS Enable to control targetting conditions for the vanilla target selection, no problem there. Basic targetting functionality and action sequende stuff is solved — after setting the initial single target, I get a variable that I manipulate via rpgLord69's loop (-1 when I press the Left button and +1 when I press right, obviously jumping from 1 and 8 when needed), then when I hit the OK button, damage is dealt to the initial target and the enemy whose index (-1 ofc because Visustella indexes start at 0) matches the variable I'm manipulating via conditional branches at the end of the sequence with Visustella Action Effects. So the actual ability effect works now which is great!
With that said, all I need to figure out right now is:
1. Ask the game to return an array of valid targets for the skill (based on states I do/don't want them to have and whether they're alive/exist in the troop),
2. Find an efficient way to match the variable only to the returned indexes on button input inside the loop (to the next lowest if the Left button is pressed and the next highest if the Right button is pressed, respectively), and
3. Place a picture above the enemy as rpgLord69 advised. I'm guessing that getting the coordinates for the enemy index would be the best way?