Advertisement
tcl1

[Batch] Health bar in .bat file

Oct 31st, 2013
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. @echo off
  2. cls
  3. goto misc
  4. :misc
  5. set /a health+=10
  6. set healthdisplay=[][][][][][][][][][]
  7. set warning=Health is fine!
  8. goto health
  9. :health
  10. cls
  11. echo %warning%
  12. echo %healthdisplay%
  13. echo Press D to take health.
  14. echo Type exit to exit.
  15. set /p take=
  16. if %take% equ D goto s
  17. if %take% equ exit exit
  18. :s
  19. set /a health-=1
  20. goto check
  21. :check
  22. if %health%==9 set healthdisplay=[][][][][][][][][]
  23. if %health%==8 set healthdisplay=[][][][][][][][]
  24. if %health%==7 set healthdisplay=[][][][][][][]
  25. if %health%==6 set healthdisplay=[][][][][][]
  26. if %health%==5 set healthdisplay=[][][][][]
  27. if %health%==4 set healthdisplay=[][][][]
  28. if %health%==3 set healthdisplay=[][][]
  29. if %health%==2 set healthdisplay=[][]
  30. if %health%==1 set healthdisplay=[]
  31. if %health%==0 goto 0
  32. goto health
  33. :0
  34. set healthdisplay=0
  35. set warning=Health has depleted!
  36. goto health
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement