-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gate_5.bat
50 lines (45 loc) · 1.22 KB
/
Gate_5.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
:: Speed Resonator Gate
:: Function to display the gate status
:display_status
cls
echo -------------------------------------------------
echo Speed Resonator Gate 5 : Control Panel
echo -------------------------------------------------
echo.
echo Gate Status: %gate_status%
echo.
if "%gate_status%" == "Active" (
echo Objects inside the gate are slowed down.
) else (
echo Objects inside the gate are moving at Multiple Major Entity speed.
)
echo -------------------------------------------------
echo.
echo [1] Activate Gate
echo [2] Deactivate Gate
echo [3] Exit
echo.
set /p choice=Please select an option (1-3):
:: Process user choice
if "%choice%" == "1" goto activate_gate
if "%choice%" == "2" goto deactivate_gate
if "%choice%" == "3" goto exit
goto display_status
:: Function to activate the gate
:activate_gate
set gate_status=Active
echo Activating the gate...
timeout /t 2 /nobreak >nul
goto display_status
:: Function to deactivate the gate
:deactivate_gate
set gate_status=Inactive
echo Deactivating the gate...
timeout /t 2 /nobreak >nul
goto display_status
:: Exit the simulation
:exit
echo Exiting the simulation...
timeout /t 2 /nobreak >nul
exit