Entry into an Area Based on Time Waited

● ARCHIVED · READ-ONLY
Started by Strict_Gryphon90 5 posts View original ↗
  1. Hello everyone,

    I am trying to create a transfer event that will send the player into a dungeon after waiting for 5 seconds on a certain tile. If the player steps off the tile it resets the waiting timer back to zero and starts up again when the player steps on that tile. If you need an example, it's sorta like this:



    What I am trying to emulate is from 0:24 to 3:32. You don't need to watch the whole thing. Needless to say, the player stands in one spot for 3 minutes and is then transferred to the dungeon. Mine is the sane concept, but for only 5 seconds rather than 3 minutes.

    I've gotten really close to figuring it out but for some reason can't seem to get it. If anyone can figure this out or give me some hint as to what to do, it would be greatly appreciated.

    Also, I am using a script that allows me to control the self switch of an event with a different event.

    Thanks, Leifman7
  2. EDIT:

    Ok, so here we go.

    The easiest way is probably like that:

    -you need an event that represents the space you need to stand on

    -some events around the one above, to determine wether you left the one above or not

    http://dl.dropbox.co...98/Untitled.png

    Basicly walking on the flower patch in the middle would trigger the countdown, getting outside of it afterwards will stop it.

    The events to stop the countdown would look like that.

    http://dl.dropbox.co...8/Untitled1.png

    On player touch, below player and they set whatever switch you want to use to OFF.

    The event in the middle would look like that:

    -Page 1-

    http://dl.dropbox.co...8/Untitled2.png

    /Untitled2.png

    -Page 2-

    http://dl.dropbox.co...8/Untitled3.png

    /Untitled3.png

    On the first page we need 2 variables, one we set equal to the current playtime and one we set to how much time will have to pass.

    The we activate the switch you also use in the events around that one.

    That page will be on player touch and below player.

    On the 2nd page we need to check that switch in the options on the left, we will set the playtime variable equal to our playtime and then check with a condtiton if playtime = trigger and then teleport the player.

    Before you teleport, you also need to turn the switch used to OFF, else you would just teleport again if you revisit the area where you ported from.

    This page needs to be set to paralell process.
  3. Here's one that's more compact, and relies whether or not the player is standing on the same tile or not :)

    Use the script condition: $game_player.moving?

    Spoiler
    24gu5wg.png28lgo0j.png
  4. Thanks you two, I got it to work. Now I'm one step closer to finishing my project :) .
  5. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.