bus.qsrc 60 KB

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