So, because I love pain, I'm trying to setup a few "battle awarded" traits for generals.
The basic premise is I run this when either side wins a ground battle (or, put another way, this script runs for the winner always - need to add a trigger for default countries only, later).
My goal in the red bit below, is to try and scope to the general of the winning army in a ground invasion so I can give them a trait. This doesnt work.
However, it doesnt scope to the general - possibly because they return to orbit on-victory. I think I've been staring at this too long and need a fresh perspective. Does anyone know of a less messy (and actually workable) way to scope to a general, from a planet, using the above 2 on-actions?
The basic premise is I run this when either side wins a ground battle (or, put another way, this script runs for the winner always - need to add a trigger for default countries only, later).

My goal in the red bit below, is to try and scope to the general of the winning army in a ground invasion so I can give them a trait. This doesnt work.


However, it doesnt scope to the general - possibly because they return to orbit on-victory. I think I've been staring at this too long and need a fresh perspective. Does anyone know of a less messy (and actually workable) way to scope to a general, from a planet, using the above 2 on-actions?