trigger script

Hi I found this script for fileover on Mikrotik wiki: https://wiki.mikrotik.com/wiki/Failover_Scripting but I’ve never run a script before, I added it to the System->scripts but beyond that I don’t know how to add an event or something that will triggers the script when one of the lines is off. My apologies if this is a newbie question, I’ve tried to find examples but non of them apply to his kind of script. Any help will be really appreciated.

After using the script you have to do scheduler under (system scheduler) and add your script name inside “on Event” then set the timing in “scheduler” which will run your script