Batch Index du Forum
S’enregistrerRechercherFAQMembresGroupesConnexion
Répondre au sujet Page 1 sur 1
jeux de deplacements
Auteur Message
Répondre en citant
Message jeux de deplacements 
bonjour a tous ! Very Happy
mon programme n'affichent pas tjr la variable "chest" et "key" ,Pourquoi ?
merci d'avance

Code:

echo off
mode 44,18
color 3E
TITLE Chest by PL
::sur batch.xoo.it :SKYSEVEN33::
setlocal enabledelayedexpansion
 
:Restart
set time=0
set c=3
set sckey=0
set score=0
set info=
set "cur="
set "p1="
set "p2= "
set "p3= "
set t=1
:Menu
cls
echo.
echo.
echo.
echo.
echo.
echo.               %p1% COMMENCER
echo.               %p2% AIDE
echo.               %p3% QUITTER
echo.
choice.exe /c:hbv /n
if %errorlevel%==3 goto :V
if %errorlevel%==2 goto :B
if %errorlevel%==1 goto :H
goto :Menu
 
:H
if not %t%==1 set "p%t%="&set /a t-=1
set p%t%=%cur%
goto :Menu
 
:B
if not %t%==3 set "p%t%="&set /a t+=1
set p%t%=%cur%
goto :Menu
 
:V
if %t%==1 goto :Add
if %t%==2 goto :Help
if %t%==3 cls&ping localhost -n 2 > nul&exit
goto :Menu
 
:Mouv
cls
set x-%x%-y-%y%=
if %c%==3 set vie=
if %time%==2 set info=
if %time%==1 set /A time+=1
if !x-%x%-y-%y%!==!%mine%! goto :Loose
if !x-%x%-y-%y%!==!%mine2%! goto :Loose
if !x-%x%-y-%y%!==!%mine3%! goto :Loose
if !x-%x%-y-%y%!==!%mine4%! goto :Loose
if !x-%x%-y-%y%!==!%mine5%! goto :Loose
if !x-%x%-y-%y%!==!%mine6%! goto :Loose
if !x-%x%-y-%y%!==!%mine7%! goto :Loose
if !x-%x%-y-%y%!==!%mine8%! goto :Loose
if !x-%x%-y-%y%!==!%chest%! call :chest
if !x-%x%-y-%y%!==!%key%! call :info1
echo.
echo. ÚÄÄÄÄÄÄÄÄÄÄÄ¿
echo. ³%x-0-y-0%%x-0-y-1%%x-0-y-2%%x-0-y-3%%x-0-y-4%%x-0-y-5%%x-0-y-6%%x-0-y-7%%x-0-y-8%%x-0-y-9%%x-0-y-10%³
echo. ³%x-1-y-0%%x-1-y-1%%x-1-y-2%%x-1-y-3%%x-1-y-4%%x-1-y-5%%x-1-y-6%%x-1-y-7%%x-1-y-8%%x-1-y-9%%x-1-y-10%³                  Vie : [%vie%]
echo. ³%x-2-y-0%%x-2-y-1%%x-2-y-2%%x-2-y-3%%x-2-y-4%%x-2-y-5%%x-2-y-6%%x-2-y-7%%x-2-y-8%%x-2-y-9%%x-2-y-10%³                  Score : %score%
echo. ³%x-3-y-0%%x-3-y-1%%x-3-y-2%%x-3-y-3%%x-3-y-4%%x-3-y-5%%x-3-y-6%%x-3-y-7%%x-3-y-8%%x-3-y-9%%x-3-y-10%³                   cl‚ : %sckey%
echo. ³%x-4-y-0%%x-4-y-1%%x-4-y-2%%x-4-y-3%%x-4-y-4%%x-4-y-5%%x-4-y-6%%x-4-y-7%%x-4-y-8%%x-4-y-9%%x-4-y-10%³
echo. ³%x-5-y-0%%x-5-y-1%%x-5-y-2%%x-5-y-3%%x-5-y-4%%x-5-y-5%%x-5-y-6%%x-5-y-7%%x-5-y-8%%x-5-y-9%%x-5-y-10%³
echo. ³%x-6-y-0%%x-6-y-1%%x-6-y-2%%x-6-y-3%%x-6-y-4%%x-6-y-5%%x-6-y-6%%x-6-y-7%%x-6-y-8%%x-6-y-9%%x-6-y-10%³
echo. ³%x-7-y-0%%x-7-y-1%%x-7-y-2%%x-7-y-3%%x-7-y-4%%x-7-y-5%%x-7-y-6%%x-7-y-7%%x-7-y-8%%x-7-y-9%%x-7-y-10%³
echo. ³%x-8-y-0%%x-8-y-1%%x-8-y-2%%x-8-y-3%%x-8-y-4%%x-8-y-5%%x-8-y-6%%x-8-y-7%%x-8-y-8%%x-8-y-9%%x-8-y-10%³ 
echo. ³%x-9-y-0%%x-9-y-1%%x-9-y-2%%x-9-y-3%%x-9-y-4%%x-9-y-5%%x-9-y-6%%x-9-y-7%%x-9-y-8%%x-9-y-9%%x-9-y-10%³
echo. ³%x-10-y-0%%x-10-y-1%%x-10-y-2%%x-10-y-3%%x-10-y-4%%x-10-y-5%%x-10-y-6%%x-10-y-7%%x-10-y-8%%x-10-y-9%%x-10-y-10%³  %info%
echo. ÀÄÄÄÄÄÄÄÄÄÄÄÙ
echo.
if %c%==0 goto:Fin
:Move
choice.exe /c:hbdg /n
if %errorlevel%==4 goto :Left
if %errorlevel%==3 goto :Right
if %errorlevel%==2 goto :Down
if %errorlevel%==1 goto :Up
goto :Move
 
:Down
if not %x%==10 set "x-%x%-y-%y%= "&set /a x+=1
goto :Mouv
 
:Up
if not %x%==0 set "x-%x%-y-%y%= "&set /a x-=1
goto :Mouv
 
:Right
if not %y%==10 set "x-%x%-y-%y%= "&set /a y+=1
goto :Mouv
 
:Left
if not %y%==0 set "x-%x%-y-%y%= "&set /a y-=1
goto :Mouv
 
:Add
FOR /l %%A in (0,1,10) do (
  set "x-0-y-%%A= "
  set "x-1-y-%%A= "
  set "x-2-y-%%A= "
  set "x-3-y-%%A= "
  set "x-4-y-%%A= "
  set "x-5-y-%%A= "
  set "x-6-y-%%A= "
  set "x-7-y-%%A= "
  set "x-8-y-%%A= "
  set "x-9-y-%%A= "
  set "x-10-y-%%A= "
 )
 
set /a keyx=%random%%%11
set /a keyy=%random%%%11
set /a chestx=%random%%%11
set /a chesty=%random%%%11
set /a minex=%random%%%11
set /a miney=%random%%%11
set /a mine2x=%random%%%11
set /a mine2y=%random%%%11
set /a mine3x=%random%%%11
set /a mine3y=%random%%%11
set /a mine4x=%random%%%11
set /a mine4y=%random%%%11
set /a mine5x=%random%%%11
set /a mine5y=%random%%%11
set /a mine6x=%random%%%11
set /a mine6y=%random%%%11
set /a mine7x=%random%%%11
set /a mine7y=%random%%%11
set /a mine8x=%random%%%11
set /a mine8y=%random%%%11
 
if %keyx% LEQ 6 goto :Add
if x-%minex%-y-%miney%==x-0-y-0 goto :Add
if x-%mine2x%-y-%mine2y%==x-0-y-0 goto :Add
if x-%mine3x%-y-%mine3y%==x-0-y-0 goto :Add
if x-%mine4x%-y-%mine4y%==x-0-y-0 goto :Add
if x-%mine5x%-y-%mine5y%==x-0-y-0 goto :Add
if x-%mine6x%-y-%mine6y%==x-0-y-0 goto :Add
if x-%mine7x%-y-%mine7y%==x-0-y-0 goto :Add
if x-%mine8x%-y-%mine8y%==x-0-y-0 goto :Add
 
if %mine2x%-%mine2y%==%keyx%-%keyy% goto :Add
if %mine3x%-%mine3y%==%keyx%-%keyy% goto :Add
if %mine4x%-%mine4y%==%keyx%-%keyy% goto :Add
if %mine5x%-%mine5y%==%keyx%-%keyy% goto :Add
if %mine6x%-%mine6y%==%keyx%-%keyy% goto :Add
if %mine7x%-%mine7y%==%keyx%-%keyy% goto :Add
if %mine8x%-%mine8y%==%keyx%-%keyy% goto :Add
 
if %mine2x%-%mine2y%==%chestx%-%chesty% goto :Add
if %mine3x%-%mine3y%==%chestx%-%chesty% goto :Add
if %mine4x%-%mine4y%==%chestx%-%chesty% goto :Add
if %mine5x%-%mine5y%==%chestx%-%chesty% goto :Add
if %mine6x%-%mine6y%==%chestx%-%chesty% goto :Add
if %mine7x%-%mine7y%==%chestx%-%chesty% goto :Add
if %mine8x%-%mine8y%==%chestx%-%chesty% goto :Add
 
if x-%chestx%-y-%chesty%==x-0-y-0 goto :Add
if x-%keyx%-y-%keyy%==x-0-y-0 goto :Add
 
set "x-%x%-y-%y%= "
set x=0&set y=0
 
set x-%keyx%-y-%keyy%=´
set x-%chestx%-y-%chesty%=þ
set x-%minex%-y-%miney%=x
set x-%mine2x%-y-%mine2y%=x
set x-%mine3x%-y-%mine3y%=x
set x-%mine4x%-y-%mine4y%=x
set x-%mine5x%-y-%mine5y%=x
set x-%mine6x%-y-%mine6y%=x
set x-%mine7x%-y-%mine7y%=x
set x-%mine8x%-y-%mine8y%=x
 
set chest=x-%chestx%-y-%chesty%
set key=x-%keyx%-y-%keyy%
set mine=x-%minex%-y-%miney%
set mine2=x-%mine2x%-y-%mine2y%
set mine3=x-%mine3x%-y-%mine3y%
set mine4=x-%mine4x%-y-%mine4y%
set mine5=x-%mine5x%-y-%mine5y%
set mine6=x-%mine6x%-y-%mine6y%
set mine7=x-%mine7x%-y-%mine7y%
set mine8=x-%mine8x%-y-%mine8y%
goto :Mouv
 
:Loose
set /a score-=50
set /a c-=1
if %c%==2 set "vie= "
if %c%==1 set "vie=  "
if %c%==0 set "vie=   "
goto :Add
 
:chest
if %sckey%==1 ( set /A score+=100
set sckey=0
set time=1
set info=+100 points ^^!
goto :Add)
goto :info2
 
:info1
set sckey=1&set time=1&set info=cl‚ recuper‚ ^^!
goto :Eof
 
:info2
set time=1&set info=il vous faut une cl‚ ^^!
goto :Add
 
:Help
cls
echo.
echo.
echo.
echo.   HAUT : H   BAS: B 
echo.   DROITE : D   GAUCHE : G 
echo.   VALIDER : V
echo.
pause>nul
goto :Menu
 
:Fin
cls
echo.
echo.
echo.
echo.        Vous avez perdu ^^!^^!:(
echo.
echo.
ping localhost -n 3 > nul
goto :Restart




Visiter le site web du posteur
Message Publicité 
PublicitéSupprimer les publicités ?


Montrer les messages depuis:
Répondre au sujet Page 1 sur 1
  



Index | créer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Copyright 2008 - 2016 // Batch