train.qsrc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. # train
  2. !2021/05/06
  3. !!============================================!!
  4. !! !!
  5. !! Train Stations !!
  6. !! !!
  7. !!============================================!!
  8. !!-----------------------!!
  9. !! !!
  10. !! communal !!
  11. !! !!
  12. !!-----------------------!!
  13. if $ARGS[0] = 'communal':
  14. *clr & cla
  15. $menu_loc = 'train'
  16. $menu_arg = 'communal'
  17. $location_type = 'public_outdoors'
  18. menu_off = 0
  19. gs 'stat'
  20. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  21. '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.'
  22. *nl
  23. gs 'transport_functions', 'set_train_wait_time', 'communal'
  24. 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
  25. 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
  26. act 'Return to the road': minut += 15 & nroad = 5 & gt 'road'
  27. if transportVars['trainpass_day'] > daystart:
  28. *nl
  29. func('transport_functions', 'display_trainpass_time')
  30. act 'Go to platforms': gt 'train', 'communal_trains'
  31. else
  32. act 'Buy a ticket': gt 'train', 'communal_tickets'
  33. end
  34. elseif $ARGS[0] = 'communal_tickets':
  35. $menu_loc = 'train'
  36. $menu_arg = 'communal_tickets'
  37. menu_off = 0
  38. act 'Leave the ticket office': gt 'train', 'communal'
  39. act 'Look at the train schedule':
  40. *clr & cla
  41. gs 'transport_functions', 'display_train_schedule'
  42. *nl
  43. *nl
  44. gs 'transport_functions', 'display_train_schedule', 'pc'
  45. act 'Stop looking at the schedule': gt 'train', 'communal_tickets'
  46. end
  47. gs 'transport_functions', 'buy_train_ticket', 'communal'
  48. elseif $ARGS[0] = 'communal_trains':
  49. $menu_loc = 'train'
  50. $menu_arg = 'communal_trains'
  51. menu_off = 0
  52. gs 'transport_functions', 'set_train_wait_time', 'pavlovsk'
  53. 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
  54. 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
  55. act 'Leave the platform': gt 'train', 'communal'
  56. act 'Look at the train schedule':
  57. *clr & cla
  58. gs 'transport_functions', 'display_train_schedule'
  59. *nl
  60. *nl
  61. gs 'transport_functions', 'display_train_schedule', 'pc'
  62. act 'Stop looking at the schedule': gt 'train', 'communal_trains'
  63. end
  64. act 'Take a train to St. Petersburg city center (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''center'')>>)': gt 'train', 'communal_center'
  65. act 'Take a train to St. Petersburg city industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''ind'')>>)': gt 'train', 'communal_ind'
  66. act 'Take a train to the village of Gadukino (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''gadukino'')>>)': gt 'train', 'communal_gadukino'
  67. act 'Take a train to Pavlovsk (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''pavlovsk'')>>)': gt 'train', 'communal_pavlovsk'
  68. end
  69. !!-----------------------!!
  70. !! !!
  71. !! gadukino !!
  72. !! !!
  73. !!-----------------------!!
  74. if $ARGS[0] = 'gadukino':
  75. $loc = 'train'
  76. $loc_arg = 'gadukino'
  77. $menu_loc = 'train'
  78. $menu_arg = 'gadukino'
  79. $location_type = 'public_outdoors'
  80. display_bb = 0
  81. menu_off = 0
  82. *clr & cla
  83. gs 'stat'
  84. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  85. 'A fairly nondescript railway platform. The small village of Gadukino where your grandparents reside is not far from here.'
  86. *nl
  87. gs 'transport_functions', 'set_train_wait_time', 'gadukino'
  88. 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
  89. 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
  90. act 'Walk to the road (0:15)': minut += 15 & nroad = 10 & gt 'road'
  91. if transportVars['trainpass_day'] > daystart:
  92. *nl
  93. func('transport_functions', 'display_trainpass_time')
  94. act 'Go to platforms': gt 'train', 'gadukino_trains'
  95. else
  96. act 'Buy a ticket': gt 'train', 'gadukino_tickets'
  97. end
  98. elseif $ARGS[0] = 'gadukino_tickets':
  99. $menu_loc = 'train'
  100. $menu_arg = 'gadukino_tickets'
  101. menu_off = 0
  102. act 'Leave the ticket office': gt 'train', 'gadukino'
  103. act 'Look at the train schedule':
  104. *clr & cla
  105. gs 'transport_functions', 'display_train_schedule', 'pc'
  106. *nl
  107. *nl
  108. gs 'transport_functions', 'display_train_schedule'
  109. act 'Stop looking at the schedule': gt 'train', 'gadukino_tickets'
  110. end
  111. gs 'transport_functions', 'buy_train_ticket', 'gadukino', 'pc'
  112. elseif $ARGS[0] = 'gadukino_trains':
  113. $menu_loc = 'train'
  114. $menu_arg = 'gadukino_trains'
  115. menu_off = 0
  116. gs 'transport_functions', 'set_train_wait_time', 'gadukino'
  117. 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
  118. 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
  119. act 'Leave the platform': gt 'train', 'gadukino'
  120. act 'Look at the train schedule':
  121. *clr & cla
  122. gs 'transport_functions', 'display_train_schedule', 'pc'
  123. *nl
  124. *nl
  125. gs 'transport_functions', 'display_train_schedule'
  126. act 'Stop looking at the schedule': gt 'train', 'gadukino_tickets'
  127. end
  128. act 'Take a train to Pavlovsk (<<func(''transport_functions'', ''display_train_timecost'', ''gadukino'', ''pavlovsk'')>>)': gt 'train', 'gadukino_pavlovsk'
  129. act 'Take a train to the communal village (<<func(''transport_functions'', ''display_train_timecost'', ''gadukino'', ''communal'')>>)': gt 'train', 'gadukino_communal'
  130. act 'Take a train to St. Petersburg city industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''gadukino'', ''ind'')>>)': gt 'train', 'gadukino_ind'
  131. act 'Take a train to St. Petersburg city center (<<func(''transport_functions'', ''display_train_timecost'', ''gadukino'', ''center'')>>)': gt 'train', 'gadukino_center'
  132. end
  133. !!============================================!!
  134. !! !!
  135. !! Train Transport !!
  136. !! !!
  137. !!============================================!!
  138. !!-----------------------!!
  139. !! !!
  140. !! center !!
  141. !! !!
  142. !!-----------------------!!
  143. if $ARGS[0] = 'center_ind':
  144. $loc = 'city_industrial_train'
  145. $loc_arg = 'inside'
  146. $location_type = 'public_indoors'
  147. menu_off = 1
  148. gs 'transport_functions', 'set_train_wait_time'
  149. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'ind') + temp_transportVars['train_wait_pavlovsk']
  150. minut += temp_transportVars['timecost']
  151. gs 'stat'
  152. temp_transportVars['rand'] = rand(1, 100)
  153. if temp_transportVars['rand'] <= 9:
  154. gt 'train_incidental', 'events'
  155. elseif transportVars['train_event_day'] ! daystart:
  156. if temp_transportVars['rand'] <= 23:
  157. gt 'train_events', 'private'
  158. elseif temp_transportVars['rand'] <= 31:
  159. gt 'train_events', 'events'
  160. end
  161. end
  162. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  163. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
  164. act 'Get off the train':
  165. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  166. gt $loc, $loc_arg
  167. end
  168. elseif $ARGS[0] = 'center_communal':
  169. $loc = 'train'
  170. $loc_arg = 'communal'
  171. $location_type = 'public_indoors'
  172. menu_off = 1
  173. gs 'transport_functions', 'set_train_wait_time'
  174. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'communal') + temp_transportVars['train_wait_pavlovsk']
  175. minut += temp_transportVars['timecost']
  176. gs 'stat'
  177. temp_transportVars['rand'] = rand(1, 100)
  178. if temp_transportVars['rand'] <= 10:
  179. gt 'train_incidental', 'events'
  180. elseif transportVars['train_event_day'] ! daystart:
  181. if temp_transportVars['rand'] <= 19:
  182. gt 'train_events', 'events'
  183. end
  184. end
  185. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  186. 'After <<temp_transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
  187. act 'Get off the train':
  188. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  189. gt $loc, $loc_arg
  190. end
  191. elseif $ARGS[0] = 'center_gadukino':
  192. $loc = 'train'
  193. $loc_arg = 'gadukino'
  194. $location_type = 'public_indoors'
  195. menu_off = 1
  196. gs 'transport_functions', 'set_train_wait_time'
  197. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'gadukino') + temp_transportVars['train_wait_pavlovsk']
  198. minut += temp_transportVars['timecost']
  199. gs 'stat'
  200. temp_transportVars['rand'] = rand(1, 100)
  201. if temp_transportVars['rand'] <= 10:
  202. gt 'train_incidental', 'events'
  203. elseif transportVars['train_event_day'] ! daystart:
  204. if temp_transportVars['rand'] <= 19:
  205. gt 'train_events', 'events'
  206. end
  207. end
  208. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  209. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
  210. act 'Get off the train':
  211. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  212. gt $loc, $loc_arg
  213. end
  214. elseif $ARGS[0] = 'center_pavlovsk':
  215. $loc = 'pav_train_hall'
  216. $loc_arg = ''
  217. $location_type = 'public_indoors'
  218. menu_off = 1
  219. gs 'transport_functions', 'set_train_wait_time'
  220. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
  221. minut += temp_transportVars['timecost']
  222. gs 'stat'
  223. temp_transportVars['rand'] = rand(1, 100)
  224. if temp_transportVars['rand'] <= 6:
  225. gt 'train_incidental', 'events'
  226. elseif transportVars['train_event_day'] ! daystart:
  227. if temp_transportVars['rand'] <= 20:
  228. gt 'train_events', 'private'
  229. elseif temp_transportVars['rand'] <= 45:
  230. gt 'train_events', 'Gopnik'
  231. elseif temp_transportVars['rand'] <= 51:
  232. gt 'train_events', 'events'
  233. end
  234. end
  235. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  236. 'After <<temp_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.'
  237. act 'Get off the train':
  238. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  239. gt $loc, $loc_arg
  240. end
  241. end
  242. !!-----------------------!!
  243. !! !!
  244. !! industrial !!
  245. !! !!
  246. !!-----------------------!!
  247. if $ARGS[0] = 'ind_center':
  248. $loc = 'city_train'
  249. $loc_arg = 'start'
  250. $location_type = 'public_indoors'
  251. menu_off = 1
  252. gs 'transport_functions', 'set_train_wait_time'
  253. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'center') + temp_transportVars['train_wait_center']
  254. minut += temp_transportVars['timecost']
  255. gs 'stat'
  256. temp_transportVars['rand'] = rand(1, 100)
  257. if temp_transportVars['rand'] <= 9:
  258. gt 'train_incidental', 'events'
  259. elseif transportVars['train_event_day'] ! daystart:
  260. if temp_transportVars['rand'] <= 23:
  261. gt 'train_events', 'private'
  262. elseif temp_transportVars['rand'] <= 31:
  263. gt 'train_events', 'events'
  264. end
  265. end
  266. '<center><img <<$set_imgh>> src="images/locations/shared/train/electri_' + rand(1,5) + '.jpg"></center>'
  267. 'You pay for the ticket and board the next train going to the city center.'
  268. 'After <<temp_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.'
  269. act 'Get off the train at this station':
  270. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  271. gt $loc, $loc_arg
  272. end
  273. elseif $ARGS[0] = 'ind_communal':
  274. $loc = 'train'
  275. $loc_arg = 'communal'
  276. $location_type = 'public_indoors'
  277. menu_off = 1
  278. gs 'transport_functions', 'set_train_wait_time'
  279. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'communal') + temp_transportVars['train_wait_pavlovsk']
  280. minut += temp_transportVars['timecost']
  281. gs 'stat'
  282. temp_transportVars['rand'] = rand(1, 100)
  283. if temp_transportVars['rand'] <= 6:
  284. gt 'train_incidental', 'events'
  285. elseif transportVars['train_event_day'] ! daystart:
  286. if temp_transportVars['rand'] <= 17:
  287. gt 'train_events', 'events'
  288. end
  289. end
  290. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  291. 'After <<temp_transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
  292. act 'Get off the train':
  293. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  294. gt $loc, $loc_arg
  295. end
  296. elseif $ARGS[0] = 'ind_gadukino':
  297. $loc = 'train'
  298. $loc_arg = 'gadukino'
  299. $location_type = 'public_indoors'
  300. menu_off = 1
  301. gs 'transport_functions', 'set_train_wait_time'
  302. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'gadukino') + temp_transportVars['train_wait_pavlovsk']
  303. minut += temp_transportVars['timecost']
  304. gs 'stat'
  305. temp_transportVars['rand'] = rand(1, 100)
  306. if temp_transportVars['rand'] <= 10:
  307. gt 'train_incidental', 'events'
  308. elseif transportVars['train_event_day'] ! daystart:
  309. if temp_transportVars['rand'] <= 19:
  310. gt 'train_events', 'events'
  311. end
  312. end
  313. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  314. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
  315. act 'Get off the train':
  316. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  317. gt $loc, $loc_arg
  318. end
  319. elseif $ARGS[0] = 'ind_pavlovsk':
  320. $loc = 'pav_train_hall'
  321. $loc_arg = ''
  322. $location_type = 'public_indoors'
  323. menu_off = 1
  324. gs 'transport_functions', 'set_train_wait_time'
  325. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
  326. minut += temp_transportVars['timecost']
  327. gs 'stat'
  328. temp_transportVars['rand'] = rand(1, 100)
  329. if temp_transportVars['rand'] <= 6:
  330. gt 'train_incidental', 'events'
  331. elseif transportVars['train_event_day'] ! daystart:
  332. if temp_transportVars['rand'] <= 20:
  333. gt 'train_events', 'private'
  334. elseif temp_transportVars['rand'] <= 45:
  335. gt 'train_events', 'Gopnik'
  336. elseif temp_transportVars['rand'] <= 51:
  337. gt 'train_events', 'events'
  338. end
  339. end
  340. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  341. 'After <<temp_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.'
  342. act 'Get off the train':
  343. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  344. gt $loc, $loc_arg
  345. end
  346. end
  347. !!-----------------------!!
  348. !! !!
  349. !! communal !!
  350. !! !!
  351. !!-----------------------!!
  352. if $ARGS[0] = 'communal_center':
  353. $loc = 'city_train'
  354. $loc_arg = 'start'
  355. $location_type = 'public_indoors'
  356. menu_off = 1
  357. gs 'transport_functions', 'set_train_wait_time'
  358. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'center') + temp_transportVars['train_wait_center']
  359. minut += temp_transportVars['timecost']
  360. gs 'stat'
  361. temp_transportVars['rand'] = rand(1, 100)
  362. if temp_transportVars['rand'] <= 10:
  363. gt 'train_incidental', 'events'
  364. elseif transportVars['train_event_day'] ! daystart:
  365. if temp_transportVars['rand'] <= 19:
  366. gt 'train_events', 'events'
  367. end
  368. end
  369. '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
  370. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
  371. act 'Get off the train':
  372. if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  373. gt $loc, $loc_arg
  374. end
  375. elseif $ARGS[0] = 'communal_ind':
  376. $loc = 'city_industrial_train'
  377. $loc_arg = 'inside'
  378. $location_type = 'public_indoors'
  379. menu_off = 1
  380. gs 'transport_functions', 'set_train_wait_time'
  381. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'ind') + temp_transportVars['train_wait_center']
  382. minut += temp_transportVars['timecost']
  383. gs 'stat'
  384. temp_transportVars['rand'] = rand(1, 100)
  385. if temp_transportVars['rand'] <= 6:
  386. gt 'train_incidental', 'events'
  387. elseif transportVars['train_event_day'] ! daystart:
  388. if temp_transportVars['rand'] <= 16:
  389. gt 'train_events', 'events'
  390. end
  391. end
  392. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  393. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
  394. act 'Get off the train':
  395. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  396. gt $loc, $loc_arg
  397. end
  398. elseif $ARGS[0] = 'communal_gadukino':
  399. $loc = 'train'
  400. $loc_arg = 'gadukino'
  401. $location_type = 'public_indoors'
  402. menu_off = 1
  403. gs 'transport_functions', 'set_train_wait_time'
  404. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'gadukino') + temp_transportVars['train_wait_pavlovsk']
  405. minut += temp_transportVars['timecost']
  406. gs 'stat'
  407. temp_transportVars['rand'] = rand(1, 100)
  408. if temp_transportVars['rand'] <= 6:
  409. gt 'train_incidental', 'events'
  410. elseif transportVars['train_event_day'] ! daystart:
  411. if temp_transportVars['rand'] <= 16:
  412. gt 'train_events', 'events'
  413. end
  414. end
  415. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  416. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
  417. act 'Get off the train':
  418. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  419. gt $loc, $loc_arg
  420. end
  421. elseif $ARGS[0] = 'communal_pavlovsk':
  422. $loc = 'pav_train_hall'
  423. $loc_arg = ''
  424. $location_type = 'public_indoors'
  425. menu_off = 1
  426. gs 'transport_functions', 'set_train_wait_time'
  427. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
  428. minut += temp_transportVars['timecost']
  429. gs 'stat'
  430. temp_transportVars['rand'] = rand(1, 100)
  431. if temp_transportVars['rand'] <= 20:
  432. gt 'train_incidental', 'events'
  433. elseif transportVars['train_event_day'] ! daystart:
  434. if temp_transportVars['rand'] <= 28:
  435. gt 'train_events', 'events'
  436. end
  437. end
  438. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  439. 'After <<temp_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.'
  440. act 'Get off the train': gt $loc, $loc_arg
  441. end
  442. !!-----------------------!!
  443. !! !!
  444. !! gadukino !!
  445. !! !!
  446. !!-----------------------!!
  447. if $ARGS[0] = 'gadukino_center':
  448. $loc = 'city_train'
  449. $loc_arg = 'start'
  450. $location_type = 'public_indoors'
  451. menu_off = 1
  452. gs 'transport_functions', 'set_train_wait_time'
  453. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'center') + temp_transportVars['train_wait_center']
  454. minut += temp_transportVars['timecost']
  455. gs 'stat'
  456. temp_transportVars['rand'] = rand(1, 100)
  457. if temp_transportVars['rand'] <= 10:
  458. gt 'train_incidental', 'events'
  459. elseif transportVars['train_event_day'] ! daystart:
  460. if temp_transportVars['rand'] <= 24:
  461. gt 'train_events', 'events'
  462. end
  463. end
  464. '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
  465. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
  466. act 'Get off the train':
  467. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  468. gt $loc, $loc_arg
  469. end
  470. elseif $ARGS[0] = 'gadukino_ind':
  471. $loc = 'city_industrial_train'
  472. $loc_arg = 'inside'
  473. $location_type = 'public_indoors'
  474. menu_off = 1
  475. gs 'transport_functions', 'set_train_wait_time'
  476. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'ind') + temp_transportVars['train_wait_center']
  477. minut += temp_transportVars['timecost']
  478. gs 'stat'
  479. temp_transportVars['rand'] = rand(1, 100)
  480. if temp_transportVars['rand'] <= 10:
  481. gt 'train_incidental', 'events'
  482. elseif transportVars['train_event_day'] ! daystart:
  483. if temp_transportVars['rand'] <= 24:
  484. gt 'train_events', 'events'
  485. end
  486. end
  487. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  488. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
  489. act 'Get off the train':
  490. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  491. gt $loc, $loc_arg
  492. end
  493. elseif $ARGS[0] = 'gadukino_communal':
  494. $loc = 'train'
  495. $loc_arg = 'communal'
  496. $location_type = 'public_indoors'
  497. menu_off = 1
  498. gs 'transport_functions', 'set_train_wait_time'
  499. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'communal') + temp_transportVars['train_wait_center']
  500. minut += temp_transportVars['timecost']
  501. gs 'stat'
  502. temp_transportVars['rand'] = rand(1, 100)
  503. if temp_transportVars['rand'] <= 6:
  504. gt 'train_incidental', 'events'
  505. elseif transportVars['train_event_day'] ! daystart:
  506. if temp_transportVars['rand'] <= 16:
  507. gt 'train_events', 'events'
  508. end
  509. end
  510. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  511. 'After <<temp_transportVars[''timecost'']>> minutes, you arrive at an old railway platform near the communal village.'
  512. act 'Get off the train':
  513. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  514. gt $loc, $loc_arg
  515. end
  516. elseif $ARGS[0] = 'gadukino_pavlovsk':
  517. $loc = 'pav_train_hall'
  518. $loc_arg = ''
  519. $location_type = 'public_indoors'
  520. menu_off = 1
  521. gs 'transport_functions', 'set_train_wait_time'
  522. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
  523. minut += temp_transportVars['timecost']
  524. gs 'stat'
  525. temp_transportVars['rand'] = rand(1, 100)
  526. if temp_transportVars['rand'] <= 20:
  527. gt 'train_incidental', 'events'
  528. elseif transportVars['train_event_day'] ! daystart:
  529. if temp_transportVars['rand'] <= 28:
  530. gt 'train_events', 'events'
  531. end
  532. end
  533. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  534. 'After <<temp_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.'
  535. act 'Get off the train':
  536. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  537. gt $loc, $loc_arg
  538. end
  539. end
  540. !!-----------------------!!
  541. !! !!
  542. !! pavlovsk !!
  543. !! !!
  544. !!-----------------------!!
  545. if $ARGS[0] = 'pavlovsk_center':
  546. $loc = 'city_train'
  547. $loc_arg = 'start'
  548. $location_type = 'public_indoors'
  549. menu_off = 1
  550. gs 'transport_functions', 'set_train_wait_time'
  551. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'center') + temp_transportVars['train_wait_center']
  552. minut += temp_transportVars['timecost']
  553. gs 'stat'
  554. temp_transportVars['rand'] = rand(1, 100)
  555. if temp_transportVars['rand'] <= 6:
  556. gt 'train_incidental', 'events'
  557. elseif transportVars['train_event_day'] ! daystart:
  558. if temp_transportVars['rand'] <= 20:
  559. gt 'train_events', 'private'
  560. elseif temp_transportVars['rand'] <= 45:
  561. gt 'train_events', 'Gopnik'
  562. elseif temp_transportVars['rand'] <= 55:
  563. gt 'train_events', 'weed'
  564. elseif temp_transportVars['rand'] <= 61:
  565. gt 'train_events', 'events'
  566. end
  567. end
  568. '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
  569. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
  570. act 'Get off the train':
  571. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  572. gt $loc, $loc_arg
  573. end
  574. elseif $ARGS[0] = 'pavlovsk_ind':
  575. $loc = 'city_industrial_train'
  576. $loc_arg = 'inside'
  577. $location_type = 'public_indoors'
  578. menu_off = 1
  579. gs 'transport_functions', 'set_train_wait_time'
  580. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'ind') + temp_transportVars['train_wait_center']
  581. minut += temp_transportVars['timecost']
  582. gs 'stat'
  583. temp_transportVars['rand'] = rand(1, 100)
  584. if temp_transportVars['rand'] <= 6:
  585. gt 'train_incidental', 'events'
  586. elseif transportVars['train_event_day'] ! daystart:
  587. if temp_transportVars['rand'] <= 20:
  588. gt 'train_events', 'private'
  589. elseif temp_transportVars['rand'] <= 45:
  590. gt 'train_events', 'Gopnik'
  591. elseif temp_transportVars['rand'] <= 51:
  592. gt 'train_events', 'events'
  593. end
  594. end
  595. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  596. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
  597. act 'Get off the train':
  598. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  599. gt $loc, $loc_arg
  600. end
  601. elseif $ARGS[0] = 'pavlovsk_communal':
  602. $loc = 'train'
  603. $loc_arg = 'communal'
  604. $location_type = 'public_indoors'
  605. menu_off = 1
  606. gs 'transport_functions', 'set_train_wait_time'
  607. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'communal') + temp_transportVars['train_wait_center']
  608. minut += temp_transportVars['timecost']
  609. gs 'stat'
  610. temp_transportVars['rand'] = rand(1, 100)
  611. if temp_transportVars['rand'] <= 10:
  612. gt 'train_incidental', 'events'
  613. elseif transportVars['train_event_day'] ! daystart:
  614. if temp_transportVars['rand'] <= 38:
  615. gt 'train_events', 'events'
  616. end
  617. end
  618. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  619. 'After <<temp_transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
  620. act 'Get off the train':
  621. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  622. gt $loc, $loc_arg
  623. end
  624. elseif $ARGS[0] = 'pavlovsk_gadukino':
  625. $loc = 'train'
  626. $loc_arg = 'gadukino'
  627. $location_type = 'public_indoors'
  628. menu_off = 1
  629. gs 'transport_functions', 'set_train_wait_time'
  630. temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'gadukino') + temp_transportVars['train_wait_center']
  631. minut += temp_transportVars['timecost']
  632. gs 'stat'
  633. temp_transportVars['rand'] = rand(1, 100)
  634. if temp_transportVars['rand'] <= 10:
  635. gt 'train_incidental', 'events'
  636. elseif transportVars['train_event_day'] ! daystart:
  637. if temp_transportVars['rand'] <= 19:
  638. gt 'train_events', 'events'
  639. end
  640. end
  641. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  642. 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
  643. act 'Get off the train':
  644. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  645. gt $loc, $loc_arg
  646. end
  647. end
  648. killvar 'temp_transportVars'
  649. --- train ---------------------------------