Trying to make a TRAP or OBSTACLE

I want to create trap(event) that only deals damage to character when character steps on it while in "4" or "Self switch C".


But the process will not stop and repeat from 1 to 4 again over and over.


Pls see picture below.


By the way its a floor trap or obstacle that moves up ann down, and characters can only pass when its down(see pics below).


WHen hero touch the event while at 2,3,and 4, it gain damage and jump backward so that they cannot pass. 


Thanks!


$Obstacle.png


Untitled.png
we would need to see your event code to help, in this case the custom movement sequence.


Because basically, all you need to do is have the damage on player touch on the fourth page, and wait between the switches on autonomous movement.
i tried making self switches from a to c (2 to 4th tab) then deals damge if 2,3,4, all set to parallel but the problem , i cant make the event repeat again to 1st tab. it stops and stays at 4th tab.


I set tab 1 as switch D, then create parallel to tab 4 to self switch to D. it stays in 4th tab.
You need to set the switches that you turned on to off again to go back to the previous pages.
RPG Maker looks at the event page with the highest number first, in your case page #4. If all the conditions on that page are met, that page is executed and the other pages are ignored; I believe that is why your event doesn't work. Please show your other event pages as well, so that we can see what is going on there.
RPG Maker looks at the event page with the highest number first, in your case page #4. If all the conditions on that page are met, that page is executed and the other pages are ignored; I believe that is why your event doesn't work. Please show your other event pages as well, so that we can see what is going on there.

I made a event before the trap that activates it whne player touch it. 


But the trap stays in 4rth tab and didnt go back to 1st tab to repeat the cycle.


Another one is, when i set to parallel, the damage recieved by the hero automatically even not touching the trap, of course because of the parallel process.


so I removed the parallel thing, then the hero can pass freely w/o damage 😀

View attachment bandicam 2016-10-09 19-40-14-499.mp4
Sorry, I cant use HIDE TAG

1.png

2.png

3.png

4.png
Your last page is wrong. It should be set to turn off self-switches A, B and C.


Also, there is no wait in those pages. it would all happen instantly.


But to be honest you should not be using self-switches, but a variable, with pages 2 to 4 set for the variable values 1 to 3. This way you could set the event pages to PlayerTouch and the ones to do damage to do it, and your other event would just need to make change the variable by adding one every few seconds and resetting to 0 at the end.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-a-trap-or-obstacle.69432/