Advertisement
Hanryu

cardremove.cmd

Feb 25th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #
  2. # By Hanryu
  3. # Please report any bugs to Hanryu#0052 (discord) or sauva@play.net
  4. # This script may be reused in whole or in part as long as credit is given
  5. # This script is designed to use Outlander, http://outlanderapp.com
  6. #
  7.  
  8. if_1 then {goto top}
  9. echo ** .cardremove ALL
  10. echo ** Removes and stows one of every card in the held case
  11. echo ** .cardremove 1 2 3 4
  12. echo ** Removes and stows only the listed cards
  13. goto end
  14.  
  15. top:
  16. if contains(%1,all) then {
  17. var c 0
  18. all:
  19. math c add 1
  20. if %c > 150 then {goto end}
  21. gosub remove
  22. goto all
  23. }
  24. else {
  25. list:
  26. var c %1
  27. gosub remove
  28. shift
  29. if_1 then {goto list}
  30. goto end
  31. }
  32. }
  33. end:
  34. put #parse ** CARDREMOVE DONE **
  35. exit
  36.  
  37. #### Common Subroutines ####
  38. remove:
  39. match return You don't have
  40. match stow You slide
  41. send card rem %c
  42. matchwait
  43. stow:
  44. send stow card
  45. waitfor You put
  46. return:
  47. return
  48. ####
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement