there, your question is discussed in great detail, with pictures and examples
well, if you're too lazy to read, then try this function in the script:
Trigger(REGION_ENTER_AND_STOP_TRIGGER, sRegionName, sProc)
The procedure is called when any hero stops in a region named sRegionName. The name of this hero is passed to the procedure as a parameter.