I want to create an assassin skill whereby the enemy automatically targets the actor with the lowest HP. Is there an efficient way to do this? As I am using a CTB system, I can't use anything that utilises 'turn', it has to be at the point that the enemy is going to act.
Thanks.
Can you screenshot your event mate?
your_enemy was a placeholder, Kes. You need to replace it with the actual enemy object that's going to be acting.
I think at this point you should just put me on retainer given how much I've helped you over the years. 😉
Yeah, confirmed that you'll need the select to remove dead members. If not, it'll try to target the dead one and then smooth_target will move on to the next available, but not necessarily the one with the lowest HP.
Did you try it with 3 actors where the first one in the list has the lowest HP to start, then the next lowest is actor #3? They should start targeting #2 when the first one dies instead of the weakest one.
The short answer is, no I didn't, not like that.
I just used my current battle party (5 members)
I used F6 to reduce all actors' HP to 1 before anything else.
I then had each actor guard until it was the enemy's turn to act. My Guard skill restores a small percentage of HP, so by the time the enemy acted 4 had guarded and recieved variable amounts of HP.
The enemy went for the actor that still only had 1 HP
Repeat, and when it got to the enemy's next turn it again went for the lowest and defeated him as his HP was still pretty low.
Repeat, and then the enemy went for the lowest, but that actor had enough HP by this time to survive the hit.