MyGameCompany wrote:Question: is there a way to trigger some text when the user walks over a tile (or region of tiles) on a map? I don't really want to use a signpost, and would rather auto-show some text when the user enters an area.
There are two possibilities. Create an object on the tile and choose one of these two.
One possibility is the tile-triggered action. Whatever script you associate with the object will execute when the player steps on the tile. Traps are perhaps the most obvious use for this, but you could have it display a message.
There is also a proximity-triggered action. This will execute when the player comes within one tile of the object's location. This is useful if there isn't a choke point one tile wide where the player is guaranteed to go, but since it only triggers when the player is next to the object, the choke point still needs to be three tiles wide to guarantee that the player won't miss it. If the area is wider than this, you will need multiple objects, and whichever one the player steps on will need to destroy the other objects if you don't want the message to keep repeating.
Whichever method you use, the correct script will be msg (text) ; destroy_script. (Remember to use destroy_script if you only want the message to display the first time the player walks over or next to the tile.)
I used both of these objects extensively in the mod I created recently, so if you need examples, you can find plenty in my mod, and I'm sure you could easily find some in the original game. These objects are very useful tools, not just for displaying messages, but also for setting devious traps, spawning surprise monsters, and numerous other purposes.