one way to pull that off would be to hardcode it if you dont use it in too many screens.
you can use tileX and tileY to get the coordinates of the tile you're interacting with, and compare that,
like if the tile is at X #$80 store room number of room 1 to temp, then replace arg0 with temp, and if the tileX is #$90 store room 2 number to temp.
that will make you warp into different rooms based on where you place the tile on the screen.
it works but it will bloat the script really fast if you use it a lot, as you will have to hardcode any tile position to the script you want to use, and you also cant use the same position in 2 screens or they would both warp you to the same location.