Relic Castle

Hello, I'm trying to create an ability that will trigger Tailwind whenever the Pokemon with the ability is dropped below half of its hp. I've looked around to see if I could perhaps splice the sand stream and torrent-like effects, but I really have no idea how to start implementing this - I suck at coding. Any help would be appreciated, thank you.
Top