bus.qsrc 60 KB

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