How can you make a script trigger an event if the player is located at a certain x and y position?
i.e: Display Hud Text when the player is standing at x=2 and y=8
Thanks
Code: Select all
function positionsay
hudPrint ("Stepping here has made these words appear!")
endThanks so much. Never saw the Hidden Pressure Plate.Neikun wrote:This would be very easy. A matter of choosing your pressure plate (hidden, or tileset) and putting a connection to you lua script function.
Put the pressure plate at the desired x,y
When the party steps on it, the hudPrint will activate.
Helpful reading:
http://www.grimrock.net/modding/introdu ... scripting/
Code: Select all
function positionsay hudPrint ("Stepping here has made these words appear!") end