Touch Event Not Working Now

So, I was working on a game before my laptop stopped working. I was able to recover the file. Before my laptop stopped working this event worked just fine. Now, it won't work at all.  I have no clue why. This is exactly the way the event was set up when it was working before. The second page is just a self switch to turn off the even once the battle is won.


Here is the screenshot of the event set up.


VXScreenshot_zpsukiytuxu.png



I tried setting it to same as character, player touch, etc. No combination I've tried is working now. What I want it to do is have the zombie boss show up on the screen after the player steps on a certain tile and then the battle ensues. Once the battle is won it won't show up again. That's the goal anyway.


Could anyone tell me why this suddenly stopped working and how I can fix it?


Thank You,


Bynks
The page condition has: Zombie Appear. Maybe that switch isn't on...
@Rinobi It's on. Just doesn't seem to work. To further clarify, I have the boss appearing right in front of the player. So, I have another event set up on the tile above this one to show the boss. But, it's only to show the image of the boss. Nothing more. Within this event the switch was never on. It was just set to have a control switch with Zombie Appear=On in the contents section. When I looked up how to create this type of encounter this was how I was shown to do it.


I did try to turn on the Zombie Appear switch within this event as well but that didn't help either.
You need below player, player touch. Event touch doesn't work for events that are below the player unless the event somehow moves into the player (which isn't going to happen with your setup). Change it to player touch and then provided the switch is set up right, it will work.


PS: Try disabling the requirement for the switch too, if player touch doesn't work. If it works then, the problem is the switch isn't on. Also what is your page 2? Depending on how you set up page 2, that may be always running, which will make page 1 never run. Remember pages run from highest number working backwards, so if page 2 is always valid, page 1 will never trigger.
If that switch isn't on when the player walks over the tile, the page's conditions will not be checked at all.


Unless I've misunderstood you, it seems like you tried to turn the switch on within this event's page, which will not work.


Either remove that page condition, or ensure that the switch is on before the player walks over the tile.


@bgillisp Event Touch and Player Touch are the same, the only difference being that the event can also move into the player to activate. Basically it's a more sensitive version of Player Touch. 
@bgillisp


So, I unchecked the conditions switch for zombie appear and it worked, but now after the battle the image of the zombie won't go away. It just stays there. On my second page the only thing that is there is the self switch A.  No graphic, or anything in the contents section. Self switch a is only on if the person wins the battle. Once the battle is won, however, the zombie graphic remains. Do I need to turn back on transparency of event number 9 to make the image disappear after battle?


@Rinobi The switch itself was on in another event right above this one because that is where I want the zombie to appear. I also had the switch selected in the event that I have the screenshot of. Apparently, having it switched on in the screenshot event was what was causing the issue. Though, I'm not sure why. Doesn't make sense to me, but it worked after I turned it off. I hope I'm making myself clear enough. I have a hard time explaining things in forums sometimes.
That's the problem. Your page 2 had no conditions, so it was always running. You need to add a condition to page 2 to run when self switch A is on, then it should run page 1 then page 2.


@Rinobi: Not completely. I've had events that are below player -> event touch not trigger but below player -> player touch trigger. It's rare for the difference to show though, but they are treated differently inside the system and that little difference can break the game if you are not careful. Basically, player touch runs when the player runs into the event, event touch runs when the event runs into the player, which isn't always the same thing.
@bgillisp, I think you are misunderstanding. The second page is set up so that self switch A is ON.  However, it is only on when the player wins the battle against the Boss. It is that way so that the event won't be repeatable. It essentially ends the event. So, page two is not running first because the player has to win the battle before page two is even active. IF you look at the screenshot under Battle Processing the If Win condition is set to activate Self Switch A = ON, which is located in the second page. There are no other conditions set because there is nothing that is supposed to happen after the battle. Except for the image of the boss to disappear. Which, now it won't. The battle is not repeatable, which was my aim, but the image needs to go away as well.
That Zombie Appear switch is global, so when you say " The switch itself was on in another event " it doesn't really compute. A global switch can only be turned on or off, it doesn't exist within events themselves. That's why I said the switch has to be on before the player steps over the tile. If you want to check which switches are on and off, you can press F9 in-game to get a list of Switches and Variables and their values.


That aside, the page which activates the Zombie Event doesn't need a page condition itself. Just have it turn the switch on within the event list. The page condition only needs to be on for the event which displays the zombie graphic. When the battle is over (if you win), turn the Zombie Appear off there (The same place you have your Self Switch A in the screenshot).


Edit: Here's what I mean.

Spoiler
zombie_event_00.PNGzombie_event_01.PNG
@Rinobi, I know that. The global switch itself is on. I had the switch turned on within the event where I wanted the zombie to appear. There were no other conditions in that event aside from turning on the zombie appear switch in that specific event. That part was not my problem. I had to turn off the zombie appear condition switch in the event where I started the battle to get the scene and the battle to work. Once I did that the battle worked. I guess I can't make it more clear than that. Suffice to say the global switch being off wasn't my issue.


However, I will go and turn off the zombie appear in the if win section and see if that works. Fingers crossed, my problem will be fully solved.


Edit: That didn't work. The image of the zombie is still in place after the player wins.


Edit 2: Oh. Okay. I see what you mean. I sort of had it set that way but not exactly. I'll go do that.


Edit 3: Okay! That made the image disappear at the end of battle. I'll tweak the frames a bit, but I believe my problem is now fixed. The timing is off. It appears a tad faster than I want. Other than that I should be good. Thank you very much for your help! I'm sorry I was unable to explain better.
Ok..Can you please post screenshots of all related events? this means all pages for the touch event plus the zombie graphic itself.  This way theres no more guessing as with only one of the three relevant parts its tough to tell what's going on
@bgillisp, it's okay. Rinobi was able to help me out. Thank you for trying though. I do appreciate it. 😀 I was able to work out the timing and the even works perfectly now. This can be closed out.
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.

Original thread: https://forums.rpgmakerweb.com/threads/touch-event-not-working-now.69165/