I use the Controller’s star but even if I do it, the script is not the first one to be executed (I use print to check).
Other controllers don’t use the star option.
Is the script priority connected to the position of an object in a hierarchy? (parent, child)
Hmm… I didn’t know that the star didn’t always work. Are you 100% sure that whatever is executing before it doesn’t have a star as well?
Well I do know that objects created last in Blender are executed first. So if you add 4 Cubes to the viewport and add the same script for each one, the last created Cube (named Cube.003 by default) will be the first one to be executed. So maybe knowing this could help your case.
The controller is inside the first state? If not consider using the “level” button inside the sensor brick or add a new one (sensor) for state 2 for example.