bus.qsrc 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658
  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 road (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/locations/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
  407. else
  408. '<center><img <<$set_imgh>> src="images/locations/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/locations/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
  413. else
  414. '<center><img <<$set_imgh>> src="images/locations/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 road (0:01)': minut += 1 & nroad = 3 & gt 'road'
  499. act 'Walk to the cemetary (0:15)': minut += 15 & gt 'graveyard'
  500. if transportVars['bus_wait_gadukino'] <= 60 or transportVars['bus_wait_suburbs'] <= 60:
  501. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  502. '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.')
  503. if transportVars['buspass_day'] > daystart:
  504. *nl
  505. func('transport_functions', 'display_buspass_time')
  506. act 'Go to platforms': gt 'bus', 'graveyard_busses'
  507. else
  508. act 'Walk to the ticket machine': gt 'bus', 'graveyard_tickets'
  509. end
  510. else
  511. '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.'
  512. end
  513. elseif $ARGS[0] = 'graveyard_tickets':
  514. $menu_loc = 'bus'
  515. $menu_arg = 'graveyard_tickets'
  516. menu_off = 0
  517. act 'Leave the ticket office': gt 'bus', 'graveyard'
  518. act 'Look at the bus schedule':
  519. *clr & cla
  520. gs 'transport_functions', 'display_bus_schedule', 'sg'
  521. *nl
  522. *nl
  523. gs 'transport_functions', 'display_bus_schedule', 'gs'
  524. act 'Stop looking at the schedule': gt 'bus', 'graveyard_tickets'
  525. end
  526. gs 'transport_functions', 'buy_bus_ticket', 'graveyard', 'sg'
  527. elseif $ARGS[0] = 'graveyard_busses':
  528. $menu_loc = 'bus'
  529. $menu_arg = 'graveyard_busses'
  530. menu_off = 0
  531. gs 'transport_functions', 'set_bus_wait_time', 'graveyard'
  532. '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.')
  533. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  534. act 'Leave the platform': gt 'bus', 'graveyard'
  535. act 'Look at the bus schedule':
  536. *clr & cla
  537. gs 'transport_functions', 'display_bus_schedule', 'sg'
  538. *nl
  539. *nl
  540. gs 'transport_functions', 'display_bus_schedule', 'gs'
  541. act 'Stop looking at the schedule': gt 'bus', 'graveyard_busses'
  542. end
  543. act 'Take a bus to the suburbs of St. Petersburg (<<func(''transport_functions'', ''display_bus_timecost'', ''graveyard'', ''suburbs'')>>)': gt 'bus', 'graveyard_suburbs'
  544. act 'Take a bus to the communal village (<<func(''transport_functions'', ''display_bus_timecost'', ''graveyard'', ''communal'')>>)': gt 'bus', 'graveyard_communal'
  545. act 'Take a bus the village of Gadukino (<<func(''transport_functions'', ''display_bus_timecost'', ''graveyard'', ''gadukino'')>>)': gt 'bus', 'graveyard_gadukino'
  546. end
  547. !!-----------------------!!
  548. !! !!
  549. !! suburbs !!
  550. !! !!
  551. !!-----------------------!!
  552. if $ARGS[0] = 'suburbs':
  553. *clr & cla
  554. $menu_loc = 'bus'
  555. $menu_arg = 'suburbs'
  556. $location_type = 'public_outdoors'
  557. menu_off = 0
  558. gs 'stat'
  559. if month >= 11 or month <= 3:
  560. if hour >= 9 and hour <= 16:
  561. '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
  562. else
  563. '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_night<<rand(1, 3)>>.jpg"></center>'
  564. end
  565. else
  566. if hour >= 7 and hour <= 18:
  567. '<center><img <<$set_imgh>> src="images/locations/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
  568. else
  569. '<center><img <<$set_imgh>> src="images/locations/shared/bus/night<<rand(1, 3)>>.jpg"></center>'
  570. end
  571. end
  572. 'The bus stop near the suburbs of St. Petersburg'
  573. *nl
  574. gs 'transport_functions', 'set_bus_wait_time', 'suburbs'
  575. act 'Walk to the suburbs (0:05)': minut += 5 & gt 'city_suburbs', 'start'
  576. 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'
  577. if transportVars['bus_wait_gadukino'] <= 60:
  578. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  579. if transportVars['buspass_day'] > daystart:
  580. *nl
  581. func('transport_functions', 'display_buspass_time')
  582. act 'Go to platforms': gt 'bus', 'suburbs_busses'
  583. else
  584. act 'Walk to the ticket machine': gt 'bus', 'suburbs_tickets'
  585. gs 'transport_functions', 'buy_bus_pass'
  586. end
  587. else
  588. 'It''s too late to take the bus. The next one arrives in <<transportVars[''bus_wait_gadukino'']/60>> hours'
  589. end
  590. elseif $ARGS[0] = 'suburbs_tickets':
  591. $menu_loc = 'bus'
  592. $menu_arg = 'suburbs_tickets'
  593. menu_off = 0
  594. act 'Leave the ticket office': gt 'bus', 'suburbs'
  595. act 'Look at the bus schedule':
  596. *clr & cla
  597. gs 'transport_functions', 'display_bus_schedule', 'sg'
  598. act 'Stop looking at the schedule': gt 'bus', 'suburbs_tickets'
  599. end
  600. gs 'transport_functions', 'buy_bus_ticket', 'suburbs', 'sg'
  601. elseif $ARGS[0] = 'suburbs_busses':
  602. $menu_loc = 'bus'
  603. $menu_arg = 'suburbs_busses'
  604. menu_off = 0
  605. gs 'transport_functions', 'set_bus_wait_time', 'suburbs'
  606. '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.')
  607. 'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
  608. act 'Leave the platform': gt 'bus', 'suburbs'
  609. act 'Look at the bus schedule':
  610. *clr & cla
  611. gs 'transport_functions', 'display_bus_schedule', 'sg'
  612. act 'Stop looking at the schedule': gt 'bus', 'suburbs_busses'
  613. end
  614. act 'Take a bus the cemetery outside of St. Petersburg (<<func(''transport_functions'', ''display_bus_timecost'', ''suburbs'', ''graveyard'')>>)': gt 'bus', 'suburbs_graveyard'
  615. act 'Take a bus to the communal village (<<func(''transport_functions'', ''display_bus_timecost'', ''suburbs'', ''communal'')>>)': gt 'bus', 'suburbs_communal'
  616. act 'Take a bus the village of Gadukino (<<func(''transport_functions'', ''display_bus_timecost'', ''suburbs'', ''gadukino'')>>)': gt 'bus', 'suburbs_gadukino'
  617. end
  618. !!============================================!!
  619. !! !!
  620. !! Bus Transport !!
  621. !! !!
  622. !!============================================!!
  623. !!-----------------------!!
  624. !! !!
  625. !! community !!
  626. !! !!
  627. !!-----------------------!!
  628. if $ARGS[0] = 'community_pavstation':
  629. $loc = 'bus'
  630. $loc_arg = 'pavstation'
  631. $location_type = 'public_indoors'
  632. menu_off = 1
  633. gs 'transport_functions', 'set_bus_wait_time'
  634. transportVars['timecost'] = transportVars['bus_time_community_pavstation'] + transportVars['bus_wait_gadukino']
  635. minut += transportVars['timecost']
  636. gs 'stat'
  637. transportVars['rand'] = rand(1, 100)
  638. if transportVars['rand'] <= 9:
  639. gt 'bus_incidental', 'events'
  640. elseif transportVars['bus_event_day'] ! daystart:
  641. if transportVars['rand'] <= 16:
  642. gt 'bus_events', 'events'
  643. end
  644. end
  645. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  646. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk train station bus station.'
  647. act 'Get off the bus':
  648. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  649. gt $loc, $loc_arg
  650. end
  651. elseif $ARGS[0] = 'community_pushkin':
  652. $loc = 'bus'
  653. $loc_arg = 'pushkin'
  654. $location_type = 'public_indoors'
  655. menu_off = 1
  656. gs 'transport_functions', 'set_bus_wait_time'
  657. transportVars['timecost'] = transportVars['bus_time_community_pushkin'] + transportVars['bus_wait_gadukino']
  658. minut += transportVars['timecost']
  659. gs 'stat'
  660. transportVars['rand'] = rand(1, 100)
  661. if transportVars['rand'] <= 9:
  662. gt 'bus_incidental', 'events'
  663. elseif transportVars['bus_event_day'] ! daystart:
  664. if transportVars['rand'] <= 16:
  665. gt 'bus_events', 'events'
  666. end
  667. end
  668. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  669. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pushkin bus station.'
  670. act 'Get off the bus':
  671. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  672. gt $loc, $loc_arg
  673. end
  674. elseif $ARGS[0] = 'community_construction':
  675. $loc = 'bus'
  676. $loc_arg = 'construction'
  677. $location_type = 'public_indoors'
  678. menu_off = 1
  679. gs 'transport_functions', 'set_bus_wait_time'
  680. transportVars['timecost'] = transportVars['bus_time_community_construction'] + transportVars['bus_wait_gadukino']
  681. minut += transportVars['timecost']
  682. gs 'stat'
  683. transportVars['rand'] = rand(1, 100)
  684. if transportVars['rand'] <= 9:
  685. gt 'bus_incidental', 'events'
  686. elseif transportVars['bus_event_day'] ! daystart:
  687. if transportVars['rand'] <= 16:
  688. gt 'bus_events', 'events'
  689. end
  690. end
  691. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  692. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the construction site bus station.'
  693. act 'Get off the bus':
  694. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  695. gt $loc, $loc_arg
  696. end
  697. elseif $ARGS[0] = 'community_gadukino':
  698. $loc = 'bus'
  699. $loc_arg = 'gadukino'
  700. $location_type = 'public_indoors'
  701. menu_off = 1
  702. gs 'transport_functions', 'set_bus_wait_time'
  703. transportVars['timecost'] = transportVars['bus_time_community_gadukino'] + transportVars['bus_wait_gadukino']
  704. minut += transportVars['timecost']
  705. gs 'stat'
  706. transportVars['rand'] = rand(1, 100)
  707. if transportVars['rand'] <= 9:
  708. gt 'bus_incidental', 'events'
  709. elseif transportVars['bus_event_day'] ! daystart:
  710. if transportVars['rand'] <= 16:
  711. gt 'bus_events', 'events'
  712. end
  713. end
  714. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  715. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  716. act 'Get off the bus':
  717. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  718. gt $loc, $loc_arg
  719. end
  720. end
  721. !!-----------------------!!
  722. !! !!
  723. !! pavstation !!
  724. !! !!
  725. !!-----------------------!!
  726. if $ARGS[0] = 'pavstation_community':
  727. $loc = 'bus'
  728. $loc_arg = 'community'
  729. $location_type = 'public_indoors'
  730. menu_off = 1
  731. gs 'transport_functions', 'set_bus_wait_time'
  732. transportVars['timecost'] = transportVars['bus_time_pavstation_community'] + transportVars['bus_wait_pavlovsk']
  733. minut += transportVars['timecost']
  734. gs 'stat'
  735. transportVars['rand'] = rand(1, 100)
  736. if transportVars['rand'] <= 9:
  737. gt 'bus_incidental', 'events'
  738. elseif transportVars['bus_event_day'] ! daystart:
  739. if transportVars['rand'] <= 16:
  740. gt 'bus_events', 'events'
  741. end
  742. end
  743. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  744. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk community center bus station.'
  745. act 'Get off the bus':
  746. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  747. gt $loc, $loc_arg
  748. end
  749. elseif $ARGS[0] = 'pavstation_pushkin':
  750. $loc = 'bus'
  751. $loc_arg = 'pushkin'
  752. $location_type = 'public_indoors'
  753. menu_off = 1
  754. gs 'transport_functions', 'set_bus_wait_time'
  755. transportVars['timecost'] = transportVars['bus_time_pavstation_pushkin'] + transportVars['bus_wait_gadukino']
  756. minut += transportVars['timecost']
  757. gs 'stat'
  758. transportVars['rand'] = rand(1, 100)
  759. if transportVars['rand'] <= 9:
  760. gt 'bus_incidental', 'events'
  761. elseif transportVars['bus_event_day'] ! daystart:
  762. if transportVars['rand'] <= 16:
  763. gt 'bus_events', 'events'
  764. end
  765. end
  766. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  767. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pushkin bus station.'
  768. act 'Get off the bus':
  769. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  770. gt $loc, $loc_arg
  771. end
  772. elseif $ARGS[0] = 'pavstation_construction':
  773. $loc = 'bus'
  774. $loc_arg = 'construction'
  775. $location_type = 'public_indoors'
  776. menu_off = 1
  777. gs 'transport_functions', 'set_bus_wait_time'
  778. transportVars['timecost'] = transportVars['bus_time_pavstation_construction'] + transportVars['bus_wait_gadukino']
  779. minut += transportVars['timecost']
  780. gs 'stat'
  781. transportVars['rand'] = rand(1, 100)
  782. if transportVars['rand'] <= 9:
  783. gt 'bus_incidental', 'events'
  784. elseif transportVars['bus_event_day'] ! daystart:
  785. if transportVars['rand'] <= 16:
  786. gt 'bus_events', 'events'
  787. end
  788. end
  789. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  790. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the construction site bus station.'
  791. act 'Get off the bus':
  792. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  793. gt $loc, $loc_arg
  794. end
  795. elseif $ARGS[0] = 'pavstation_gadukino':
  796. $loc = 'bus'
  797. $loc_arg = 'gadukino'
  798. $location_type = 'public_indoors'
  799. menu_off = 1
  800. gs 'transport_functions', 'set_bus_wait_time'
  801. transportVars['timecost'] = transportVars['bus_time_pavstation_gadukino'] + transportVars['bus_wait_gadukino']
  802. minut += transportVars['timecost']
  803. gs 'stat'
  804. transportVars['rand'] = rand(1, 100)
  805. if transportVars['rand'] <= 9:
  806. gt 'bus_incidental', 'events'
  807. elseif transportVars['bus_event_day'] ! daystart:
  808. if transportVars['rand'] <= 16:
  809. gt 'bus_events', 'events'
  810. end
  811. end
  812. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  813. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  814. act 'Get off the bus':
  815. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  816. gt $loc, $loc_arg
  817. end
  818. end
  819. !!-----------------------!!
  820. !! !!
  821. !! pushkin !!
  822. !! !!
  823. !!-----------------------!!
  824. if $ARGS[0] = 'pushkin_community':
  825. $loc = 'bus'
  826. $loc_arg = 'community'
  827. $location_type = 'public_indoors'
  828. menu_off = 1
  829. gs 'transport_functions', 'set_bus_wait_time'
  830. transportVars['timecost'] = transportVars['bus_time_pushkin_community'] + transportVars['bus_wait_pavlovsk']
  831. minut += transportVars['timecost']
  832. gs 'stat'
  833. transportVars['rand'] = rand(1, 100)
  834. if transportVars['rand'] <= 9:
  835. gt 'bus_incidental', 'events'
  836. elseif transportVars['bus_event_day'] ! daystart:
  837. if transportVars['rand'] <= 16:
  838. gt 'bus_events', 'events'
  839. end
  840. end
  841. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  842. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk community center bus station.'
  843. act 'Get off the bus':
  844. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  845. gt $loc, $loc_arg
  846. end
  847. elseif $ARGS[0] = 'pushkin_pavstation':
  848. $loc = 'bus'
  849. $loc_arg = 'pavstation'
  850. $location_type = 'public_indoors'
  851. menu_off = 1
  852. gs 'transport_functions', 'set_bus_wait_time'
  853. transportVars['timecost'] = transportVars['bus_time_pushkin_pavstation'] + transportVars['bus_wait_pavlovsk']
  854. minut += transportVars['timecost']
  855. gs 'stat'
  856. transportVars['rand'] = rand(1, 100)
  857. if transportVars['rand'] <= 9:
  858. gt 'bus_incidental', 'events'
  859. elseif transportVars['bus_event_day'] ! daystart:
  860. if transportVars['rand'] <= 16:
  861. gt 'bus_events', 'events'
  862. end
  863. end
  864. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  865. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk train station bus station.'
  866. act 'Get off the bus':
  867. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  868. gt $loc, $loc_arg
  869. end
  870. elseif $ARGS[0] = 'pushkin_construction':
  871. $loc = 'bus'
  872. $loc_arg = 'construction'
  873. $location_type = 'public_indoors'
  874. menu_off = 1
  875. gs 'transport_functions', 'set_bus_wait_time'
  876. transportVars['timecost'] = transportVars['bus_time_pushkin_construction'] + transportVars['bus_wait_gadukino']
  877. minut += transportVars['timecost']
  878. gs 'stat'
  879. transportVars['rand'] = rand(1, 100)
  880. if transportVars['rand'] <= 9:
  881. gt 'bus_incidental', 'events'
  882. elseif transportVars['bus_event_day'] ! daystart:
  883. if transportVars['rand'] <= 16:
  884. gt 'bus_events', 'events'
  885. end
  886. end
  887. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  888. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the construction site bus station.'
  889. act 'Get off the bus':
  890. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  891. gt $loc, $loc_arg
  892. end
  893. elseif $ARGS[0] = 'pushkin_gadukino':
  894. $loc = 'bus'
  895. $loc_arg = 'gadukino'
  896. $location_type = 'public_indoors'
  897. menu_off = 1
  898. gs 'transport_functions', 'set_bus_wait_time'
  899. transportVars['timecost'] = transportVars['bus_time_pushkin_gadukino'] + transportVars['bus_wait_gadukino']
  900. minut += transportVars['timecost']
  901. gs 'stat'
  902. transportVars['rand'] = rand(1, 100)
  903. if transportVars['rand'] <= 9:
  904. gt 'bus_incidental', 'events'
  905. elseif transportVars['bus_event_day'] ! daystart:
  906. if transportVars['rand'] <= 16:
  907. gt 'bus_events', 'events'
  908. end
  909. end
  910. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  911. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  912. act 'Get off the bus':
  913. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  914. gt $loc, $loc_arg
  915. end
  916. end
  917. !!-----------------------!!
  918. !! !!
  919. !! construction !!
  920. !! !!
  921. !!-----------------------!!
  922. if $ARGS[0] = 'construction_community':
  923. $loc = 'bus'
  924. $loc_arg = 'community'
  925. $location_type = 'public_indoors'
  926. menu_off = 1
  927. gs 'transport_functions', 'set_bus_wait_time'
  928. transportVars['timecost'] = transportVars['bus_time_construction_community'] + transportVars['bus_wait_pavlovsk']
  929. minut += transportVars['timecost']
  930. gs 'stat'
  931. transportVars['rand'] = rand(1, 100)
  932. if transportVars['rand'] <= 9:
  933. gt 'bus_incidental', 'events'
  934. elseif transportVars['bus_event_day'] ! daystart:
  935. if transportVars['rand'] <= 16:
  936. gt 'bus_events', 'events'
  937. end
  938. end
  939. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  940. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk community center bus station.'
  941. act 'Get off the bus':
  942. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  943. gt $loc, $loc_arg
  944. end
  945. elseif $ARGS[0] = 'construction_pavstation':
  946. $loc = 'bus'
  947. $loc_arg = 'pavstation'
  948. $location_type = 'public_indoors'
  949. menu_off = 1
  950. gs 'transport_functions', 'set_bus_wait_time'
  951. transportVars['timecost'] = transportVars['bus_time_construction_pavstation'] + transportVars['bus_wait_pavlovsk']
  952. minut += transportVars['timecost']
  953. gs 'stat'
  954. transportVars['rand'] = rand(1, 100)
  955. if transportVars['rand'] <= 9:
  956. gt 'bus_incidental', 'events'
  957. elseif transportVars['bus_event_day'] ! daystart:
  958. if transportVars['rand'] <= 16:
  959. gt 'bus_events', 'events'
  960. end
  961. end
  962. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  963. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk train station bus station.'
  964. act 'Get off the bus':
  965. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  966. gt $loc, $loc_arg
  967. end
  968. elseif $ARGS[0] = 'construction_pushkin':
  969. $loc = 'bus'
  970. $loc_arg = 'pushkin'
  971. $location_type = 'public_indoors'
  972. menu_off = 1
  973. gs 'transport_functions', 'set_bus_wait_time'
  974. transportVars['timecost'] = transportVars['bus_time_construction_pushkin'] + transportVars['bus_wait_pavlovsk']
  975. minut += transportVars['timecost']
  976. gs 'stat'
  977. transportVars['rand'] = rand(1, 100)
  978. if transportVars['rand'] <= 9:
  979. gt 'bus_incidental', 'events'
  980. elseif transportVars['bus_event_day'] ! daystart:
  981. if transportVars['rand'] <= 16:
  982. gt 'bus_events', 'events'
  983. end
  984. end
  985. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  986. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pushkin bus station.'
  987. act 'Get off the bus':
  988. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  989. gt $loc, $loc_arg
  990. end
  991. elseif $ARGS[0] = 'construction_gadukino':
  992. $loc = 'bus'
  993. $loc_arg = 'gadukino'
  994. $location_type = 'public_indoors'
  995. menu_off = 1
  996. gs 'transport_functions', 'set_bus_wait_time'
  997. transportVars['timecost'] = transportVars['bus_time_construction_gadukino'] + transportVars['bus_wait_gadukino']
  998. minut += transportVars['timecost']
  999. gs 'stat'
  1000. transportVars['rand'] = rand(1, 100)
  1001. if transportVars['rand'] <= 9:
  1002. gt 'bus_incidental', 'events'
  1003. elseif transportVars['bus_event_day'] ! daystart:
  1004. if transportVars['rand'] <= 16:
  1005. gt 'bus_events', 'events'
  1006. end
  1007. end
  1008. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1009. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  1010. act 'Get off the bus':
  1011. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1012. gt $loc, $loc_arg
  1013. end
  1014. end
  1015. !!-----------------------!!
  1016. !! !!
  1017. !! gadukino !!
  1018. !! !!
  1019. !!-----------------------!!
  1020. if $ARGS[0] = 'gadukino_community':
  1021. $loc = 'bus'
  1022. $loc_arg = 'community'
  1023. $location_type = 'public_indoors'
  1024. menu_off = 1
  1025. gs 'transport_functions', 'set_bus_wait_time'
  1026. transportVars['timecost'] = transportVars['bus_time_gadukino_community'] + transportVars['bus_wait_pavlovsk']
  1027. minut += transportVars['timecost']
  1028. gs 'stat'
  1029. transportVars['rand'] = rand(1, 100)
  1030. if transportVars['rand'] <= 9:
  1031. gt 'bus_incidental', 'events'
  1032. elseif transportVars['bus_event_day'] ! daystart:
  1033. if transportVars['rand'] <= 16:
  1034. gt 'bus_events', 'events'
  1035. end
  1036. end
  1037. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1038. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk community center bus station.'
  1039. act 'Get off the bus':
  1040. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1041. gt $loc, $loc_arg
  1042. end
  1043. elseif $ARGS[0] = 'gadukino_pavstation':
  1044. $loc = 'bus'
  1045. $loc_arg = 'pavstation'
  1046. $location_type = 'public_indoors'
  1047. menu_off = 1
  1048. gs 'transport_functions', 'set_bus_wait_time'
  1049. transportVars['timecost'] = transportVars['bus_time_gadukino_pavstation'] + transportVars['bus_wait_pavlovsk']
  1050. minut += transportVars['timecost']
  1051. gs 'stat'
  1052. transportVars['rand'] = rand(1, 100)
  1053. if transportVars['rand'] <= 9:
  1054. gt 'bus_incidental', 'events'
  1055. elseif transportVars['bus_event_day'] ! daystart:
  1056. if transportVars['rand'] <= 16:
  1057. gt 'bus_events', 'events'
  1058. end
  1059. end
  1060. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1061. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pavlovsk train station bus station.'
  1062. act 'Get off the bus':
  1063. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1064. gt $loc, $loc_arg
  1065. end
  1066. elseif $ARGS[0] = 'gadukino_pushkin':
  1067. $loc = 'bus'
  1068. $loc_arg = 'pushkin'
  1069. $location_type = 'public_indoors'
  1070. menu_off = 1
  1071. gs 'transport_functions', 'set_bus_wait_time'
  1072. transportVars['timecost'] = transportVars['bus_time_gadukino_pushkin'] + transportVars['bus_wait_pavlovsk']
  1073. minut += transportVars['timecost']
  1074. gs 'stat'
  1075. transportVars['rand'] = rand(1, 100)
  1076. if transportVars['rand'] <= 9:
  1077. gt 'bus_incidental', 'events'
  1078. elseif transportVars['bus_event_day'] ! daystart:
  1079. if transportVars['rand'] <= 16:
  1080. gt 'bus_events', 'events'
  1081. end
  1082. end
  1083. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1084. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Pushkin bus station.'
  1085. act 'Get off the bus':
  1086. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1087. gt $loc, $loc_arg
  1088. end
  1089. elseif $ARGS[0] = 'gadukino_construction':
  1090. $loc = 'bus'
  1091. $loc_arg = 'construction'
  1092. $location_type = 'public_indoors'
  1093. menu_off = 1
  1094. gs 'transport_functions', 'set_bus_wait_time'
  1095. transportVars['timecost'] = transportVars['bus_time_gadukino_construction'] + transportVars['bus_wait_pavlovsk']
  1096. minut += transportVars['timecost']
  1097. gs 'stat'
  1098. transportVars['rand'] = rand(1, 100)
  1099. if transportVars['rand'] <= 9:
  1100. gt 'bus_incidental', 'events'
  1101. elseif transportVars['bus_event_day'] ! daystart:
  1102. if transportVars['rand'] <= 16:
  1103. gt 'bus_events', 'events'
  1104. end
  1105. end
  1106. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1107. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the construction site bus station.'
  1108. act 'Get off the bus':
  1109. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1110. gt $loc, $loc_arg
  1111. end
  1112. elseif $ARGS[0] = 'gadukino_communal':
  1113. $loc = 'bus'
  1114. $loc_arg = 'communal'
  1115. $location_type = 'public_indoors'
  1116. menu_off = 1
  1117. gs 'transport_functions', 'set_bus_wait_time'
  1118. transportVars['timecost'] = transportVars['bus_time_gadukino_communal'] + transportVars['bus_wait_suburbs']
  1119. minut += transportVars['timecost']
  1120. gs 'stat'
  1121. transportVars['rand'] = rand(1, 100)
  1122. if transportVars['rand'] <= 9:
  1123. gt 'bus_incidental', 'events'
  1124. elseif transportVars['bus_event_day'] ! daystart:
  1125. if transportVars['rand'] <= 16:
  1126. gt 'bus_events', 'events'
  1127. end
  1128. end
  1129. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1130. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the communal village bus station.'
  1131. act 'Get off the bus':
  1132. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1133. gt $loc, $loc_arg
  1134. end
  1135. elseif $ARGS[0] = 'gadukino_graveyard':
  1136. $loc = 'bus'
  1137. $loc_arg = 'graveyard'
  1138. $location_type = 'public_indoors'
  1139. menu_off = 1
  1140. gs 'transport_functions', 'set_bus_wait_time'
  1141. transportVars['timecost'] = transportVars['bus_time_gadukino_graveyard'] + transportVars['bus_wait_suburbs']
  1142. minut += transportVars['timecost']
  1143. gs 'stat'
  1144. transportVars['rand'] = rand(1, 100)
  1145. if transportVars['rand'] <= 9:
  1146. gt 'bus_incidental', 'events'
  1147. elseif transportVars['bus_event_day'] ! daystart:
  1148. if transportVars['rand'] <= 16:
  1149. gt 'bus_events', 'events'
  1150. end
  1151. end
  1152. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1153. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the graveyard bus station.'
  1154. act 'Get off the bus':
  1155. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1156. gt $loc, $loc_arg
  1157. end
  1158. elseif $ARGS[0] = 'gadukino_suburbs':
  1159. $loc = 'bus'
  1160. $loc_arg = 'suburbs'
  1161. $location_type = 'public_indoors'
  1162. menu_off = 1
  1163. gs 'transport_functions', 'set_bus_wait_time'
  1164. transportVars['timecost'] = transportVars['bus_time_gadukino_suburbs'] + transportVars['bus_wait_suburbs']
  1165. minut += transportVars['timecost']
  1166. gs 'stat'
  1167. transportVars['rand'] = rand(1, 100)
  1168. if transportVars['rand'] <= 9:
  1169. gt 'bus_incidental', 'events'
  1170. elseif transportVars['bus_event_day'] ! daystart:
  1171. if transportVars['rand'] <= 16:
  1172. gt 'bus_events', 'events'
  1173. end
  1174. end
  1175. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1176. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the suburbs bus station.'
  1177. act 'Get off the bus':
  1178. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1179. gt $loc, $loc_arg
  1180. end
  1181. end
  1182. !!-----------------------!!
  1183. !! !!
  1184. !! communal !!
  1185. !! !!
  1186. !!-----------------------!!
  1187. if $ARGS[0] = 'communal_gadukino':
  1188. $loc = 'bus'
  1189. $loc_arg = 'gadukino'
  1190. $location_type = 'public_indoors'
  1191. menu_off = 1
  1192. gs 'transport_functions', 'set_bus_wait_time'
  1193. transportVars['timecost'] = transportVars['bus_time_communal_gadukino'] + transportVars['bus_wait_gadukino']
  1194. minut += transportVars['timecost']
  1195. gs 'stat'
  1196. transportVars['rand'] = rand(1, 100)
  1197. if transportVars['rand'] <= 9:
  1198. gt 'bus_incidental', 'events'
  1199. elseif transportVars['bus_event_day'] ! daystart:
  1200. if transportVars['rand'] <= 16:
  1201. gt 'bus_events', 'events'
  1202. end
  1203. end
  1204. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1205. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  1206. act 'Get off the bus':
  1207. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1208. gt $loc, $loc_arg
  1209. end
  1210. elseif $ARGS[0] = 'communal_graveyard':
  1211. $loc = 'bus'
  1212. $loc_arg = 'graveyard'
  1213. $location_type = 'public_indoors'
  1214. menu_off = 1
  1215. gs 'transport_functions', 'set_bus_wait_time'
  1216. transportVars['timecost'] = transportVars['bus_time_communal_graveyard'] + transportVars['bus_wait_suburbs']
  1217. minut += transportVars['timecost']
  1218. gs 'stat'
  1219. transportVars['rand'] = rand(1, 100)
  1220. if transportVars['rand'] <= 9:
  1221. gt 'bus_incidental', 'events'
  1222. elseif transportVars['bus_event_day'] ! daystart:
  1223. if transportVars['rand'] <= 16:
  1224. gt 'bus_events', 'events'
  1225. end
  1226. end
  1227. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1228. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the graveyard bus station.'
  1229. act 'Get off the bus':
  1230. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1231. gt $loc, $loc_arg
  1232. end
  1233. elseif $ARGS[0] = 'communal_suburbs':
  1234. $loc = 'bus'
  1235. $loc_arg = 'suburbs'
  1236. $location_type = 'public_indoors'
  1237. menu_off = 1
  1238. gs 'transport_functions', 'set_bus_wait_time'
  1239. transportVars['timecost'] = transportVars['bus_time_communal_suburbs'] + transportVars['bus_wait_suburbs']
  1240. minut += transportVars['timecost']
  1241. gs 'stat'
  1242. transportVars['rand'] = rand(1, 100)
  1243. if transportVars['rand'] <= 9:
  1244. gt 'bus_incidental', 'events'
  1245. elseif transportVars['bus_event_day'] ! daystart:
  1246. if transportVars['rand'] <= 16:
  1247. gt 'bus_events', 'events'
  1248. end
  1249. end
  1250. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1251. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the suburbs bus station.'
  1252. act 'Get off the bus':
  1253. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1254. gt $loc, $loc_arg
  1255. end
  1256. end
  1257. !!-----------------------!!
  1258. !! !!
  1259. !! graveyard !!
  1260. !! !!
  1261. !!-----------------------!!
  1262. if $ARGS[0] = 'graveyard_gadukino':
  1263. $loc = 'bus'
  1264. $loc_arg = 'gadukino'
  1265. $location_type = 'public_indoors'
  1266. menu_off = 1
  1267. gs 'transport_functions', 'set_bus_wait_time'
  1268. transportVars['timecost'] = transportVars['bus_time_graveyard_gadukino'] + transportVars['bus_wait_gadukino']
  1269. minut += transportVars['timecost']
  1270. gs 'stat'
  1271. transportVars['rand'] = rand(1, 100)
  1272. if transportVars['rand'] <= 9:
  1273. gt 'bus_incidental', 'events'
  1274. elseif transportVars['bus_event_day'] ! daystart:
  1275. if transportVars['rand'] <= 16:
  1276. gt 'bus_events', 'events'
  1277. end
  1278. end
  1279. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1280. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  1281. act 'Get off the bus':
  1282. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1283. gt $loc, $loc_arg
  1284. end
  1285. elseif $ARGS[0] = 'graveyard_communal':
  1286. $loc = 'bus'
  1287. $loc_arg = 'communal'
  1288. $location_type = 'public_indoors'
  1289. menu_off = 1
  1290. gs 'transport_functions', 'set_bus_wait_time'
  1291. transportVars['timecost'] = transportVars['bus_time_graveyard_communal'] + transportVars['bus_wait_gadukino']
  1292. minut += transportVars['timecost']
  1293. gs 'stat'
  1294. transportVars['rand'] = rand(1, 100)
  1295. if transportVars['rand'] <= 9:
  1296. gt 'bus_incidental', 'events'
  1297. elseif transportVars['bus_event_day'] ! daystart:
  1298. if transportVars['rand'] <= 16:
  1299. gt 'bus_events', 'events'
  1300. end
  1301. end
  1302. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1303. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the communal village bus station.'
  1304. act 'Get off the bus':
  1305. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1306. gt $loc, $loc_arg
  1307. end
  1308. elseif $ARGS[0] = 'graveyard_suburbs':
  1309. $loc = 'bus'
  1310. $loc_arg = 'suburbs'
  1311. $location_type = 'public_indoors'
  1312. menu_off = 1
  1313. gs 'transport_functions', 'set_bus_wait_time'
  1314. transportVars['timecost'] = transportVars['bus_time_graveyard_suburbs'] + transportVars['bus_wait_suburbs']
  1315. minut += transportVars['timecost']
  1316. gs 'stat'
  1317. transportVars['rand'] = rand(1, 100)
  1318. if transportVars['rand'] <= 9:
  1319. gt 'bus_incidental', 'events'
  1320. elseif transportVars['bus_event_day'] ! daystart:
  1321. if transportVars['rand'] <= 16:
  1322. gt 'bus_events', 'events'
  1323. end
  1324. end
  1325. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1326. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the suburbs bus station.'
  1327. act 'Get off the bus':
  1328. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1329. gt $loc, $loc_arg
  1330. end
  1331. end
  1332. !!-----------------------!!
  1333. !! !!
  1334. !! suburbs !!
  1335. !! !!
  1336. !!-----------------------!!
  1337. if $ARGS[0] = 'suburbs_gadukino':
  1338. $loc = 'bus'
  1339. $loc_arg = 'gadukino'
  1340. $location_type = 'public_indoors'
  1341. menu_off = 1
  1342. gs 'transport_functions', 'set_bus_wait_time'
  1343. transportVars['timecost'] = transportVars['bus_time_suburbs_gadukino'] + transportVars['bus_wait_gadukino']
  1344. minut += transportVars['timecost']
  1345. gs 'stat'
  1346. transportVars['rand'] = rand(1, 100)
  1347. if transportVars['rand'] <= 9:
  1348. gt 'bus_incidental', 'events'
  1349. elseif transportVars['bus_event_day'] ! daystart:
  1350. if transportVars['rand'] <= 16:
  1351. gt 'bus_events', 'events'
  1352. end
  1353. end
  1354. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1355. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the Gadukino bus station.'
  1356. act 'Get off the bus':
  1357. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1358. gt $loc, $loc_arg
  1359. end
  1360. elseif $ARGS[0] = 'suburbs_communal':
  1361. $loc = 'bus'
  1362. $loc_arg = 'communal'
  1363. $location_type = 'public_indoors'
  1364. menu_off = 1
  1365. gs 'transport_functions', 'set_bus_wait_time'
  1366. transportVars['timecost'] = transportVars['bus_time_suburbs_communal'] + transportVars['bus_wait_gadukino']
  1367. minut += transportVars['timecost']
  1368. gs 'stat'
  1369. transportVars['rand'] = rand(1, 100)
  1370. if transportVars['rand'] <= 9:
  1371. gt 'bus_incidental', 'events'
  1372. elseif transportVars['bus_event_day'] ! daystart:
  1373. if transportVars['rand'] <= 16:
  1374. gt 'bus_events', 'events'
  1375. end
  1376. end
  1377. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1378. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the communal village bus station.'
  1379. act 'Get off the bus':
  1380. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1381. gt $loc, $loc_arg
  1382. end
  1383. elseif $ARGS[0] = 'suburbs_graveyard':
  1384. $loc = 'bus'
  1385. $loc_arg = 'graveyard'
  1386. $location_type = 'public_indoors'
  1387. menu_off = 1
  1388. gs 'transport_functions', 'set_bus_wait_time'
  1389. transportVars['timecost'] = transportVars['bus_time_suburbs_graveyard'] + transportVars['bus_wait_gadukino']
  1390. minut += transportVars['timecost']
  1391. gs 'stat'
  1392. transportVars['rand'] = rand(1, 100)
  1393. if transportVars['rand'] <= 9:
  1394. gt 'bus_incidental', 'events'
  1395. elseif transportVars['bus_event_day'] ! daystart:
  1396. if transportVars['rand'] <= 16:
  1397. gt 'bus_events', 'events'
  1398. end
  1399. end
  1400. '<center><img <<$set_imgh>> src="images/system/image_needed.png" ></center>'
  1401. 'After <<transportVars[''timecost'']>> minutes, the bus stops at the graveyard bus station.'
  1402. act 'Get off the bus':
  1403. if rand(1, 100) <= 5: gt 'bus_incidental', 'end'
  1404. gt $loc, $loc_arg
  1405. end
  1406. end
  1407. --- bus ------------------------------------