Step Counter on Damage Floor

● ARCHIVED · READ-ONLY
Started by Needle 1 posts View original ↗
  1. Good morning folks,

    I'm working on a map currently, and I think I may need some conceptual help. I've managed to work my way through some fairly intermediate event problems over the past couple months, but this one's got me stuck. I'm not sure if I'll require a script or not, but chances are I will, and that's a bit out of my wheelhouse still.

    I've got a map with "lava floor" style tiles. The intention of these tiles is not to cause damage, but to limit movement. In essence, the player will only be allowed to move along four consecutive tiles of "lava floor" until he or she must step on a normal tile. If the player steps on a fifth consecutive lava floor tile, the player will "lose" this puzzle and be transferred backwards to a constant point. There will be a picture element on screen to note how many steps the player has remaining.

    I really can't afford to throw an event on every single "lava floor" tile. It will just lag everything out. What I'm looking for is an elegant solution - maybe something with region IDs or terrain tags - but I don't have any experience working with these elements yet. I'm just looking for a little push in the right direction on this, and then hopefully I can solve the rest myself.

    Apologies for having no screenshots, as I haven't actually started building any events yet.

    Thanks in advance!

    EDIT: This thread got buried pretty quickly before anyone replied, but after doing some research I'm pretty sure I can do this with terrain tags. If anyone wants to jump in and further clarify the process, feel free to jump in!

    EDIT 2: Terrain Tags did the trick - wrote a little event that calls a common event that compares your previous X/Y position to your new X/Y position to determine if you've moved, then looks for the lava floor terrain tag and changes the heads up display. After it hits zero, you're transferred to a constant map coordinate and everything resets. Any time the event doesn't see the terrain tag, it also resets the counter. No scripts required!