train.qsrc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. # train
  2. !2021/05/06
  3. !!============================================!!
  4. !! !!
  5. !! Train Stations !!
  6. !! !!
  7. !!============================================!!
  8. if $ARGS[0] = 'communal':
  9. *clr & cla
  10. $menu_loc = 'train'
  11. $menu_arg = 'communal'
  12. menu_off = 0
  13. gs 'stat'
  14. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  15. 'An old railway platform, it looks like it was abandoned. The sign is no longer legible, but there''s a hand painted sign from the communal cottages not too far away.'
  16. act 'Return to the road':minut += 15 & nroad = 5 & gt 'road'
  17. *nl
  18. if transportVars['trainpass_day'] > daystart:
  19. func('transport_functions', 'display_trainpass_time')
  20. act 'Go to platforms': gt 'train', 'communal_trains'
  21. else
  22. act 'Buy a ticket': gt 'train', 'communal_tickets'
  23. end
  24. end
  25. if $ARGS[0] = 'communal_tickets':
  26. $menu_loc = 'train'
  27. $menu_arg = 'communal_tickets'
  28. menu_off = 0
  29. act 'Leave the ticket office': gt 'train', 'communal'
  30. gs 'transport_functions', 'buy_train_ticket', 'communal'
  31. end
  32. if $ARGS[0] = 'communal_trains':
  33. $menu_loc = 'train'
  34. $menu_arg = 'communal_trains'
  35. menu_off = 0
  36. act 'Leave the platform': gt 'train', 'communal'
  37. act 'Take a train to St. Petersburg city center (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''center'')>>)': gt 'train', 'communal_center'
  38. act 'Take a train to St. Petersburg city industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''ind'')>>)': gt 'train', 'communal_ind'
  39. act 'Take a train to the village of Gadukino (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''village'')>>)': gt 'train', 'communal_village'
  40. act 'Take a train to Pavlovsk (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''pavlovsk'')>>)': gt 'train', 'communal_pavlovsk'
  41. end
  42. if $ARGS[0] = 'village':
  43. $loc = 'train'
  44. $loc_arg = 'village'
  45. $menu_loc = 'train'
  46. $menu_arg = 'village'
  47. display_bb = 0
  48. menu_off = 0
  49. *clr & cla
  50. gs 'stat'
  51. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  52. 'A fairly nondescript railway platform. The small village of Gadukino where your grandparents reside is not far from here.'
  53. act 'Walk to the road (0:15)':minut += 15 & nroad = 10 & gt 'road'
  54. *nl
  55. if transportVars['trainpass_day'] > daystart:
  56. func('transport_functions', 'display_trainpass_time')
  57. act 'Go to platforms': gt 'train', 'village_trains'
  58. else
  59. act 'Buy a ticket': gt 'train', 'village_tickets'
  60. end
  61. end
  62. if $ARGS[0] = 'village_tickets':
  63. $menu_loc = 'train'
  64. $menu_arg = 'village_tickets'
  65. menu_off = 0
  66. act 'Leave the ticket office': gt 'train', 'village'
  67. gs 'transport_functions', 'buy_train_ticket', 'village', 'pc'
  68. end
  69. if $ARGS[0] = 'village_trains':
  70. $menu_loc = 'train'
  71. $menu_arg = 'village_trains'
  72. menu_off = 0
  73. act 'Leave the platform': gt 'train', 'village'
  74. act 'Take a train to Pavlovsk (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''pavlovsk'')>>)': gt 'train', 'village_pavlovsk'
  75. act 'Take a train to the communal village (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''communal'')>>)': gt 'train', 'village_communal'
  76. act 'Take a train to St. Petersburg city industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''ind'')>>)': gt 'train', 'village_ind'
  77. act 'Take a train to St. Petersburg city center (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''center'')>>)': gt 'train', 'village_center'
  78. end
  79. !!============================================!!
  80. !! !!
  81. !! Train Transport !!
  82. !! !!
  83. !!============================================!!
  84. !!-----------------------!!
  85. !! !!
  86. !! center !!
  87. !! !!
  88. !!-----------------------!!
  89. if $ARGS[0] = 'center_ind':
  90. $loc = 'city_industrial_train'
  91. $loc_arg = 'platform'
  92. menu_off = 1
  93. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'ind')
  94. minut += transportVars['timecost']
  95. gs 'stat'
  96. if transportVars['train_event_day'] ! daystart:
  97. transportVars['rand'] = rand(1, 100)
  98. if transportVars['rand'] <= 14:
  99. gt 'train_events', 'private'
  100. elseif transportVars['rand'] <= 23:
  101. gt 'train_incidental', 'events'
  102. elseif transportVars['rand'] <= 39:
  103. gt 'train_events', 'events'
  104. end
  105. end
  106. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  107. 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
  108. act 'Get off the train':
  109. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  110. gt 'city_industrial_train', 'platform'
  111. end
  112. end
  113. if $ARGS[0] = 'center_communal':
  114. $loc = 'train'
  115. $loc_arg = 'communal'
  116. menu_off = 1
  117. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'communal')
  118. minut += transportVars['timecost']
  119. gs 'stat'
  120. if transportVars['train_event_day'] ! daystart:
  121. transportVars['rand'] = rand(1, 100)
  122. if transportVars['rand'] <= 10:
  123. gt 'train_incidental', 'events'
  124. elseif transportVars['rand'] <= 28:
  125. gt 'train_events', 'events'
  126. end
  127. end
  128. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  129. 'After <<transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
  130. act 'Get off the train':
  131. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  132. gt 'train', 'communal'
  133. end
  134. end
  135. if $ARGS[0] = 'center_village':
  136. $loc = 'train'
  137. $loc_arg = 'village'
  138. menu_off = 1
  139. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'village')
  140. minut += transportVars['timecost']
  141. gs 'stat'
  142. if transportVars['train_event_day'] ! daystart:
  143. transportVars['rand'] = rand(1, 100)
  144. if transportVars['rand'] <= 10:
  145. gt 'train_incidental', 'events'
  146. elseif transportVars['rand'] <= 28:
  147. gt 'train_events', 'events'
  148. end
  149. end
  150. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  151. 'After <<transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
  152. act 'Get off the train':
  153. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  154. gt 'train', 'village'
  155. end
  156. end
  157. if $ARGS[0] = 'center_pavlovsk':
  158. $loc = 'pav_train_hall'
  159. $loc_arg = 'platform'
  160. menu_off = 1
  161. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'pavlovsk')
  162. minut += transportVars['timecost']
  163. gs 'stat'
  164. if transportVars['train_event_day'] ! daystart:
  165. transportVars['rand'] = rand(1, 100)
  166. if transportVars['rand'] <= 14:
  167. gt 'train_events', 'private'
  168. elseif transportVars['rand'] <= 39:
  169. gt 'train_events', 'Gopnik'
  170. elseif transportVars['rand'] <= 45:
  171. gt 'train_incidental', 'events'
  172. elseif transportVars['rand'] <= 56:
  173. gt 'train_events', 'events'
  174. end
  175. end
  176. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  177. 'After <<transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
  178. act 'Get off the train':
  179. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  180. gt 'pav_train_hall'
  181. end
  182. end
  183. !!-----------------------!!
  184. !! !!
  185. !! industrial !!
  186. !! !!
  187. !!-----------------------!!
  188. if $ARGS[0] = 'ind_center':
  189. $loc = 'city_train'
  190. $loc_arg = 'start'
  191. menu_off = 1
  192. *clr & cla
  193. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'center')
  194. minut += transportVars['timecost']
  195. gs 'stat'
  196. if transportVars['train_event_day'] ! daystart:
  197. transportVars['rand'] = rand(1, 100)
  198. if transportVars['rand'] <= 14:
  199. gt 'train_events', 'private'
  200. elseif transportVars['rand'] <= 23:
  201. gt 'train_incidental', 'events'
  202. elseif transportVars['rand'] <= 39:
  203. gt 'train_events', 'events'
  204. end
  205. end
  206. '<center><img <<$set_imgh>> src="images/locations/shared/train/electri_' + rand(1,5) + '.jpg"></center>'
  207. 'You pay for the ticket and board the next train going to the city center.'
  208. 'After <<transportVars[''timecost'']>> minutes, you see the office blocks and shops at the heart of the city. The train stops at its final destination, the busy station in the city center.'
  209. act 'Get off the train at this station':
  210. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  211. gt 'city_train', 'start'
  212. end
  213. end
  214. if $ARGS[0] = 'ind_communal':
  215. $loc = 'train'
  216. $loc_arg = 'communal'
  217. menu_off = 1
  218. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'communal')
  219. minut += transportVars['timecost']
  220. gs 'stat'
  221. if transportVars['train_event_day'] ! daystart and rand(1, 100) < 20: gt 'train_events', 'events'
  222. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  223. 'After <<transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
  224. act 'Get off the train':
  225. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  226. gt 'train', 'communal'
  227. end
  228. end
  229. if $ARGS[0] = 'ind_village':
  230. $loc = 'train'
  231. $loc_arg = 'village'
  232. menu_off = 1
  233. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'village')
  234. minut += transportVars['timecost']
  235. gs 'stat'
  236. if transportVars['train_event_day'] ! daystart:
  237. transportVars['rand'] = rand(1, 100)
  238. if transportVars['rand'] <= 10:
  239. gt 'train_incidental', 'events'
  240. elseif transportVars['rand'] <= 27:
  241. gt 'train_events', 'events'
  242. end
  243. end
  244. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  245. 'After <<transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
  246. act 'Get off the train':
  247. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  248. gt 'train', 'village'
  249. end
  250. end
  251. if $ARGS[0] = 'ind_pavlovsk':
  252. $loc = 'pav_train_hall'
  253. $loc_arg = 'platform'
  254. menu_off = 1
  255. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'pavlovsk')
  256. minut += transportVars['timecost']
  257. gs 'stat'
  258. if transportVars['train_event_day'] ! daystart:
  259. transportVars['rand'] = rand(1, 100)
  260. if transportVars['rand'] <= 14:
  261. gt 'train_events', 'private'
  262. elseif transportVars['rand'] <= 39:
  263. gt 'train_events', 'Gopnik'
  264. elseif transportVars['rand'] <= 45:
  265. gt 'train_incidental', 'events'
  266. elseif transportVars['rand'] <= 56:
  267. gt 'train_events', 'events'
  268. end
  269. end
  270. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  271. 'After <<transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
  272. act 'Get off the train':
  273. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  274. gt 'pav_train_hall'
  275. end
  276. end
  277. !!-----------------------!!
  278. !! !!
  279. !! communal !!
  280. !! !!
  281. !!-----------------------!!
  282. if $ARGS[0] = 'communal_center':
  283. $loc = 'city_train'
  284. $loc_arg = 'start'
  285. menu_off = 1
  286. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'center')
  287. minut += transportVars['timecost']
  288. gs 'stat'
  289. if transportVars['train_event_day'] ! daystart:
  290. transportVars['rand'] = rand(1, 100)
  291. if transportVars['rand'] <= 10:
  292. gt 'train_incidental', 'events'
  293. elseif transportVars['rand'] <= 28:
  294. gt 'train_events', 'events'
  295. end
  296. end
  297. '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
  298. 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
  299. act 'Get off the train':
  300. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  301. gt 'city_train', 'start'
  302. end
  303. end
  304. if $ARGS[0] = 'communal_ind':
  305. $loc = 'city_industrial_train'
  306. $loc_arg = 'platform'
  307. menu_off = 1
  308. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'ind')
  309. minut += transportVars['timecost']
  310. gs 'stat'
  311. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 19: gt 'train_events', 'events'
  312. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  313. 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
  314. act 'Get off the train':
  315. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  316. gt 'city_industrial_train', 'inside'
  317. end
  318. end
  319. if $ARGS[0] = 'communal_village':
  320. $loc = 'train'
  321. $loc_arg = 'village'
  322. menu_off = 1
  323. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'village')
  324. minut += transportVars['timecost']
  325. gs 'stat'
  326. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 20: gt 'train_events', 'events'
  327. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  328. 'After <<transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
  329. act 'Get off the train':
  330. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  331. gt 'train', 'village'
  332. end
  333. end
  334. if $ARGS[0] = 'communal_pavlovsk':
  335. $loc = 'pav_train_hall'
  336. $loc_arg = ''
  337. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'pavlovsk')
  338. minut += transportVars['timecost']
  339. menu_off = 1
  340. gs 'stat'
  341. if transportVars['train_event_day'] ! daystart:
  342. transportVars['rand'] = rand(1, 100)
  343. if transportVars['rand'] <= 20:
  344. gt 'train_incidental', 'events'
  345. elseif transportVars['rand'] <= 36:
  346. gt 'train_events', 'events'
  347. end
  348. end
  349. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  350. 'After <<transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
  351. act 'Get off the train': gt 'pav_train_hall'
  352. end
  353. !!-----------------------!!
  354. !! !!
  355. !! village !!
  356. !! !!
  357. !!-----------------------!!
  358. if $ARGS[0] = 'village_center':
  359. $loc = 'city_train'
  360. $loc_arg = 'start'
  361. menu_off = 1
  362. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'center')
  363. minut += transportVars['timecost']
  364. gs 'stat'
  365. if transportVars['train_event_day'] ! daystart:
  366. transportVars['rand'] = rand(1, 100)
  367. if transportVars['rand'] <= 10:
  368. gt 'train_incidental', 'events'
  369. elseif transportVars['rand'] <= 38:
  370. gt 'train_events', 'events'
  371. end
  372. end
  373. '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
  374. 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
  375. act 'Get off the train':
  376. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  377. gt 'city_train', 'start'
  378. end
  379. end
  380. if $ARGS[0] = 'village_ind':
  381. $loc = 'city_industrial_train'
  382. $loc_arg = 'platform'
  383. menu_off = 1
  384. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'ind')
  385. minut += transportVars['timecost']
  386. gs 'stat'
  387. if transportVars['train_event_day'] ! daystart:
  388. transportVars['rand'] = rand(1, 100)
  389. if transportVars['rand'] <= 10:
  390. gt 'train_incidental', 'events'
  391. elseif transportVars['rand'] <= 38:
  392. gt 'train_events', 'events'
  393. end
  394. end
  395. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  396. 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
  397. act 'Get off the train':
  398. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  399. gt 'city_industrial_train', 'inside'
  400. end
  401. end
  402. if $ARGS[0] = 'village_communal':
  403. $loc = 'train'
  404. $loc_arg = 'communal'
  405. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'communal')
  406. minut += transportVars['timecost']
  407. menu_off = 1
  408. gs 'stat'
  409. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 20: gt 'train_events', 'events'
  410. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  411. 'After <<transportVars[''timecost'']>> minutes, you arrive at an old railway platform near the communal village.'
  412. act 'Get off the train':
  413. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  414. gt 'train', 'communal'
  415. end
  416. end
  417. if $ARGS[0] = 'village_pavlovsk':
  418. $loc = 'pav_train_hall'
  419. $loc_arg = 'platform'
  420. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'pavlovsk')
  421. minut += transportVars['timecost']
  422. menu_off = 1
  423. gs 'stat'
  424. if transportVars['train_event_day'] ! daystart:
  425. transportVars['rand'] = rand(1, 100)
  426. if transportVars['rand'] <= 20:
  427. gt 'train_incidental', 'events'
  428. elseif transportVars['rand'] <= 36:
  429. gt 'train_events', 'events'
  430. end
  431. end
  432. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  433. 'After <<transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
  434. act 'Get off the train':
  435. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  436. gt 'pav_train_hall'
  437. end
  438. end
  439. !!-----------------------!!
  440. !! !!
  441. !! pavlovsk !!
  442. !! !!
  443. !!-----------------------!!
  444. if $ARGS[0] = 'pavlovsk_village':
  445. $loc = 'train'
  446. $loc_arg = 'village'
  447. menu_off = 1
  448. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'village')
  449. minut += transportVars['timecost']
  450. gs 'stat'
  451. if transportVars['train_event_day'] ! daystart:
  452. transportVars['rand'] = rand(1, 100)
  453. if transportVars['rand'] <= 10:
  454. gt 'train_incidental', 'events'
  455. elseif transportVars['rand'] <= 27:
  456. gt 'train_events', 'events'
  457. end
  458. end
  459. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  460. 'After <<transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
  461. act 'Get off the train':
  462. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  463. gt 'train', 'village'
  464. end
  465. end
  466. if $ARGS[0] = 'pavlovsk_communal':
  467. $loc = 'train'
  468. $loc_arg = 'communal'
  469. menu_off = 1
  470. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'communal')
  471. minut += transportVars['timecost']
  472. gs 'stat'
  473. if transportVars['train_event_day'] ! daystart:
  474. transportVars['rand'] = rand(1, 100)
  475. if transportVars['rand'] <= 10:
  476. gt 'train_incidental', 'events'
  477. elseif transportVars['rand'] <= 38:
  478. gt 'train_events', 'events'
  479. end
  480. end
  481. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  482. 'After <<transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
  483. act 'Get off the train':
  484. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  485. gt 'train', 'communal'
  486. end
  487. end
  488. if $ARGS[0] = 'pavlovsk_ind':
  489. $loc = 'city_industrial_train'
  490. $loc_arg = 'platform'
  491. menu_off = 1
  492. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'ind')
  493. minut += transportVars['timecost']
  494. gs 'stat'
  495. if transportVars['train_event_day'] ! daystart:
  496. transportVars['rand'] = rand(1, 100)
  497. if transportVars['rand'] <= 14:
  498. gt 'train_events', 'private'
  499. elseif transportVars['rand'] <= 39:
  500. gt 'train_events', 'Gopnik'
  501. elseif transportVars['rand'] <= 45:
  502. gt 'train_incidental', 'events'
  503. elseif transportVars['rand'] <= 56:
  504. gt 'train_events', 'events'
  505. end
  506. end
  507. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  508. 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
  509. act 'Get off the train':
  510. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  511. gt 'city_industrial_train', 'inside'
  512. end
  513. end
  514. if $ARGS[0] = 'pavlovsk_center':
  515. $loc = 'city_train'
  516. $loc_arg = 'start'
  517. menu_off = 1
  518. transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'center')
  519. minut += transportVars['timecost']
  520. gs 'stat'
  521. if transportVars['train_event_day'] ! daystart:
  522. transportVars['rand'] = rand(1, 100)
  523. if transportVars['rand'] <= 14:
  524. gt 'train_events', 'private'
  525. elseif transportVars['rand'] <= 39:
  526. gt 'train_events', 'Gopnik'
  527. elseif transportVars['rand'] <= 45:
  528. gt 'train_incidental', 'events'
  529. elseif transportVars['rand'] <= 56:
  530. gt 'train_events', 'events'
  531. elseif tranportVars['rand'] <= 64:
  532. gt 'train_events', 'weed'
  533. end
  534. end
  535. '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
  536. 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
  537. act 'Get off the train':
  538. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  539. gt 'city_train', 'start'
  540. end
  541. end
  542. --- train ---------------------------------