Mad Father Event

Hey everyone i need help,


I want to do a event like Mad Father, the event that press Z consecutive to open the door when a zombie eating the player.


I use RPG Maker VX Ace. 
I didn't play Mad Father, could you be more specific?
@Anonymous12345 We ask that people do not use the description "like [insert random game name here]" because that restricts the number of people who might be able to help you to just those people who happen to have played that game.


Describe exactly what you want to happen.  Under what circumstances, with what trigger, and with what effect.  Plus any other factors which might be important.  This will help people help you.
I think he means an action cut-scene like.


For example, someone is hunting you, you have to open the door. Press Z 50 times before you get caught to open the door.


If fail the event that is coming closer just touch you and you die.


So he probably needs a door event with conditional branches.


Let me suggest one:


On your game start,


Control Variables:


Name a variable DoorEvent1


and set it having value = 0


Control Switches:


Name a Switch DoorEvent1Open


and Set it to be OFF


Now on your door event:


On Page 1:


Conditional Branch: DoorEvent1 = 20


 Control Switches: DoorEvent1Open = ON


Else:


Play SFX (I hope you got one for a door hit)


DoorEvent1 Add 1


End


Create a new Event Page at the same Event. That will be page 2.


As graphic you will have an open door, set it below character.


This will have only one command on character touch: Tranfer player to another room.


Hope I helped you out to get a few ideas on how to make such a thing.



P.S:


You are lucky! If I hadn't played Mad Father, or never seen this thread I wouldn't reply.


I suggest you to follow what @Kes suggested in future so we can help you out easier.

Original thread: https://forums.rpgmakerweb.com/threads/mad-father-event.73416/