Maybe co-ordinate comparing will do?
An assembly first checks the current pressed button:
Right and compare co-ordinates:
e,g: Left\Right, coordinate 0,1 from player, Sprite down.
Up, coordinate 0,1, Sprite down.
detects the sprite number in the map of a map that is set in a variable.
This is an example from Luminous Yellow.
msgbox @1 MSG_YESNO
compare LASTRESULT 0x1
if 0x0 call @end
setvar 0x7000 0x10
msgbox @3 0x6
= Ok!\nYour RIOLU is allowed.\lWould you like him\lto follow you around?
= Have fun~!
level script for houses
compare 0x7000 0x10
if 0x0 goto @end
I don't have the routine yet. T_T
All scripts copyrighted.