path = GetMapDataPath()`. You can also remove two unnecessary do-end pairs, but this is purely for aesthetics.
And yes, I would be very grateful to anyone who could explain to me which parameters are actually passed to the function related to the touch trigger.