I want to create a trap that will be triggered if the player touches it, yet also can be disabled if the action button is pressed in front of it. Is there any way to have this possible because as of now only page 2 of the event takes place.
Page 1 Player touch triggered.
Page 2 Action Button Triggered
Page 1 Player touch triggered.
Code:
◆Common Event:Dex_check
◆Control Variables:#0001 d20 = Random 1..20
◆Control Variables:#0001 d20 += DEX+-
◆If:d20 > 15
◆Comment:\\Trap_Fails
◆Show Animation:Player, Fire One 1
◆Set Movement Route:Player (Wait)
: :◇1 Step Backward
◆Text:None, Window, Bottom
: :You just dodged a trap.
◆Control Self Switch:A = ON
◆
:Else
◆Comment:\\Trap_Hits
◆Show Animation:Player, Fire One 1 (Wait)
◆Change HP:Entire Party, - 200 (Allow Knockout)
◆Control Variables:#0001 d20 = Random 1..20
◆If:d20 < 13
◆Change State:Entire Party, + Burn
◆
:End
◆Control Self Switch:A = ON
◆
:End
Code:
◆Text:None, Window, Bottom
: :You located a Trap.
◆Common Event:Disable_Trap_Skill
◆If:TrapDisabled is ON
◆Text:None, Window, Bottom
: :You disabled the trap safely.
◆Change EXP:Entire Party, + 100 (Show Level Up)
◆Control Self Switch:A = ON
◆Control Switches:#0035 TrapDisabled = OFF
◆
:Else
◆Text:None, Window, Bottom
: :The trap was set off as you tried disable it.
◆Show Animation:Player, Fire One 1 (Wait)
◆Change HP:Entire Party, - 50 (Allow Knockout)
◆Control Variables:#0001 d20 = Random 1..20
◆If:d20 < 13
◆Change State:Entire Party, + Burn
◆
:End
◆Control Self Switch:A = ON
◆
:End