ON_STEP
ON_STEP
This Event is triggered when a hero takes a step on the specified cell.
NOTE: For this Event, it is possible to specify the REPEAT and LAST options.
NOTE: This Event also supports the optional parameter (cell).
- Example 1:
{[[(J), ON_STEP:REPEAT]] You hear a strange noise..}
- Example 2:
{[[(J), ON_STEP]] The floor of this corridor seems unstable..}
NOTE: with ON_STEP it can be useful to use the marker multiple times, in various positions. In this case, the Event is triggered in any of the cells with that specific Marker. (see Example 2)
- Example 3:
{[[(B), ON_STEP(E20)]] The floor of this tile seems unstable..}
- Example 4:
{[[(O), HIDE_ON(J6)]]}
{[[(O), ON_STEP:LAST]] [[SHOW(J6)]] As the heores run to get out of the crumbling lair. a block fall behind them.}
Attention: ON_STEP:LAST keeps track of all the Heroes (and NPCs) passing by, so if the same Hero passes back and forth over the cell indicated by the event, it will be recorded that the Hero has come back, and therefore it will not trigger until this hero passes over the cell again. Be careful when writing a quest with this Event, taking this possibility into account.