Attempting to make an encounter system similar to wild arms 3 (Please let me know if this is in the wrong forum)

It was almost working before but now I am getting frustrated so thought I'd ask for help -_-; I am using visustella plugins in my project to call a common event when walking in a specific region.

Spoiler: Spoilered for length
◆Control Variables:#0004 Random Battles 1 += Random 1..2
◆If:Random Battles 1 ≥ 40
◆Show Balloon Icon:Player, Exclamation
◆Set Movement Route:Player
: :◇Direction Fix ON
◆Plugin Command:VisuMZ_1_EventsMoveCore, Player Movement: Control
: :Enable? = false
◆If:Evade Energy > 0
◆Control Timer:Start, 0 min 5 sec
◆If:Timer ≥ 0 min 1 sec
◆If:Button [Shift] is being pressed
◆Control Variables:#0003 Evade Energy -= 1
◆Control Variables:#0004 Random Battles 1 = 0
◆Control Timer:Stop
◆Plugin Command:VisuMZ_1_EventsMoveCore, Player Movement: Control
: :Enable? = true
◆Set Movement Route:Player
: :◇Direction Fix OFF
◆
:Else
◆If:Button [OK] is being pressed
◆Plugin Command:VisuMZ_1_EventsMoveCore, Player Movement: Control
: :Enable? = true
◆Set Movement Route:Player
: :◇Direction Fix OFF
◆Battle Processing:Random Cave Mobs
:If Win
◆If:Evade Energy < 10
◆Control Variables:#0003 Evade Energy += 1
◆
:End
◆Control Variables:#0004 Random Battles 1 = 0
◆
:If Escape
◆Control Variables:#0004 Random Battles 1 = 0
◆
:End
◆Control Timer:Stop
◆
:End
◆
:End
◆
:End
◆
:Else
◆Plugin Command:VisuMZ_1_EventsMoveCore, Player Movement: Control
: :Enable? = true
◆Set Movement Route:Player
: :◇Direction Fix OFF
◆Battle Processing:Random Cave Mobs
:If Win
◆If:Evade Energy < 10
◆Control Variables:#0003 Evade Energy += 1
◆
:End
◆Control Variables:#0004 Random Battles 1 = 0
◆
:If Escape
◆Control Variables:#0004 Random Battles 1 = 0
◆
:End
◆
:End
◆
:End
Welcome to this forum. It is a correct place; I know because you use VisuStella which create MZ plugins.
Please adding more contexts of wild arms 3 encounter system in order for the members who didn't play wild arm 3 to help you with the logic sequence of events.
Oh right sorry ^_^; So in Wild Arms 3 when you are about to get into combat an exclamation point appears above your head, if you hit confirm you should get a preemptive attack on the encounter, if you hit cancel (can we seperate that from the menu, I set it to shift for now since cancel just pulls up the menu) you evade the battle and lose a point from a meter. If you win a combat the meter goes back up, if the meter reaches 0 then you cannot evade and the battle will happen with a higher chance of sneak attack. And if you fail to strike or evade when the icon vanishes you will automatically go into the battle.
ok, now we get the details of the system Next, @lavasechui, you would like the menu to separate from the hit or the skip choices, correct? Do you want something like show choices commands?
Well I wanted it more like a reaction click where you see the icon then press to fight or escape but I might have to use show text instead since I'm not sure what to do at this point... (also is there a way to hide the timer?)

Edit: I have to go to work soon, so might not be able to reply back promptly for a while.
Maybe try this new plugin:
Almost have it working now... did a loop to check for the button presses, also switching from is pressed to triggered

Edit: Got it!! I added Eli Timer and now it looks like this and works pretty much how I want it. XD just wish I could actually hide the timer itself...
Spoiler: Spoilered for length
◆Control Variables:#0004 Random Battles 1 += Random 1..2
◆If:Random Battles 1 ≥ 40
◆If:Evade Energy > 0
◆Show Balloon Icon:Player, Exclamation
◆Plugin Command:EliMZ_Timer, Resume
◆Plugin Command:EliMZ_Timer, Start / Add / Remove - Timer
: :Minutes = 0
: :Seconds = 1.5
◆Loop
◆If:Timer ≤ 0 min 0 sec
◆Plugin Command:EliMZ_Timer, Pause
◆Plugin Command:EliMZ_Timer, Start / Add / Remove - Timer
: :Minutes = 0
: :Seconds = 0
◆Battle Processing:Same as Random Encounters
:If Win
◆Control Variables:#0004 Random Battles 1 = 0
◆If:Evade Energy < 10
◆Control Variables:#0003 Evade Energy += 1
◆
:End
◆
:If Escape
◆Control Variables:#0004 Random Battles 1 = 0
◆
:End
◆Break Loop
◆
:End
◆If:Button [OK] is being triggered
◆Control Variables:#0005 Timer = $gameTimer.seconds()
◆Plugin Command:EliMZ_Timer, Pause
◆Plugin Command:EliMZ_Timer, Start / Add / Remove - Timer
: :Minutes = 0
: :Seconds = -\v[5]
◆Battle Processing:Same as Random Encounters
:If Win
◆Control Variables:#0004 Random Battles 1 = 0
◆If:Evade Energy < 10
◆Control Variables:#0003 Evade Energy += 1
◆
:End
◆
:If Escape
◆Control Variables:#0004 Random Battles 1 = 0
◆
:End
◆Break Loop
◆
:End
◆If:Button [Cancel] is being triggered
◆Control Variables:#0005 Timer = $gameTimer.seconds()
◆Plugin Command:EliMZ_Timer, Pause
◆Plugin Command:EliMZ_Timer, Start / Add / Remove - Timer
: :Minutes = 0
: :Seconds = -\v[5]
◆Control Variables:#0003 Evade Energy -= 1
◆Control Variables:#0004 Random Battles 1 = 0
◆Break Loop
◆
:End
◆
:Repeat Above
◆
:Else
◆Show Balloon Icon:Player, Exclamation (Wait)
◆Battle Processing:Same as Random Encounters
:If Win
◆Control Variables:#0004 Random Battles 1 = 0
◆If:Evade Energy < 10
◆Control Variables:#0003 Evade Energy += 1
◆
:End
◆
:If Escape
◆
:End
◆
:End
◆
:End

Original thread: https://forums.rpgmakerweb.com/threads/attempting-to-make-an-encounter-system-similar-to-wild-arms-3-please-let-me-know-if-this-is-in-the-wrong-forum.127635/