bus.qsrc 58 KB

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