bus.qsrc 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378
  1. # bus
  2. !!============================================!!
  3. !! !!
  4. !! Bus Stations !!
  5. !! !!
  6. !!============================================!!
  7. !!-----------------------!!
  8. !! !!
  9. !! community !!
  10. !! !!
  11. !!-----------------------!!
  12. if $ARGS[0] = 'community':
  13. *clr & cla
  14. $menu_loc = 'bus'
  15. $menu_arg = 'community'
  16. $location_type = 'public_outdoors'
  17. menu_off = 0
  18. gs 'stat'
  19. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  20. 'The community center bus station'
  21. *nl
  22. gs 'transport_functions', 'set_bus_wait_time', 'community'
  23. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  24. act 'Walk to the community center (0:01)': minut += 1 & gt 'pav_commcenter'
  25. if transportVars['buspass_day'] > daystart:
  26. *nl
  27. func('transport_functions', 'display_buspass_time')
  28. act 'Go to platforms': gt 'bus', 'community_busses'
  29. else
  30. act 'Buy a ticket': gt 'bus', 'community_tickets'
  31. end
  32. elseif $ARGS[0] = 'community_tickets':
  33. $menu_loc = 'bus'
  34. $menu_arg = 'community_tickets'
  35. menu_off = 0
  36. act 'Leave the ticket office': gt 'bus', 'community'
  37. gs 'transport_functions', 'buy_bus_ticket', 'community', 'pv'
  38. elseif $ARGS[0] = 'community_busses':
  39. $menu_loc = 'bus'
  40. $menu_arg = 'community_busses'
  41. menu_off = 0
  42. gs 'transport_functions', 'set_bus_wait_time', 'community'
  43. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  44. act 'Leave the platform': gt 'bus', 'community'
  45. act 'Take a bus to the Pavlovsk train station (<<func(''transport_functions'', ''display_bus_timecost'', ''community'', ''pavstation'')>>)': gt 'bus', 'community_pavstation'
  46. act 'Take a bus to the old town district of Pushkin (<<func(''transport_functions'', ''display_bus_timecost'', ''community'', ''pushkin'')>>)': gt 'bus', 'community_pushkin'
  47. act 'Take a bus to the construction site (<<func(''transport_functions'', ''display_bus_timecost'', ''community'', ''construction'')>>)': gt 'bus', 'community_construction'
  48. act 'Take a bus to the village of Gadukino (<<func(''transport_functions'', ''display_bus_timecost'', ''community'', ''gadukino'')>>)': gt 'bus', 'community_gadukino'
  49. end
  50. !!-----------------------!!
  51. !! !!
  52. !! pavstation !!
  53. !! !!
  54. !!-----------------------!!
  55. if $ARGS[0] = 'pavstation':
  56. *clr & cla
  57. $menu_loc = 'bus'
  58. $menu_arg = 'pavstation'
  59. $location_type = 'public_outdoors'
  60. menu_off = 0
  61. gs 'stat'
  62. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  63. 'Bus station near the Pavlovsk train station'
  64. *nl
  65. gs 'transport_functions', 'set_bus_wait_time', 'pavstation'
  66. 'The next bus in the direction of the Pavlovsk community center ' + iif(transportVars['bus_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_pavlovsk'']>> minutes.')
  67. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  68. act 'Walk to the train station (0:02)': minut += 2 & gt 'pav_train_hall'
  69. if transportVars['buspass_day'] > daystart:
  70. *nl
  71. func('transport_functions', 'display_buspass_time')
  72. act 'Go to platforms': gt 'bus', 'pavstation_busses'
  73. else
  74. act 'Buy a ticket': gt 'bus', 'pavstation_tickets'
  75. end
  76. elseif $ARGS[0] = 'pavstation_tickets':
  77. $menu_loc = 'bus'
  78. $menu_arg = 'pavstation_tickets'
  79. menu_off = 0
  80. act 'Leave the ticket office': gt 'bus', 'pavstation'
  81. gs 'transport_functions', 'buy_bus_ticket', 'pavstation', 'pv'
  82. elseif $ARGS[0] = 'pavstation_busses':
  83. $menu_loc = 'bus'
  84. $menu_arg = 'pavstation_busses'
  85. menu_off = 0
  86. gs 'transport_functions', 'set_bus_wait_time', 'pavstation'
  87. 'The next bus in the direction of the Pavlovsk community center ' + iif(transportVars['bus_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_pavlovsk'']>> minutes.')
  88. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  89. act 'Leave the platform': gt 'bus', 'pavstation'
  90. act 'Take a bus to the Pavlovsk community center (<<func(''transport_functions'', ''display_bus_timecost'', ''pavstation'', ''community'')>>)': gt 'bus', 'pavstation_community'
  91. act 'Take a bus to the old town district of Pushkin (<<func(''transport_functions'', ''display_bus_timecost'', ''pavstation'', ''pushkin'')>>)': gt 'bus', 'pavstation_pushkin'
  92. act 'Take a bus to the construction site (<<func(''transport_functions'', ''display_bus_timecost'', ''pavstation'', ''construction'')>>)': gt 'bus', 'pavstation_construction'
  93. act 'Take a bus to the village of Gadukino (<<func(''transport_functions'', ''display_bus_timecost'', ''pavstation'', ''gadukino'')>>)': gt 'bus', 'pavstation_gadukino'
  94. end
  95. !!-----------------------!!
  96. !! !!
  97. !! pushkin !!
  98. !! !!
  99. !!-----------------------!!
  100. if $ARGS[0] = 'pushkin':
  101. *clr & cla
  102. $menu_loc = 'bus'
  103. $menu_arg = 'pushkin'
  104. $location_type = 'public_outdoors'
  105. menu_off = 0
  106. gs 'stat'
  107. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  108. 'The bus station in old town center of Pushkin'
  109. *nl
  110. gs 'transport_functions', 'set_bus_wait_time', 'pushkin'
  111. 'The next bus in the direction of Pavlovsk ' + iif(transportVars['bus_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_pavlovsk'']>> minutes.')
  112. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  113. act 'Walk to pushkin (0:05)': minut += 5 & !gt '???'
  114. if transportVars['buspass_day'] > daystart:
  115. *nl
  116. func('transport_functions', 'display_buspass_time')
  117. act 'Go to platforms': gt 'bus', 'pushkin_busses'
  118. else
  119. act 'Buy a ticket': gt 'bus', 'pushkin_tickets'
  120. end
  121. elseif $ARGS[0] = 'pushkin_tickets':
  122. $menu_loc = 'bus'
  123. $menu_arg = 'pushkin_tickets'
  124. menu_off = 0
  125. act 'Leave the ticket office': gt 'bus', 'pushkin'
  126. gs 'transport_functions', 'buy_bus_ticket', 'pushkin', 'pv'
  127. elseif $ARGS[0] = 'pushkin_busses':
  128. $menu_loc = 'bus'
  129. $menu_arg = 'pushkin_busses'
  130. menu_off = 0
  131. gs 'transport_functions', 'set_bus_wait_time', 'pushkin'
  132. 'The next bus in the direction of Pavlovsk ' + iif(transportVars['bus_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_pavlovsk'']>> minutes.')
  133. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  134. act 'Leave the platform': gt 'bus', 'pushkin'
  135. act 'Take a bus to the Pavlovsk community center (<<func(''transport_functions'', ''display_bus_timecost'', ''pushkin'', ''community'')>>)': gt 'bus', 'pushkin_community'
  136. act 'Take a bus to the Pavlovsk train station (<<func(''transport_functions'', ''display_bus_timecost'', ''pushkin'', ''pavstation'')>>)': gt 'bus', 'pushkin_pavstation'
  137. act 'Take a bus to the construction site (<<func(''transport_functions'', ''display_bus_timecost'', ''pushkin'', ''construction'')>>)': gt 'bus', 'pushkin_construction'
  138. act 'Take a bus to the village of Gadukino (<<func(''transport_functions'', ''display_bus_timecost'', ''pushkin'', ''gadukino'')>>)': gt 'bus', 'pushkin_gadukino'
  139. end
  140. !!-----------------------!!
  141. !! !!
  142. !! construction !!
  143. !! !!
  144. !!-----------------------!!
  145. if $ARGS[0] = 'construction':
  146. *clr & cla
  147. $menu_loc = 'bus'
  148. $menu_arg = 'construction'
  149. $location_type = 'public_outdoors'
  150. menu_off = 0
  151. gs 'stat'
  152. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  153. 'The construction site bus station'
  154. *nl
  155. gs 'transport_functions', 'set_bus_wait_time', 'construction'
  156. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  157. 'The next bus in the direction of Pavlovsk ' + iif(transportVars['bus_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_pavlovsk'']>> minutes.')
  158. act 'Walk to the construction site (0:05)': minut += 5 & nroad = 16 & gt 'road'
  159. if transportVars['buspass_day'] > daystart:
  160. *nl
  161. func('transport_functions', 'display_buspass_time')
  162. act 'Go to platforms': gt 'bus', 'construction_busses'
  163. else
  164. act 'Buy a ticket': gt 'bus', 'construction_tickets'
  165. end
  166. elseif $ARGS[0] = 'construction_tickets':
  167. $menu_loc = 'bus'
  168. $menu_arg = 'construction_tickets'
  169. menu_off = 0
  170. act 'Leave the ticket office': gt 'bus', 'construction'
  171. gs 'transport_functions', 'buy_bus_ticket', 'construction', 'vp'
  172. elseif $ARGS[0] = 'construction_busses':
  173. $menu_loc = 'bus'
  174. $menu_arg = 'construction_busses'
  175. menu_off = 0
  176. gs 'transport_functions', 'set_bus_wait_time', 'construction'
  177. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  178. 'The next bus in the direction of Pavlovsk ' + iif(transportVars['bus_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_pavlovsk'']>> minutes.')
  179. act 'Leave the platform': gt 'bus', 'construction'
  180. act 'Take a bus to the village of Gadukino (<<func(''transport_functions'', ''display_bus_timecost'', ''construction'', ''gadukino'')>>)': gt 'bus', 'construction_gadukino'
  181. act 'Take a bus to the old town district of Pushkin (<<func(''transport_functions'', ''display_bus_timecost'', ''construction'', ''pushkin'')>>)': gt 'bus', 'construction_pushkin'
  182. act 'Take a bus to the Pavlovsk train station (<<func(''transport_functions'', ''display_bus_timecost'', ''construction'', ''pavstation'')>>)': gt 'bus', 'construction_pavstation'
  183. act 'Take a bus to the Pavlovsk community center (<<func(''transport_functions'', ''display_bus_timecost'', ''construction'', ''community'')>>)': gt 'bus', 'construction_community'
  184. end
  185. !!-----------------------!!
  186. !! !!
  187. !! gadukino !!
  188. !! !!
  189. !!-----------------------!!
  190. if $ARGS[0] = 'gadukino':
  191. *clr & cla
  192. $menu_loc = 'bus'
  193. $menu_arg = 'gadukino'
  194. $location_type = 'public_outdoors'
  195. menu_off = 0
  196. gs 'stat'
  197. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  198. 'The bus station at the forest road of the village of Gadukino'
  199. *nl
  200. gs 'transport_functions', 'set_bus_wait_time', 'gadukino'
  201. 'The next bus in the direction of Pavlovsk ' + iif(transportVars['bus_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_pavlovsk'']>> minutes.')
  202. 'The next bus in the direction of the suburbs of St. Petersburg ' + iif(transportVars['bus_wait_suburbs'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_suburbs'']>> minutes.')
  203. act 'Walk to Gadukino (0:01)': minut += 1 & gt 'gadroad'
  204. if transportVars['buspass_day'] > daystart:
  205. *nl
  206. func('transport_functions', 'display_buspass_time')
  207. act 'Go to platforms': gt 'bus', 'gadukino_busses'
  208. else
  209. act 'Buy a ticket': gt 'bus', 'gadukino_tickets'
  210. end
  211. elseif $ARGS[0] = 'gadukino_tickets':
  212. $menu_loc = 'bus'
  213. $menu_arg = 'gadukino_tickets'
  214. menu_off = 0
  215. act 'Leave the ticket office': gt 'bus', 'gadukino'
  216. gs 'transport_functions', 'buy_bus_ticket', 'gadukino', 'vp'
  217. gs 'transport_functions', 'buy_bus_ticket', 'gadukino', 'vs'
  218. elseif $ARGS[0] = 'gadukino_busses':
  219. $menu_loc = 'bus'
  220. $menu_arg = 'gadukino_busses'
  221. menu_off = 0
  222. gs 'transport_functions', 'set_bus_wait_time', 'gadukino'
  223. 'The next bus in the direction of Pavlovsk ' + iif(transportVars['bus_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_pavlovsk'']>> minutes.')
  224. 'The next bus in the direction of the suburbs of the St. Petersburg suburbs ' + iif(transportVars['bus_wait_suburbs'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_suburbs'']>> minutes.')
  225. act 'Leave the platform': gt 'bus', 'gadukino'
  226. act 'Take a bus to the construction site (<<func(''transport_functions'', ''display_bus_timecost'', ''gadukino'', ''construction'')>>)': gt 'bus', 'gadukino_construction'
  227. act 'Take a bus to the old town district of Pushkin (<<func(''transport_functions'', ''display_bus_timecost'', ''gadukino'', ''pushkin'')>>)': gt 'bus', 'gadukino_pushkin'
  228. act 'Take a bus to the Pavlovsk train station (<<func(''transport_functions'', ''display_bus_timecost'', ''gadukino'', ''pavstation'')>>)': gt 'bus', 'gadukino_pavstation'
  229. act 'Take a bus to the Pavlovsk community center (<<func(''transport_functions'', ''display_bus_timecost'', ''construction'', ''community'')>>)': gt 'bus', 'construction_community'
  230. act 'Take a bus to the communal village (<<func(''transport_functions'', ''display_bus_timecost'', ''gadukino'', ''communal'')>>)': gt 'bus', 'gadukino_communal'
  231. act 'Take a bus the cemetery outside of St. Petersburg (<<func(''transport_functions'', ''display_bus_timecost'', ''gadukino'', ''graveyard'')>>)': gt 'bus', 'gadukino_graveyard'
  232. act 'Take a bus to the the suburbs of St. Petersburg (<<func(''transport_functions'', ''display_bus_timecost'', ''gadukino'', ''suburbs'')>>)': gt 'bus', 'gadukino_suburbs'
  233. end
  234. !!-----------------------!!
  235. !! !!
  236. !! communal !!
  237. !! !!
  238. !!-----------------------!!
  239. if $ARGS[0] = 'communal':
  240. *clr & cla
  241. $menu_loc = 'bus'
  242. $menu_arg = 'communal'
  243. $location_type = 'public_outdoors'
  244. menu_off = 0
  245. gs 'stat'
  246. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  247. 'The communal village bus station'
  248. *nl
  249. gs 'transport_functions', 'set_bus_wait_time', 'communal'
  250. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  251. 'The next bus in the direction of the suburbs of St. Petersburg ' + iif(transportVars['bus_wait_suburbs'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_suburbs'']>> minutes.')
  252. act 'Walk to the communal village (0:03)': minut += 3 & gt 'dachi'
  253. if transportVars['buspass_day'] > daystart:
  254. *nl
  255. func('transport_functions', 'display_buspass_time')
  256. act 'Go to platforms': gt 'bus', 'communal_busses'
  257. else
  258. act 'Buy a ticket': gt 'bus', 'communal_tickets'
  259. end
  260. elseif $ARGS[0] = 'communal_tickets':
  261. $menu_loc = 'bus'
  262. $menu_arg = 'communal_tickets'
  263. menu_off = 0
  264. act 'Leave the ticket office': gt 'bus', 'communal'
  265. gs 'transport_functions', 'buy_bus_ticket', 'communal', 'vs'
  266. elseif $ARGS[0] = 'communal_busses':
  267. $menu_loc = 'bus'
  268. $menu_arg = 'communal_busses'
  269. menu_off = 0
  270. gs 'transport_functions', 'set_bus_wait_time', 'communal'
  271. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  272. 'The next bus in the direction of the suburbs of the St. Petersburg suburbs ' + iif(transportVars['bus_wait_suburbs'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_suburbs'']>> minutes.')
  273. act 'Leave the platform': gt 'bus', 'communal'
  274. act 'Take a bus to the village of Gadukino (<<func(''transport_functions'', ''display_bus_timecost'', ''communal'', ''gadukino'')>>)': gt 'bus', 'communal_gadukino'
  275. act 'Take a bus the cemetery outside of St. Petersburg (<<func(''transport_functions'', ''display_bus_timecost'', ''communal'', ''graveyard'')>>)': gt 'bus', 'communal_graveyard'
  276. act 'Take a bus to the the suburbs of St. Petersburg (<<func(''transport_functions'', ''display_bus_timecost'', ''communal'', ''suburbs'')>>)': gt 'bus', 'communal_suburbs'
  277. end
  278. !!-----------------------!!
  279. !! !!
  280. !! graveyard !!
  281. !! !!
  282. !!-----------------------!!
  283. if $ARGS[0] = 'graveyard':
  284. *clr & cla
  285. $menu_loc = 'bus'
  286. $menu_arg = 'graveyard'
  287. $location_type = 'public_outdoors'
  288. menu_off = 0
  289. gs 'stat'
  290. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  291. 'The cemetery bus station'
  292. *nl
  293. gs 'transport_functions', 'set_bus_wait_time', 'graveyard'
  294. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  295. 'The next bus in the direction of the suburbs of St. Petersburg ' + iif(transportVars['bus_wait_suburbs'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_suburbs'']>> minutes.')
  296. act 'Walk to the graveyard (0:01)': minut += 1 & nroad = 3 & gt 'road'
  297. if transportVars['buspass_day'] > daystart:
  298. *nl
  299. func('transport_functions', 'display_buspass_time')
  300. act 'Go to platforms': gt 'bus', 'graveyard_busses'
  301. else
  302. act 'Buy a ticket': gt 'bus', 'graveyard_tickets'
  303. end
  304. elseif $ARGS[0] = 'graveyard_tickets':
  305. $menu_loc = 'bus'
  306. $menu_arg = 'graveyard_tickets'
  307. menu_off = 0
  308. act 'Leave the ticket office': gt 'bus', 'graveyard'
  309. gs 'transport_functions', 'buy_bus_ticket', 'graveyard', 'sv'
  310. elseif $ARGS[0] = 'graveyard_busses':
  311. $menu_loc = 'bus'
  312. $menu_arg = 'graveyard_busses'
  313. menu_off = 0
  314. gs 'transport_functions', 'set_bus_wait_time', 'graveyard'
  315. 'The next bus in the direction of the suburbs of the St. Petersburg suburbs ' + iif(transportVars['bus_wait_suburbs'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_suburbs'']>> minutes.')
  316. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  317. act 'Leave the platform': gt 'bus', 'communal'
  318. act 'Take a bus to the suburbs of St. Petersburg (<<func(''transport_functions'', ''display_bus_timecost'', ''graveyard'', ''suburbs'')>>)': gt 'bus', 'graveyard_suburbs'
  319. act 'Take a bus to the communal village (<<func(''transport_functions'', ''display_bus_timecost'', ''graveyard'', ''communal'')>>)': gt 'bus', 'graveyard_communal'
  320. act 'Take a bus the village of Gadukino (<<func(''transport_functions'', ''display_bus_timecost'', ''graveyard'', ''gadukino'')>>)': gt 'bus', 'graveyard_gadukino'
  321. end
  322. !!-----------------------!!
  323. !! !!
  324. !! suburbs !!
  325. !! !!
  326. !!-----------------------!!
  327. if $ARGS[0] = 'suburbs':
  328. *clr & cla
  329. $menu_loc = 'bus'
  330. $menu_arg = 'suburbs'
  331. $location_type = 'public_outdoors'
  332. menu_off = 0
  333. gs 'stat'
  334. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  335. 'The bus station near the suburbs of St. Petersburg'
  336. *nl
  337. gs 'transport_functions', 'set_bus_wait_time', 'suburbs'
  338. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  339. act 'Walk to the suburbs (0:05)': minut += 5 & gt 'city_suburbs', 'start'
  340. if transportVars['buspass_day'] > daystart:
  341. *nl
  342. func('transport_functions', 'display_buspass_time')
  343. act 'Go to platforms': gt 'bus', 'suburbs_busses'
  344. else
  345. act 'Buy a ticket': gt 'bus', 'suburbs_tickets'
  346. end
  347. elseif $ARGS[0] = 'suburbs_tickets':
  348. $menu_loc = 'bus'
  349. $menu_arg = 'suburbs_tickets'
  350. menu_off = 0
  351. act 'Leave the ticket office': gt 'bus', 'suburbs'
  352. gs 'transport_functions', 'buy_bus_ticket', 'suburbs', 'sv'
  353. elseif $ARGS[0] = 'suburbs_busses':
  354. $menu_loc = 'bus'
  355. $menu_arg = 'suburbs_busses'
  356. menu_off = 0
  357. gs 'transport_functions', 'set_bus_wait_time', 'suburbs'
  358. 'The next bus in the direction of the suburbs of the St. Petersburg suburbs ' + iif(transportVars['bus_wait_suburbs'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_suburbs'']>> minutes.')
  359. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  360. act 'Leave the platform': gt 'bus', 'suburbs'
  361. act 'Take a bus the cemetery outside of St. Petersburg (<<func(''transport_functions'', ''display_bus_timecost'', ''suburbs'', ''graveyard'')>>)': gt 'bus', 'suburbs_graveyard'
  362. act 'Take a bus to the communal village (<<func(''transport_functions'', ''display_bus_timecost'', ''suburbs'', ''communal'')>>)': gt 'bus', 'suburbs_communal'
  363. act 'Take a bus the village of Gadukino (<<func(''transport_functions'', ''display_bus_timecost'', ''suburbs'', ''gadukino'')>>)': gt 'bus', 'suburbs_gadukino'
  364. end
  365. !!============================================!!
  366. !! !!
  367. !! Bus Transport !!
  368. !! !!
  369. !!============================================!!
  370. !!-----------------------!!
  371. !! !!
  372. !! community !!
  373. !! !!
  374. !!-----------------------!!
  375. if $ARGS[0] = 'community_pavstation':
  376. $loc = 'bus'
  377. $loc_arg = 'pavstation'
  378. $location_type = 'public_indoors'
  379. menu_off = 1
  380. gs 'transport_functions', 'set_bus_wait_time'
  381. transportVars['timecost'] = transportVars['bus_time_community_pavstation'] + transportVars['bus_wait_gadukino']
  382. minut += transportVars['timecost']
  383. gs 'stat'
  384. transportVars['rand'] = rand(1, 100)
  385. if transportVars['rand'] <= 9:
  386. gt 'bus_incidental', 'events'
  387. elseif transportVars['bus_event_day'] ! daystart:
  388. if transportVars['rand'] <= 16:
  389. gt 'bus_events', 'events'
  390. end
  391. end
  392. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  393. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk train station bus station.'
  394. act 'Get off the bus':
  395. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  396. gt $loc, $loc_arg
  397. end
  398. elseif $ARGS[0] = 'community_pushkin':
  399. $loc = 'bus'
  400. $loc_arg = 'pushkin'
  401. $location_type = 'public_indoors'
  402. menu_off = 1
  403. gs 'transport_functions', 'set_bus_wait_time'
  404. transportVars['timecost'] = transportVars['bus_time_community_pushkin'] + transportVars['bus_wait_gadukino']
  405. minut += transportVars['timecost']
  406. gs 'stat'
  407. transportVars['rand'] = rand(1, 100)
  408. if transportVars['rand'] <= 9:
  409. gt 'bus_incidental', 'events'
  410. elseif transportVars['bus_event_day'] ! daystart:
  411. if transportVars['rand'] <= 16:
  412. gt 'bus_events', 'events'
  413. end
  414. end
  415. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  416. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pushkin bus station.'
  417. act 'Get off the bus':
  418. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  419. gt $loc, $loc_arg
  420. end
  421. elseif $ARGS[0] = 'community_construction':
  422. $loc = 'bus'
  423. $loc_arg = 'construction'
  424. $location_type = 'public_indoors'
  425. menu_off = 1
  426. gs 'transport_functions', 'set_bus_wait_time'
  427. transportVars['timecost'] = transportVars['bus_time_community_construction'] + transportVars['bus_wait_gadukino']
  428. minut += transportVars['timecost']
  429. gs 'stat'
  430. transportVars['rand'] = rand(1, 100)
  431. if transportVars['rand'] <= 9:
  432. gt 'bus_incidental', 'events'
  433. elseif transportVars['bus_event_day'] ! daystart:
  434. if transportVars['rand'] <= 16:
  435. gt 'bus_events', 'events'
  436. end
  437. end
  438. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  439. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the construction site bus station.'
  440. act 'Get off the bus':
  441. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  442. gt $loc, $loc_arg
  443. end
  444. elseif $ARGS[0] = 'community_gadukino':
  445. $loc = 'bus'
  446. $loc_arg = 'gadukino'
  447. $location_type = 'public_indoors'
  448. menu_off = 1
  449. gs 'transport_functions', 'set_bus_wait_time'
  450. transportVars['timecost'] = transportVars['bus_time_community_gadukino'] + transportVars['bus_wait_gadukino']
  451. minut += transportVars['timecost']
  452. gs 'stat'
  453. transportVars['rand'] = rand(1, 100)
  454. if transportVars['rand'] <= 9:
  455. gt 'bus_incidental', 'events'
  456. elseif transportVars['bus_event_day'] ! daystart:
  457. if transportVars['rand'] <= 16:
  458. gt 'bus_events', 'events'
  459. end
  460. end
  461. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  462. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  463. act 'Get off the bus':
  464. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  465. gt $loc, $loc_arg
  466. end
  467. end
  468. !!-----------------------!!
  469. !! !!
  470. !! pavstation !!
  471. !! !!
  472. !!-----------------------!!
  473. if $ARGS[0] = 'pavstation_community':
  474. $loc = 'bus'
  475. $loc_arg = 'community'
  476. $location_type = 'public_indoors'
  477. menu_off = 1
  478. gs 'transport_functions', 'set_bus_wait_time'
  479. transportVars['timecost'] = transportVars['bus_time_pavstation_community'] + transportVars['bus_wait_pavlovsk']
  480. minut += transportVars['timecost']
  481. gs 'stat'
  482. transportVars['rand'] = rand(1, 100)
  483. if transportVars['rand'] <= 9:
  484. gt 'bus_incidental', 'events'
  485. elseif transportVars['bus_event_day'] ! daystart:
  486. if transportVars['rand'] <= 16:
  487. gt 'bus_events', 'events'
  488. end
  489. end
  490. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  491. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk community center bus station.'
  492. act 'Get off the bus':
  493. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  494. gt $loc, $loc_arg
  495. end
  496. elseif $ARGS[0] = 'pavstation_pushkin':
  497. $loc = 'bus'
  498. $loc_arg = 'pushkin'
  499. $location_type = 'public_indoors'
  500. menu_off = 1
  501. gs 'transport_functions', 'set_bus_wait_time'
  502. transportVars['timecost'] = transportVars['bus_time_pavstation_pushkin'] + transportVars['bus_wait_gadukino']
  503. minut += transportVars['timecost']
  504. gs 'stat'
  505. transportVars['rand'] = rand(1, 100)
  506. if transportVars['rand'] <= 9:
  507. gt 'bus_incidental', 'events'
  508. elseif transportVars['bus_event_day'] ! daystart:
  509. if transportVars['rand'] <= 16:
  510. gt 'bus_events', 'events'
  511. end
  512. end
  513. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  514. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pushkin bus station.'
  515. act 'Get off the bus':
  516. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  517. gt $loc, $loc_arg
  518. end
  519. elseif $ARGS[0] = 'pavstation_construction':
  520. $loc = 'bus'
  521. $loc_arg = 'construction'
  522. $location_type = 'public_indoors'
  523. menu_off = 1
  524. gs 'transport_functions', 'set_bus_wait_time'
  525. transportVars['timecost'] = transportVars['bus_time_pavstation_construction'] + transportVars['bus_wait_gadukino']
  526. minut += transportVars['timecost']
  527. gs 'stat'
  528. transportVars['rand'] = rand(1, 100)
  529. if transportVars['rand'] <= 9:
  530. gt 'bus_incidental', 'events'
  531. elseif transportVars['bus_event_day'] ! daystart:
  532. if transportVars['rand'] <= 16:
  533. gt 'bus_events', 'events'
  534. end
  535. end
  536. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  537. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the construction site bus station.'
  538. act 'Get off the bus':
  539. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  540. gt $loc, $loc_arg
  541. end
  542. elseif $ARGS[0] = 'pavstation_gadukino':
  543. $loc = 'bus'
  544. $loc_arg = 'gadukino'
  545. $location_type = 'public_indoors'
  546. menu_off = 1
  547. gs 'transport_functions', 'set_bus_wait_time'
  548. transportVars['timecost'] = transportVars['bus_time_pavstation_gadukino'] + transportVars['bus_wait_gadukino']
  549. minut += transportVars['timecost']
  550. gs 'stat'
  551. transportVars['rand'] = rand(1, 100)
  552. if transportVars['rand'] <= 9:
  553. gt 'bus_incidental', 'events'
  554. elseif transportVars['bus_event_day'] ! daystart:
  555. if transportVars['rand'] <= 16:
  556. gt 'bus_events', 'events'
  557. end
  558. end
  559. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  560. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  561. act 'Get off the bus':
  562. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  563. gt $loc, $loc_arg
  564. end
  565. end
  566. !!-----------------------!!
  567. !! !!
  568. !! pushkin !!
  569. !! !!
  570. !!-----------------------!!
  571. if $ARGS[0] = 'pushkin_community':
  572. $loc = 'bus'
  573. $loc_arg = 'community'
  574. $location_type = 'public_indoors'
  575. menu_off = 1
  576. gs 'transport_functions', 'set_bus_wait_time'
  577. transportVars['timecost'] = transportVars['bus_time_pushkin_community'] + transportVars['bus_wait_pavlovsk']
  578. minut += transportVars['timecost']
  579. gs 'stat'
  580. transportVars['rand'] = rand(1, 100)
  581. if transportVars['rand'] <= 9:
  582. gt 'bus_incidental', 'events'
  583. elseif transportVars['bus_event_day'] ! daystart:
  584. if transportVars['rand'] <= 16:
  585. gt 'bus_events', 'events'
  586. end
  587. end
  588. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  589. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk community center bus station.'
  590. act 'Get off the bus':
  591. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  592. gt $loc, $loc_arg
  593. end
  594. elseif $ARGS[0] = 'pushkin_pavstation':
  595. $loc = 'bus'
  596. $loc_arg = 'pavstation'
  597. $location_type = 'public_indoors'
  598. menu_off = 1
  599. gs 'transport_functions', 'set_bus_wait_time'
  600. transportVars['timecost'] = transportVars['bus_time_pushkin_pavstation'] + transportVars['bus_wait_pavlovsk']
  601. minut += transportVars['timecost']
  602. gs 'stat'
  603. transportVars['rand'] = rand(1, 100)
  604. if transportVars['rand'] <= 9:
  605. gt 'bus_incidental', 'events'
  606. elseif transportVars['bus_event_day'] ! daystart:
  607. if transportVars['rand'] <= 16:
  608. gt 'bus_events', 'events'
  609. end
  610. end
  611. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  612. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk train station bus station.'
  613. act 'Get off the bus':
  614. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  615. gt $loc, $loc_arg
  616. end
  617. elseif $ARGS[0] = 'pushkin_construction':
  618. $loc = 'bus'
  619. $loc_arg = 'construction'
  620. $location_type = 'public_indoors'
  621. menu_off = 1
  622. gs 'transport_functions', 'set_bus_wait_time'
  623. transportVars['timecost'] = transportVars['bus_time_pushkin_construction'] + transportVars['bus_wait_gadukino']
  624. minut += transportVars['timecost']
  625. gs 'stat'
  626. transportVars['rand'] = rand(1, 100)
  627. if transportVars['rand'] <= 9:
  628. gt 'bus_incidental', 'events'
  629. elseif transportVars['bus_event_day'] ! daystart:
  630. if transportVars['rand'] <= 16:
  631. gt 'bus_events', 'events'
  632. end
  633. end
  634. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  635. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the construction site bus station.'
  636. act 'Get off the bus':
  637. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  638. gt $loc, $loc_arg
  639. end
  640. elseif $ARGS[0] = 'pushkin_gadukino':
  641. $loc = 'bus'
  642. $loc_arg = 'gadukino'
  643. $location_type = 'public_indoors'
  644. menu_off = 1
  645. gs 'transport_functions', 'set_bus_wait_time'
  646. transportVars['timecost'] = transportVars['bus_time_pushkin_gadukino'] + transportVars['bus_wait_gadukino']
  647. minut += transportVars['timecost']
  648. gs 'stat'
  649. transportVars['rand'] = rand(1, 100)
  650. if transportVars['rand'] <= 9:
  651. gt 'bus_incidental', 'events'
  652. elseif transportVars['bus_event_day'] ! daystart:
  653. if transportVars['rand'] <= 16:
  654. gt 'bus_events', 'events'
  655. end
  656. end
  657. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  658. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  659. act 'Get off the bus':
  660. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  661. gt $loc, $loc_arg
  662. end
  663. end
  664. !!-----------------------!!
  665. !! !!
  666. !! construction !!
  667. !! !!
  668. !!-----------------------!!
  669. if $ARGS[0] = 'construction_community':
  670. $loc = 'bus'
  671. $loc_arg = 'community'
  672. $location_type = 'public_indoors'
  673. menu_off = 1
  674. gs 'transport_functions', 'set_bus_wait_time'
  675. transportVars['timecost'] = transportVars['bus_time_construction_community'] + transportVars['bus_wait_pavlovsk']
  676. minut += transportVars['timecost']
  677. gs 'stat'
  678. transportVars['rand'] = rand(1, 100)
  679. if transportVars['rand'] <= 9:
  680. gt 'bus_incidental', 'events'
  681. elseif transportVars['bus_event_day'] ! daystart:
  682. if transportVars['rand'] <= 16:
  683. gt 'bus_events', 'events'
  684. end
  685. end
  686. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  687. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk community center bus station.'
  688. act 'Get off the bus':
  689. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  690. gt $loc, $loc_arg
  691. end
  692. elseif $ARGS[0] = 'construction_pavstation':
  693. $loc = 'bus'
  694. $loc_arg = 'pavstation'
  695. $location_type = 'public_indoors'
  696. menu_off = 1
  697. gs 'transport_functions', 'set_bus_wait_time'
  698. transportVars['timecost'] = transportVars['bus_time_construction_pavstation'] + transportVars['bus_wait_pavlovsk']
  699. minut += transportVars['timecost']
  700. gs 'stat'
  701. transportVars['rand'] = rand(1, 100)
  702. if transportVars['rand'] <= 9:
  703. gt 'bus_incidental', 'events'
  704. elseif transportVars['bus_event_day'] ! daystart:
  705. if transportVars['rand'] <= 16:
  706. gt 'bus_events', 'events'
  707. end
  708. end
  709. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  710. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk train station bus station.'
  711. act 'Get off the bus':
  712. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  713. gt $loc, $loc_arg
  714. end
  715. elseif $ARGS[0] = 'construction_pushkin':
  716. $loc = 'bus'
  717. $loc_arg = 'pushkin'
  718. $location_type = 'public_indoors'
  719. menu_off = 1
  720. gs 'transport_functions', 'set_bus_wait_time'
  721. transportVars['timecost'] = transportVars['bus_time_construction_pushkin'] + transportVars['bus_wait_pavlovsk']
  722. minut += transportVars['timecost']
  723. gs 'stat'
  724. transportVars['rand'] = rand(1, 100)
  725. if transportVars['rand'] <= 9:
  726. gt 'bus_incidental', 'events'
  727. elseif transportVars['bus_event_day'] ! daystart:
  728. if transportVars['rand'] <= 16:
  729. gt 'bus_events', 'events'
  730. end
  731. end
  732. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  733. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pushkin bus station.'
  734. act 'Get off the bus':
  735. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  736. gt $loc, $loc_arg
  737. end
  738. elseif $ARGS[0] = 'construction_gadukino':
  739. $loc = 'bus'
  740. $loc_arg = 'gadukino'
  741. $location_type = 'public_indoors'
  742. menu_off = 1
  743. gs 'transport_functions', 'set_bus_wait_time'
  744. transportVars['timecost'] = transportVars['bus_time_construction_gadukino'] + transportVars['bus_wait_gadukino']
  745. minut += transportVars['timecost']
  746. gs 'stat'
  747. transportVars['rand'] = rand(1, 100)
  748. if transportVars['rand'] <= 9:
  749. gt 'bus_incidental', 'events'
  750. elseif transportVars['bus_event_day'] ! daystart:
  751. if transportVars['rand'] <= 16:
  752. gt 'bus_events', 'events'
  753. end
  754. end
  755. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  756. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  757. act 'Get off the bus':
  758. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  759. gt $loc, $loc_arg
  760. end
  761. end
  762. !!-----------------------!!
  763. !! !!
  764. !! gadukino !!
  765. !! !!
  766. !!-----------------------!!
  767. if $ARGS[0] = 'gadukino_community':
  768. $loc = 'bus'
  769. $loc_arg = 'community'
  770. $location_type = 'public_indoors'
  771. menu_off = 1
  772. gs 'transport_functions', 'set_bus_wait_time'
  773. transportVars['timecost'] = transportVars['bus_time_gadukino_community'] + transportVars['bus_wait_pavlovsk']
  774. minut += transportVars['timecost']
  775. gs 'stat'
  776. transportVars['rand'] = rand(1, 100)
  777. if transportVars['rand'] <= 9:
  778. gt 'bus_incidental', 'events'
  779. elseif transportVars['bus_event_day'] ! daystart:
  780. if transportVars['rand'] <= 16:
  781. gt 'bus_events', 'events'
  782. end
  783. end
  784. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  785. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk community center bus station.'
  786. act 'Get off the bus':
  787. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  788. gt $loc, $loc_arg
  789. end
  790. elseif $ARGS[0] = 'gadukino_pavstation':
  791. $loc = 'bus'
  792. $loc_arg = 'pavstation'
  793. $location_type = 'public_indoors'
  794. menu_off = 1
  795. gs 'transport_functions', 'set_bus_wait_time'
  796. transportVars['timecost'] = transportVars['bus_time_gadukino_pavstation'] + transportVars['bus_wait_pavlovsk']
  797. minut += transportVars['timecost']
  798. gs 'stat'
  799. transportVars['rand'] = rand(1, 100)
  800. if transportVars['rand'] <= 9:
  801. gt 'bus_incidental', 'events'
  802. elseif transportVars['bus_event_day'] ! daystart:
  803. if transportVars['rand'] <= 16:
  804. gt 'bus_events', 'events'
  805. end
  806. end
  807. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  808. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk train station bus station.'
  809. act 'Get off the bus':
  810. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  811. gt $loc, $loc_arg
  812. end
  813. elseif $ARGS[0] = 'gadukino_pushkin':
  814. $loc = 'bus'
  815. $loc_arg = 'pushkin'
  816. $location_type = 'public_indoors'
  817. menu_off = 1
  818. gs 'transport_functions', 'set_bus_wait_time'
  819. transportVars['timecost'] = transportVars['bus_time_gadukino_pushkin'] + transportVars['bus_wait_pavlovsk']
  820. minut += transportVars['timecost']
  821. gs 'stat'
  822. transportVars['rand'] = rand(1, 100)
  823. if transportVars['rand'] <= 9:
  824. gt 'bus_incidental', 'events'
  825. elseif transportVars['bus_event_day'] ! daystart:
  826. if transportVars['rand'] <= 16:
  827. gt 'bus_events', 'events'
  828. end
  829. end
  830. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  831. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pushkin bus station.'
  832. act 'Get off the bus':
  833. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  834. gt $loc, $loc_arg
  835. end
  836. elseif $ARGS[0] = 'gadukino_construction':
  837. $loc = 'bus'
  838. $loc_arg = 'construction'
  839. $location_type = 'public_indoors'
  840. menu_off = 1
  841. gs 'transport_functions', 'set_bus_wait_time'
  842. transportVars['timecost'] = transportVars['bus_time_gadukino_construction'] + transportVars['bus_wait_pavlovsk']
  843. minut += transportVars['timecost']
  844. gs 'stat'
  845. transportVars['rand'] = rand(1, 100)
  846. if transportVars['rand'] <= 9:
  847. gt 'bus_incidental', 'events'
  848. elseif transportVars['bus_event_day'] ! daystart:
  849. if transportVars['rand'] <= 16:
  850. gt 'bus_events', 'events'
  851. end
  852. end
  853. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  854. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the construction site bus station.'
  855. act 'Get off the bus':
  856. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  857. gt $loc, $loc_arg
  858. end
  859. elseif $ARGS[0] = 'gadukino_communal':
  860. $loc = 'bus'
  861. $loc_arg = 'communal'
  862. $location_type = 'public_indoors'
  863. menu_off = 1
  864. gs 'transport_functions', 'set_bus_wait_time'
  865. transportVars['timecost'] = transportVars['bus_time_gadukino_communal'] + transportVars['bus_wait_suburbs']
  866. minut += transportVars['timecost']
  867. gs 'stat'
  868. transportVars['rand'] = rand(1, 100)
  869. if transportVars['rand'] <= 9:
  870. gt 'bus_incidental', 'events'
  871. elseif transportVars['bus_event_day'] ! daystart:
  872. if transportVars['rand'] <= 16:
  873. gt 'bus_events', 'events'
  874. end
  875. end
  876. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  877. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the communal village bus station.'
  878. act 'Get off the bus':
  879. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  880. gt $loc, $loc_arg
  881. end
  882. elseif $ARGS[0] = 'gadukino_graveyard':
  883. $loc = 'bus'
  884. $loc_arg = 'graveyard'
  885. $location_type = 'public_indoors'
  886. menu_off = 1
  887. gs 'transport_functions', 'set_bus_wait_time'
  888. transportVars['timecost'] = transportVars['bus_time_gadukino_graveyard'] + transportVars['bus_wait_suburbs']
  889. minut += transportVars['timecost']
  890. gs 'stat'
  891. transportVars['rand'] = rand(1, 100)
  892. if transportVars['rand'] <= 9:
  893. gt 'bus_incidental', 'events'
  894. elseif transportVars['bus_event_day'] ! daystart:
  895. if transportVars['rand'] <= 16:
  896. gt 'bus_events', 'events'
  897. end
  898. end
  899. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  900. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the graveyard bus station.'
  901. act 'Get off the bus':
  902. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  903. gt $loc, $loc_arg
  904. end
  905. elseif $ARGS[0] = 'gadukino_suburbs':
  906. $loc = 'bus'
  907. $loc_arg = 'suburbs'
  908. $location_type = 'public_indoors'
  909. menu_off = 1
  910. gs 'transport_functions', 'set_bus_wait_time'
  911. transportVars['timecost'] = transportVars['bus_time_gadukino_suburbs'] + transportVars['bus_wait_suburbs']
  912. minut += transportVars['timecost']
  913. gs 'stat'
  914. transportVars['rand'] = rand(1, 100)
  915. if transportVars['rand'] <= 9:
  916. gt 'bus_incidental', 'events'
  917. elseif transportVars['bus_event_day'] ! daystart:
  918. if transportVars['rand'] <= 16:
  919. gt 'bus_events', 'events'
  920. end
  921. end
  922. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  923. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the suburbs bus station.'
  924. act 'Get off the bus':
  925. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  926. gt $loc, $loc_arg
  927. end
  928. end
  929. !!-----------------------!!
  930. !! !!
  931. !! communal !!
  932. !! !!
  933. !!-----------------------!!
  934. if $ARGS[0] = 'communal_gadukino':
  935. $loc = 'bus'
  936. $loc_arg = 'gadukino'
  937. $location_type = 'public_indoors'
  938. menu_off = 1
  939. gs 'transport_functions', 'set_bus_wait_time'
  940. transportVars['timecost'] = transportVars['bus_time_communal_gadukino'] + transportVars['bus_wait_gadukino']
  941. minut += transportVars['timecost']
  942. gs 'stat'
  943. transportVars['rand'] = rand(1, 100)
  944. if transportVars['rand'] <= 9:
  945. gt 'bus_incidental', 'events'
  946. elseif transportVars['bus_event_day'] ! daystart:
  947. if transportVars['rand'] <= 16:
  948. gt 'bus_events', 'events'
  949. end
  950. end
  951. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  952. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  953. act 'Get off the bus':
  954. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  955. gt $loc, $loc_arg
  956. end
  957. elseif $ARGS[0] = 'communal_graveyard':
  958. $loc = 'bus'
  959. $loc_arg = 'graveyard'
  960. $location_type = 'public_indoors'
  961. menu_off = 1
  962. gs 'transport_functions', 'set_bus_wait_time'
  963. transportVars['timecost'] = transportVars['bus_time_communal_graveyard'] + transportVars['bus_wait_suburbs']
  964. minut += transportVars['timecost']
  965. gs 'stat'
  966. transportVars['rand'] = rand(1, 100)
  967. if transportVars['rand'] <= 9:
  968. gt 'bus_incidental', 'events'
  969. elseif transportVars['bus_event_day'] ! daystart:
  970. if transportVars['rand'] <= 16:
  971. gt 'bus_events', 'events'
  972. end
  973. end
  974. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  975. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the graveyard bus station.'
  976. act 'Get off the bus':
  977. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  978. gt $loc, $loc_arg
  979. end
  980. elseif $ARGS[0] = 'communal_suburbs':
  981. $loc = 'bus'
  982. $loc_arg = 'suburbs'
  983. $location_type = 'public_indoors'
  984. menu_off = 1
  985. gs 'transport_functions', 'set_bus_wait_time'
  986. transportVars['timecost'] = transportVars['bus_time_communal_suburbs'] + transportVars['bus_wait_suburbs']
  987. minut += transportVars['timecost']
  988. gs 'stat'
  989. transportVars['rand'] = rand(1, 100)
  990. if transportVars['rand'] <= 9:
  991. gt 'bus_incidental', 'events'
  992. elseif transportVars['bus_event_day'] ! daystart:
  993. if transportVars['rand'] <= 16:
  994. gt 'bus_events', 'events'
  995. end
  996. end
  997. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  998. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the suburbs bus station.'
  999. act 'Get off the bus':
  1000. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1001. gt $loc, $loc_arg
  1002. end
  1003. end
  1004. !!-----------------------!!
  1005. !! !!
  1006. !! graveyard !!
  1007. !! !!
  1008. !!-----------------------!!
  1009. if $ARGS[0] = 'graveyard_gadukino':
  1010. $loc = 'bus'
  1011. $loc_arg = 'gadukino'
  1012. $location_type = 'public_indoors'
  1013. menu_off = 1
  1014. gs 'transport_functions', 'set_bus_wait_time'
  1015. transportVars['timecost'] = transportVars['bus_time_graveyard_gadukino'] + transportVars['bus_wait_gadukino']
  1016. minut += transportVars['timecost']
  1017. gs 'stat'
  1018. transportVars['rand'] = rand(1, 100)
  1019. if transportVars['rand'] <= 9:
  1020. gt 'bus_incidental', 'events'
  1021. elseif transportVars['bus_event_day'] ! daystart:
  1022. if transportVars['rand'] <= 16:
  1023. gt 'bus_events', 'events'
  1024. end
  1025. end
  1026. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  1027. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  1028. act 'Get off the bus':
  1029. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1030. gt $loc, $loc_arg
  1031. end
  1032. elseif $ARGS[0] = 'graveyard_communal':
  1033. $loc = 'bus'
  1034. $loc_arg = 'communal'
  1035. $location_type = 'public_indoors'
  1036. menu_off = 1
  1037. gs 'transport_functions', 'set_bus_wait_time'
  1038. transportVars['timecost'] = transportVars['bus_time_graveyard_communal'] + transportVars['bus_wait_gadukino']
  1039. minut += transportVars['timecost']
  1040. gs 'stat'
  1041. transportVars['rand'] = rand(1, 100)
  1042. if transportVars['rand'] <= 9:
  1043. gt 'bus_incidental', 'events'
  1044. elseif transportVars['bus_event_day'] ! daystart:
  1045. if transportVars['rand'] <= 16:
  1046. gt 'bus_events', 'events'
  1047. end
  1048. end
  1049. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  1050. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the communal village bus station.'
  1051. act 'Get off the bus':
  1052. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1053. gt $loc, $loc_arg
  1054. end
  1055. elseif $ARGS[0] = 'graveyard_suburbs':
  1056. $loc = 'bus'
  1057. $loc_arg = 'suburbs'
  1058. $location_type = 'public_indoors'
  1059. menu_off = 1
  1060. gs 'transport_functions', 'set_bus_wait_time'
  1061. transportVars['timecost'] = transportVars['bus_time_graveyard_suburbs'] + transportVars['bus_wait_suburbs']
  1062. minut += transportVars['timecost']
  1063. gs 'stat'
  1064. transportVars['rand'] = rand(1, 100)
  1065. if transportVars['rand'] <= 9:
  1066. gt 'bus_incidental', 'events'
  1067. elseif transportVars['bus_event_day'] ! daystart:
  1068. if transportVars['rand'] <= 16:
  1069. gt 'bus_events', 'events'
  1070. end
  1071. end
  1072. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  1073. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the suburbs bus station.'
  1074. act 'Get off the bus':
  1075. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1076. gt $loc, $loc_arg
  1077. end
  1078. end
  1079. !!-----------------------!!
  1080. !! !!
  1081. !! suburbs !!
  1082. !! !!
  1083. !!-----------------------!!
  1084. if $ARGS[0] = 'suburbs_gadukino':
  1085. $loc = 'bus'
  1086. $loc_arg = 'gadukino'
  1087. $location_type = 'public_indoors'
  1088. menu_off = 1
  1089. gs 'transport_functions', 'set_bus_wait_time'
  1090. transportVars['timecost'] = transportVars['bus_time_suburbs_gadukino'] + transportVars['bus_wait_gadukino']
  1091. minut += transportVars['timecost']
  1092. gs 'stat'
  1093. transportVars['rand'] = rand(1, 100)
  1094. if transportVars['rand'] <= 9:
  1095. gt 'bus_incidental', 'events'
  1096. elseif transportVars['bus_event_day'] ! daystart:
  1097. if transportVars['rand'] <= 16:
  1098. gt 'bus_events', 'events'
  1099. end
  1100. end
  1101. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  1102. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  1103. act 'Get off the bus':
  1104. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1105. gt $loc, $loc_arg
  1106. end
  1107. elseif $ARGS[0] = 'suburbs_communal':
  1108. $loc = 'bus'
  1109. $loc_arg = 'communal'
  1110. $location_type = 'public_indoors'
  1111. menu_off = 1
  1112. gs 'transport_functions', 'set_bus_wait_time'
  1113. transportVars['timecost'] = transportVars['bus_time_suburbs_communal'] + transportVars['bus_wait_gadukino']
  1114. minut += transportVars['timecost']
  1115. gs 'stat'
  1116. transportVars['rand'] = rand(1, 100)
  1117. if transportVars['rand'] <= 9:
  1118. gt 'bus_incidental', 'events'
  1119. elseif transportVars['bus_event_day'] ! daystart:
  1120. if transportVars['rand'] <= 16:
  1121. gt 'bus_events', 'events'
  1122. end
  1123. end
  1124. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  1125. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the communal village bus station.'
  1126. act 'Get off the bus':
  1127. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1128. gt $loc, $loc_arg
  1129. end
  1130. elseif $ARGS[0] = 'suburbs_graveyard':
  1131. $loc = 'bus'
  1132. $loc_arg = 'graveyard'
  1133. $location_type = 'public_indoors'
  1134. menu_off = 1
  1135. gs 'transport_functions', 'set_bus_wait_time'
  1136. transportVars['timecost'] = transportVars['bus_time_suburbs_graveyard'] + transportVars['bus_wait_gadukino']
  1137. minut += transportVars['timecost']
  1138. gs 'stat'
  1139. transportVars['rand'] = rand(1, 100)
  1140. if transportVars['rand'] <= 9:
  1141. gt 'bus_incidental', 'events'
  1142. elseif transportVars['bus_event_day'] ! daystart:
  1143. if transportVars['rand'] <= 16:
  1144. gt 'bus_events', 'events'
  1145. end
  1146. end
  1147. '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
  1148. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the graveyard bus station.'
  1149. act 'Get off the bus':
  1150. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1151. gt $loc, $loc_arg
  1152. end
  1153. end
  1154. --- bus ------------------------------------