Benutzer:Techno DJ/NPC-Script
Aus chessmail Wiki
Zum Video
Script
@echo off title NPC color C
:int set w1=@ set w2=_ set w3=_
:start cls echo %w1% %w2% %w3%
timeout /t 1 /nobreak > nul
:random set /a "npc=%random% %% 5+1"
if "%npc%"=="1" goto links if "%npc%"=="2" goto links if "%npc%"=="3" goto rechts if "%npc%"=="4" goto rechts if "%npc%"=="5" goto bleib
:links if "%w1%"=="@" goto random if "%w2%"=="@" set w1=@&&set w2=_&&goto start if "%w3%"=="@" set w2=@&&set w3=_&&goto start
:rechts if "%w1%"=="@" set w2=@&&set w1=_&&goto start if "%w2%"=="@" set w3=@&&set w2=_&&goto start if "%w3%"=="@" goto random
:bleib goto start