Here's a script that makes the player character fart when standing on square (1, 1) while facing North. You'll want to adjust the co-ordinates as necessary, and replace the Speech line with your cutscene coding.
Label Loop
If ...
Wait for entity Player 1,1,1,1
If ...
Wait until var "_O" = 1
Speech "*fart*",Normal,Player,0,.
Go to Skip to End
If End
If End
Wait 0
Go to Loop
Label Skip to End
If you want to copy this into your game, copy it to your clipboard then press Ctrl+Shift+B in the character scripting area to paste it.
The useful thing here is that the direction the player is facing can always be accessed and changed via the variable _O (the O stands for "
Orientation"
). The numbers that represent which direction are as follows:
0 1 2
3 5
6 7 8
Note that the missing number 4 stands for "
no direction"
and is used for things that don't care about direction, like a mirror, a value of 4 makes no sense for players and monsters etc.