Advertisement
Guest User

start.bat

a guest
Dec 4th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 6.80 KB | None | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3.  
  4. set stage=start
  5. set startroom_key=0
  6.  
  7. :loop
  8. if not "!pchar!" == "" echo.
  9. call :%stage%
  10. if not "!pchar!" == "" (
  11.   echo 0^) Exit
  12.   set answers=%answers% 0
  13.   set actions=%actions% exit
  14. )
  15. set /p input=%ask%
  16. if not "%answers%" == "" (
  17.   set answer=
  18.   set num=0
  19.   for %%A in (%answers%) do (
  20.     if /i "%input%" == "%%A" (
  21.       set answer=%%A
  22.       set answerIndex=!num!
  23.     )
  24.     set/a num+=1
  25.   )
  26.   if "!answer!" == "" goto loop
  27.   if not "!pchar!" == "" if "!answer!" == "0" goto exit
  28.   call :%stage%_check 2>nul
  29.   set num=0
  30.   for %%A in (%actions%) do (
  31.     if !num! == !answerIndex! set action=%%A
  32.     set/a num+=1
  33.   )
  34.   set stage=!action!
  35.   if !stage! == exit goto exit
  36. ) else set stage=%actions%
  37. goto loop
  38.  
  39.  
  40. :start
  41. title Tales Of Trinia v0.01
  42. color f
  43. cls
  44. echo .######...####...##......######...####............####...######..........######..#####...######..##..##..######...####..
  45. echo ...##....##..##..##......##......##..............##..##..##................##....##..##....##....###.##....##....##..##.
  46. echo ...##....######..##......####.....####...........##..##..####..............##....#####.....##....##.###....##....######.
  47. echo ...##....##..##..##......##..........##..........##..##..##................##....##..##....##....##..##....##....##..##.
  48. echo ...##....##..##..######..######...####............####...##................##....##..##..######..##..##..######..##..##.
  49. echo ........................................................................................................................
  50. set ask=press enter to continue
  51. set answers=
  52. set actions=welcome
  53. goto :eof
  54.  
  55.  
  56. :welcome
  57. color f
  58. cls
  59. echo Welcome to the pre alpha of Tales Of Trinia.
  60. echo DO you want to read the lore of the game? (this is recommended for new players)
  61. echo.
  62. set ask=y/n?
  63. set answers=y n
  64. set actions=lore cselect
  65. goto :eof
  66.  
  67.  
  68. :lore
  69. title Intrduction
  70. color f
  71. cls
  72. echo.
  73. echo Trinia is a large city with three races living side by side: Humans, elves and fauns.
  74. echo each race has a protector blessed with magical abilities, these are called guardians
  75. echo and in this game you will play the role of one of them
  76. echo.
  77. echo go to character select or read more?
  78. echo.
  79. echo 1) Read more about the elves
  80. echo 2) Read more about the fauns
  81. echo 3) Read more about the humans
  82. echo 4) Go to character select
  83. echo 5) Go back
  84. set ask=
  85. set answers=1 2 3 4 5
  86. set actions=elflore faunlore humanlore cselect start
  87. goto :eof
  88.  
  89.  
  90. :elflore
  91. title Elves
  92. color f
  93. cls
  94. echo The elves are a noble and proud race. They prefer to keep to themselves as they see the other races as lesser beings, not worthy of their time. After the first war when Trinia was established
  95. echo a small group of council members moved to the city with the guardian to make sure the politics of the city would be favorable to the elves.
  96. echo.
  97. echo read more?
  98. echo.
  99. echo 1) Read more about fauns
  100. echo 2) Read more about humans
  101. echo 3) Go to character select
  102. echo 4) Go back
  103. set ask=
  104. set answers=1 2 3 4
  105. set actions=faunlore humanlore cselect start
  106. goto :eof
  107.  
  108.  
  109. :humanlore
  110. title Humans
  111. color f
  112. cls
  113. echo The humans are a race not native to the continent on which Trinia resides. After the first war they suddenly arrived at the harbor with counltess wounded, and so many refugees that Trinia had to be expanded
  114. echo to accomodate the newcomers. After settling down the humans have pioneered the scientific front of Trinia, providing artificial leylines to supply the entire city with all the mana it needs.
  115. echo.
  116. echo read more?
  117. echo.
  118. echo 1) Read more about elves
  119. echo 2) Read more about fauns
  120. echo 3) Go to character select
  121. echo 4) Go back
  122. echo.
  123. set ask=
  124. set answers=1 2 3 4
  125. set actions=elflore faunlore cselect start
  126. goto :eof
  127.  
  128.  
  129. :faunlore
  130. title Fauns
  131. color f
  132. cls
  133. echo The fauns are a race of goat like humanoids, with the lower body of a goat and the upper body of something between an elf and a human. The fauns are deeply attuned with nature and have a natural
  134. echo ability to sense the mana contents of their environments.
  135. echo.
  136. echo read more?
  137. echo.
  138. echo 1) Read more about elves
  139. echo 2) Read more about humans
  140. echo 3) Go to character select
  141. echo 4) Go back
  142. echo.
  143. set ask=
  144. set answers=1 2 3 4
  145. set actions=elflore humanlore cselect start
  146. goto :eof
  147.  
  148.  
  149. :cselect
  150. title Character select
  151. color f
  152. cls
  153. echo SELECT A CHARACTER
  154. echo.
  155. echo 1) Elora (elf)
  156. echo 2) Avalae (faun)
  157. echo 3) Enne (human)
  158. echo 4) Go back to the title
  159. echo 5) Exit
  160. echo.
  161. set ask=
  162. set answers=1 2 3 4 5
  163. set actions=elora avalae enne start exit
  164. goto :eof
  165.  
  166.  
  167. :elora
  168. title Elora intro
  169. color 6
  170. cls
  171. echo Elora is the elven guardian of Trinia.
  172. echo Her guardian ability is a limited range teleport that can take her to anywhere she has been before.
  173. echo.
  174. echo Play as Elora?
  175. set ask=y/n?
  176. set answers=y n
  177. set actions=startroom cselect
  178. goto :eof
  179.  
  180. :elora_check
  181. if /i "%answer%" == "y" (
  182.   set pchar=Elora
  183.   set ga=teleport
  184.   set race=elven
  185.   cls
  186. )
  187. goto :eof
  188.  
  189.  
  190. :avalae
  191. title Avalae intro
  192. color 2
  193. cls
  194. echo Avalae is the faun guardian of Trinia.
  195. echo Her guardian ability is future sight, allowing her to plan ahead and beat some enemies in combat
  196. echo by knowing what their next move will be.
  197. echo.
  198. echo Play as Avalae?
  199. set ask=y/n?
  200. set answers=y n
  201. set actions=startroom cselect
  202. goto :eof
  203.  
  204. :avalae_check
  205. if /i "%answer%" == "y" (
  206.   set pchar=Avalae
  207.   set ga=future sight
  208.   set race=faun
  209.   cls
  210. )
  211. goto :eof
  212.  
  213.  
  214. :enne
  215. color 1
  216. cls
  217. echo Enne is the human guardian of Trinia.
  218. echo Her guardian ability is disintegration, allowing her to break down elements she touches and producing a lot of heat in the process
  219. echo.
  220. echo Play as Enne?
  221. set ask=y/n?
  222. set answers=y n
  223. set actions=startroom cselect
  224. goto :eof
  225.  
  226. :enne_check
  227. if /i "%answer%" == "y" (
  228.   set pchar=Enne
  229.   set ga=disintegration
  230.   set race=human
  231.   cls
  232. )
  233. goto :eof
  234.  
  235.  
  236. :startroom
  237. title Start Room
  238. if %startroom_key% == 0 (
  239.   echo You are in a room with a locked door. A key lies on the floor
  240.   echo.
  241.   echo what do you want to do?
  242.   echo 1^) interact with the door
  243.   echo 2^) interact with the key
  244.   set actions=startroom hall
  245. ) else (
  246.   echo You are in a room with an unlocked door.
  247.   echo.
  248.   echo what do you want to do?
  249.   echo 1^) go to the next room
  250.   echo 2^) wait for a while
  251.   set actions=hall startroom
  252. )
  253. set ask=
  254. set answers=1 2
  255. goto :eof
  256.  
  257. :startroom_check
  258. if "%startroom_key%" == "0" (
  259.   if "%answer%" == "1" (
  260.     echo the door won't budge
  261.   ) else (
  262.     echo You picked up the key!
  263.     set startroom_key=1
  264.   )
  265.   echo.
  266. )
  267. goto :eof
  268.  
  269.  
  270. :hall
  271. title hall
  272. echo the door swings open and you now find yourself in a hall.
  273. echo.
  274. echo what do you want to do?
  275. echo 1) go back to the previous room
  276. echo 2) enjoy the hall
  277. set ask=
  278. set answers=1 2
  279. set actions=startroom hall
  280. goto :eof
  281.  
  282.  
  283. :exit
  284. color 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement