Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
So I can easily get all the targets I need and put them into variables and such, but when I have them I have to use a million conditional branches for each possible instance/value of a variable and have a forced action command hit a corresponding enemy.
Is there a way to simply call up the interpreter and put in my own values instead of using the presets they have?
Like instead of forced action: target index 1. Could I do...
forced action: target index $game_variables
The skill itself (here id9) needs to call a common event to call a script command that has...
$game_actors[3].at = $game_variables[1]
This is so the players CT/ATB doesn't reset after counter attacking (unless you want that). I've done it without calling a common event via the skill, but it doesn't seem to be working consistently. Though I'm sure it's very possible and easy.
This code is placed underneath...
# In case of on-target hit
if hit_result == true
around line 2846 in RTAB v1.16
EDIT!
ACK! I have a new problem now. I didn't happen as a battle event, but now it freezes. In my game I keep track of 'combos' via the enemy sp. When the combo reached a certain number a certain character would automatically attack. One skill he uses this way hits all enemies and, as you may have guess, this could cause another enemy to reach the 3rd hit in a combo so he would attack again. It worked perfectly as a battle event, but as code (very similar to the counter attack code only Game_Enemy self.sp == 3 activates it instead of a character being struck. It works fine as one execution, but if that chaining of skills occurs the battle gets caught up in a loop or something.
DOUBLE VISION EDIT TIDE NOISIV ELBUOD
Sooooorta... Got it fixed. I kept running it through an event command to get the skill chaining effect I wanted, but in order to assign id's instead of indexes, I just rewrote the interpreter within RTAB!