make an ability to use that does all the Town Portal stuff, and a boolean called bool
next, when the unit somehow acquires the scroll,
Set bool = true
next, when the unit casts the ability, add another condition saying bool Equal to True
and finally, in the actions of the town portal trigger,
Set bool = false.