eventing a horse race festival and figuring out how to determine a winner?

so im making (trying is the real term) to make a horse race, i have most every thing set up. but the only thing stopping me is figuring out how to determine a winner horse.
what im doing is making a finish line event and making it collide with the horse event using hime's custom trigger script. (ps i havent said this before but i have a learning disability so please bare with me !)
if screen shots are needed please let me know! all help is appreciated!
Yeah, I think you should post the screen shots 😀
Update: i got it to work, some kind people of discord helped!

Original thread: https://forums.rpgmakerweb.com/threads/eventing-a-horse-race-festival-and-figuring-out-how-to-determine-a-winner.148053/