homes_properties_attr.qsrc 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  1. # homes_properties_attr
  2. !! Setting up the train stations to use when
  3. !! go_home would change region or player is homeless
  4. if ARRSIZE('train_station') < 1:
  5. $train_station['city'] = "gt 'city_center'"
  6. $train_station['pav'] = "gt 'pav_market'"
  7. $train_station['pav_park'] = "gt 'pav_market'"
  8. $train_station['pushkin'] = "gt 'pushkin_sq'"
  9. $train_station['gad'] = "gt 'train', 'village'"
  10. $train_station['gad_forest'] = "gt 'train', 'village'"
  11. $train_station['dachi'] = "gt 'train', 'communal'"
  12. end
  13. if ARRSIZE('homes') < 18:
  14. killvar '$homes'
  15. $homes[] = 'city_apartment'
  16. $homes[] = 'parents_home'
  17. $homes[] = 'village_cottage'
  18. $homes[] = 'old_town_apartment'
  19. $homes[] = 'matryona_mansion'
  20. $homes[] = 'pavlovsk_hotel'
  21. $homes[] = 'maid_bedroom'
  22. $homes[] = 'niko_apartment'
  23. $homes[] = 'vasilyhome'
  24. $homes[] = 'lyceum_dorm'
  25. $homes[] = 'university_dorm'
  26. $homes[] = 'hunters_lodge'
  27. $homes[] = 'shared_apartment'
  28. $homes[] = 'grandparents_house'
  29. $homes[] = 'city_house'
  30. $homes[] = 'meynold_household'
  31. $homes[] = 'hotel_therapist'
  32. $homes[] = 'pushkin_ballet_dorm'
  33. end
  34. if ARRSIZE('home_name') < 4:
  35. !! The list goes like this:
  36. !! 1. $home_name['property code']
  37. !! 2. $home_name['property id'] - for backward compatibility only, nothing else and the number is a string index
  38. !! 3. $home_name['enctrance location']
  39. !! 4.- N. $home_name['other locations']
  40. !! CITY APARTMENT
  41. $home_name['city_apartment'] = 'city_apartment'
  42. $home_name['1'] = 'city_apartment'
  43. $home_name['korr'] = 'city_apartment'
  44. $home_name['bedr'] = 'city_apartment'
  45. $home_name['sitr'] = 'city_apartment'
  46. $home_name['kuhr'] = 'city_apartment'
  47. $home_name['vanr'] = 'city_apartment'
  48. !! PARENTS HOME
  49. $home_name['parents_home'] = 'parents_home'
  50. $home_name['2'] = 'parents_home'
  51. $home_name['code'] = 'parents_home'
  52. $home_name['korrPar'] = 'parents_home'
  53. $home_name['bedrPar'] = 'parents_home'
  54. $home_name['sitrPar'] = 'parents_home'
  55. $home_name['kuhrPar'] = 'parents_home'
  56. $home_name['vanrPar'] = 'parents_home'
  57. !! VILLAGE COTTAGE
  58. $home_name['village_cottage'] = 'village_cottage'
  59. $home_name['3'] = 'village_cottage'
  60. $home_name['dachamy'] = 'village_cottage'
  61. $home_name['dachain'] = 'village_cottage'
  62. $home_name['dachaogr'] = 'village_cottage'
  63. $home_name['dachaogr0'] = 'village_cottage'
  64. !! OLD TOWN (PUSHKIN) APARTMENTS
  65. $home_name['old_town_apartment'] = 'old_town_apartment'
  66. $home_name['4'] = 'old_town_apartment'
  67. $home_name['korr2x'] = 'old_town_apartment'
  68. $home_name['bedr2x'] = 'old_town_apartment'
  69. $home_name['sitr2x'] = 'old_town_apartment'
  70. $home_name['kuhr2x'] = 'old_town_apartment'
  71. $home_name['vanr2x'] = 'old_town_apartment'
  72. !! MATRYONA MANSION
  73. $home_name['matryona_mansion'] = 'matryona_mansion'
  74. $home_name['5'] = 'matryona_mansion'
  75. $home_name['city_mansion_entrance'] = 'matryona_mansion'
  76. $home_name['city_mansion_residence_1'] = 'matryona_mansion'
  77. $home_name['city_mansion_residence_2'] = 'matryona_mansion'
  78. $home_name['city_mansion_residence_3'] = 'matryona_mansion'
  79. !! PAVLOVSK HOTEL
  80. $home_name['pavlovsk_hotel'] = 'pavlovsk_hotel'
  81. $home_name['6'] = 'pavlovsk_hotel'
  82. $home_name['pav_hotel'] = 'pavlovsk_hotel'
  83. $home_name['HotelRoom'] = 'pavlovsk_hotel'
  84. !! LIVE IN MAID BEDROOM
  85. $home_name['maid_bedroom'] = 'maid_bedroom'
  86. $home_name['7'] = 'maid_bedroom'
  87. $home_name['nichBedroomServant'] = 'maid_bedroom'
  88. !! NIKO APARTMENT
  89. $home_name['niko_apartment'] = 'niko_apartment'
  90. $home_name['8'] = 'niko_apartment'
  91. !! This home actually doesn''t exist yet, but it was defined,
  92. !! has an ID and all so, I am keeping it here
  93. !! SHULGA APARTMENT
  94. $home_name['shulga_apartment'] = 'vasilyhome'
  95. $home_name['9'] = 'vasilyhome'
  96. $home_name['vasilyhome'] = 'vasilyhome'
  97. !! LYCEUM DORM
  98. $home_name['lyceum_dorm'] = 'lyceum_dorm'
  99. $home_name['10'] = 'lyceum_dorm'
  100. $home_name['dom_gor'] = 'lyceum_dorm'
  101. !! UNIVERSITY DORM
  102. $home_name['university_dorm'] = 'university_dorm'
  103. $home_name['11'] = 'university_dorm'
  104. $home_name['uni_grounds'] = 'university_dorm'
  105. $home_name['uni_dorm'] = 'university_dorm'
  106. !! HUNTERS LODGE
  107. $home_name['hunters_lodge'] = 'hunters_lodge'
  108. $home_name['12'] = 'hunters_lodge'
  109. $home_name['swamphouse'] = 'hunters_lodge'
  110. $home_name['swamp_yard'] = 'hunters_lodge'
  111. !! SHARED APARTMENT - PAVLOVSK
  112. $home_name['shared_apartment'] = 'shared_apartment'
  113. $home_name['13'] = 'shared_apartment'
  114. $home_name['pav_shared_apt'] = 'shared_apartment'
  115. !! GRANDPARENTS HOUSE
  116. $home_name['grandparents_house'] = 'grandparents_house'
  117. $home_name['14'] = 'grandparents_house'
  118. $home_name['gaddvor'] = 'grandparents_house'
  119. $home_name['gadgarden'] = 'grandparents_house'
  120. $home_name['gadbana'] = 'grandparents_house'
  121. $home_name['gadgarden'] = 'grandparents_house'
  122. $home_name['gadhouse'] = 'grandparents_house'
  123. $home_name['gadsarai'] = 'grandparents_house'
  124. !! CITY HOUSE
  125. $home_name['city_house'] = 'city_house'
  126. $home_name['15'] = 'city_house'
  127. $home_name['city_house_res_misc'] = 'city_house'
  128. $home_name['city_house_res_bath'] = 'city_house'
  129. $home_name['city_house_re_bedr'] = 'city_house'
  130. $home_name['city_house-res_kitch'] = 'city_house'
  131. !! MEYNODLD HOUSEHOLD
  132. $home_name['meynold_household'] = 'meynold_household'
  133. $home_name['16'] = 'meynold_household'
  134. $home_name['mey_home'] = 'meynold_household'
  135. !! HOTEL
  136. $home_name['hotel_therapist'] = 'hotel_therapist'
  137. $home_name['17'] = 'hotel_therapist'
  138. !! BALLET DORM
  139. $home_name['pushkin_ballet_dorm'] = 'pushkin_ballet_dorm'
  140. $home_name['18'] = 'pushkin_ballet_dorm'
  141. end
  142. !!{ All the existing properties should be added here.
  143. id: The old numerical id - for the nostalgia
  144. code: The code of the property. Example: 'city_apartment', 'village_cottage'
  145. name: General name to display
  146. display: The string to use in the middle of a sentence
  147. town: The town/city/village the property can be found
  148. location: The region within the town
  149. location-arg: The entry argument for the 'location' location
  150. entrance: The location where the charactes enter
  151. entrance-arg: The entry argument for the 'entrance' location
  152. bathroom: The location of the bathroom
  153. bedroom-arg: The entry argument for the 'bathroom' location
  154. bedroom: The location where the charactes sleep
  155. bedroom-arg: The entry argument for the 'bedroom' location
  156. gs '<<location>>', '<<location-arg>>' will take Sveta to the location that leads
  157. to the property. For example Pavlovsk Complex, City Residential, etc.)
  158. gs '<<entrance>>', '<<entrance-arg>>' will take Sveta straight to the entrance of
  159. the property. For example the hallway in the Parents'' Home.
  160. type: The type of the property - it is used by some checks right now, dating app and such.
  161. In the future this could be expanded to things like business properties, offices or other whatever we
  162. want to simplify some checks.
  163. price: The sales value of the property.
  164. rent: The monthly rent of the property.
  165. rental: Whether the property can be rented by Sveta or not.
  166. 1: Can be rented
  167. 0: Can''t be rented // Examples are: Parents home, Shulga apartment, Hotel room in Pavlovsk, University dorm.
  168. Possible values are:
  169. free_internet: if the property comes with free internet (uses subscription['free']) then the value is `1`
  170. internet_enabled: If the value is 1, then Sveta can buy, cancel, transfer an internet subscription here
  171. can_be_renovated: Whether the property can be renovated or not. Tentative, not sure it is needed.
  172. construction_needed: If the value is 1, then the property needs to built before Sveta can move it.
  173. Currently the Matryona Mansion works like this, it starts as an empty plot of land.
  174. Property Types
  175. !! IMPORTANT:
  176. !! NOTE: The types are not 100% clear and decided yet, need some more thinking. Also new ones can be added.
  177. permanent_residence: This is a home that can be used for everything. Certain things don''t allow the more "transient"
  178. homes, like the dating app in Uni.
  179. temporary_residence: This is a home that some events/actions won''t consider.
  180. New ones in the future could be for porperties that Sveta can own, rent, used, is not a home but can be changed/customised, etc.
  181. For example a music studio/practice room, or a gallery, or a newspaper kiosk
  182. To make life easier, if is 0 or '' for a property, then I didn''t include it.
  183. Undefined strings will always evaluate to '' and undefined integers have a value of 0.
  184. }
  185. !! Always call this function with gs and use killvar'property' after finished with the data.
  186. !!
  187. !! ARGS[1] - the proprty code - a string identifier of the property.
  188. if $ARGS[0] = 'get_property_attr':
  189. killvar 'property'
  190. if $ARGS[1] = 'city_apartment':
  191. property['id'] = 1
  192. $property['code'] = $ARGS[1]
  193. $property['name'] = 'City residential apartment'
  194. $property['display'] = 'apartment in St. Petersburg''s residential area'
  195. $property['region'] = 'city'
  196. $property['town'] = 'city'
  197. $property['location'] = 'city_residential'
  198. $property['location_arg'] = ''
  199. $property['entrance'] = 'korr'
  200. $property['entrance_arg'] = ''
  201. $property['bathroom'] = 'vanr'
  202. $property['bathroom_arg'] = ''
  203. $property['bedroom'] = 'bedr'
  204. $property['bedroom_arg'] = ''
  205. $property['type'] = 'permanent_residence'
  206. property['price'] = 800000
  207. property['rent'] = 15000
  208. property['rental'] = 1
  209. property['internet_enabled'] = 1
  210. property['can_be_renovated'] = 1
  211. elseif $ARGS[1] = 'parents_home':
  212. property['id'] = 2
  213. $property['code'] = $ARGS[1]
  214. $property['name'] = 'Parent''s home in Pavlovsk'
  215. $property['display'] = 'parent''s home in Pavlovsk'
  216. $property['region'] = 'pav'
  217. $property['town'] = 'pavlovsk'
  218. $property['location'] = 'pav_complex'
  219. $property['location_arg'] = 'start'
  220. $property['entrance'] = 'korrPar'
  221. $property['entrance_arg'] = 'start'
  222. $property['bathroom'] = 'vanrPar'
  223. $property['bathroom_arg'] = ''
  224. $property['bedroom'] = 'bedrPar'
  225. $property['bedroom_arg'] = 'start'
  226. $property['type'] = 'permanent_residence'
  227. property['free_internet'] = 1
  228. elseif $ARGS[1] = 'village_cottage':
  229. property['id'] = 3
  230. $property['code'] = $ARGS[1]
  231. $property['name'] = 'My cottage in the cooperative village'
  232. $property['display'] = 'cottage located in the cooperative village'
  233. $property['region'] = 'dachi'
  234. $property['town'] = 'dachi'
  235. $property['location'] = 'dachamy'
  236. $property['location_arg'] = ''
  237. $property['entrance'] = 'dachamy'
  238. $property['entrance_arg'] = ''
  239. $property['bathroom'] = 'dachabath'
  240. $property['bathroom_arg'] = ''
  241. $property['bedroom'] = 'dachain'
  242. $property['bedroom_arg'] = 'start'
  243. $property['type'] = 'permanent_residence'
  244. property['price'] = 150000
  245. !! Currently no cable or internet can be installed at this property, maybe later.
  246. property['internet_enabled'] = 0
  247. elseif $ARGS[1] = 'old_town_apartment':
  248. property['id'] = 4
  249. $property['code'] = $ARGS[1]
  250. $property['name'] = 'Old town apartment'
  251. $property['display'] = 'apartment in the old town of Pushkin'
  252. $property['region'] = 'pushkin'
  253. $property['town'] = 'oldtown'
  254. $property['location'] = 'pushkin_sq'
  255. $property['location_arg'] = ''
  256. $property['entrance'] = 'korr2x'
  257. $property['entrance_arg'] = ''
  258. $property['bathroom'] = 'vanr2x'
  259. $property['bathroom_arg'] = ''
  260. $property['bedroom'] = 'bedr2x'
  261. $property['bedroom_arg'] = ''
  262. $property['type'] = 'permanent_residence'
  263. property['rental'] = 1
  264. property['rent'] = 10000
  265. property['internet_enabled'] = 1
  266. elseif $ARGS[1] = 'matryona_mansion':
  267. property['id'] = 5
  268. $property['code'] = $ARGS[1]
  269. $property['name'] = 'Matryona mansion'
  270. !! $property['display_0'] = 'plot of land in the St. Petersburg''s suburbs'
  271. !! $property['display_1'] = 'impressive mansion under construction in the St. Petersburg''s suburbs'
  272. !! $property['display_2'] = 'impressive mansion in the St. Petersburg''s suburbs'
  273. $property['display'] = $property['display_<<accessible_property["<<$args[1]>>-construction-status"]>>']
  274. $property['region'] = 'city'
  275. $property['town'] = 'city'
  276. $property['location'] = 'city_mansion_entrance'
  277. $property['location_arg'] = ''
  278. $property['entrance'] = 'city_mansion_residence_1'
  279. $property['entrance_arg'] = 'yfoyer'
  280. $property['bathroom'] = 'city_mansion_residence_1'
  281. $property['bathroom_arg'] = 'ybathroom'
  282. $property['bedroom'] = 'city_mansion_residence_1'
  283. $property['bedroom_arg'] = 'ybedroom'
  284. $property['type'] = 'permanent_residence'
  285. property['price'] = 1500000
  286. property['internet_enabled'] = 1
  287. property['construction_needed'] = 1
  288. elseif $ARGS[1] = 'pavlovsk_hotel':
  289. property['id'] = 6
  290. $property['code'] = $ARGS[1]
  291. $property['name'] = 'My hotel room in Pavlovsk'
  292. $property['display'] = 'hotel room in Pavlovsk'
  293. $property['region'] = 'pav'
  294. $property['town'] = 'pavlovsk'
  295. $property['location'] = 'pav_market'
  296. $property['location_arg'] = ''
  297. $property['entrance'] = 'pav_hotel'
  298. $property['entrance_arg'] = ''
  299. $property['bathroom'] = 'HotelRoom'
  300. $property['bathroom_arg'] = 'shower1'
  301. $property['bedroom'] = 'HotelRoom'
  302. $property['bedroom_arg'] = 'normal'
  303. !I do not know how to do this for the various price levels.....
  304. $property['type'] = 'temporary_residence'
  305. property['free_internet'] = 1
  306. elseif $ARGS[1] = 'maid_bedroom':
  307. property['id'] = 7
  308. $property['code'] = $ARGS[1]
  309. $property['name'] = 'Nicholas'' Apartment'
  310. $property['display'] = 'maid bedroom in Nicholas'' apartment'
  311. $property['region'] = 'city'
  312. $property['town'] = 'city'
  313. $property['location'] = 'city_center'
  314. $property['location_arg'] = ''
  315. $property['entrance'] = 'nichBedroomServant'
  316. $property['entrance_arg'] = 'start'
  317. $property['bathroom'] = 'nichBathServant'
  318. $property['bathroom_arg'] = ''
  319. $property['bedroom'] = 'nichBedroomServant'
  320. $property['bedroom_arg'] = 'start'
  321. $property['type'] = 'permanent_residence'
  322. property['free_internet'] = 1
  323. elseif $ARGS[1] = 'niko_apartment':
  324. property['id'] = 8
  325. $property['code'] = $ARGS[1]
  326. $property['name'] = 'Niko''s apartment'
  327. $property['display'] = 'Niko''s apartment'
  328. $property['region'] = 'pav'
  329. $property['town'] = 'pavlovsk'
  330. $property['location'] = 'pav_residential'
  331. $property['location_arg'] = ''
  332. $property['entrance'] = 'pav_residential'
  333. $property['entrance_arg'] = ''
  334. $property['bathroom'] = 'pav_residential'
  335. $property['bathroom_arg'] = ''
  336. $property['bedroom'] = 'pav_residential'
  337. $property['bedroom_arg'] = ''
  338. $property['type'] = 'temporary_residence'
  339. elseif $ARGS[1] = 'shulga_apartment':
  340. property['id'] = 9
  341. $property['code'] = $ARGS[1]
  342. $property['name'] = 'Uncle Sergey''s apartment'
  343. $property['display'] = 'Uncle Sergey''s apartment'
  344. $property['region'] = 'pav'
  345. $property['town'] = 'pavlovsk'
  346. $property['location'] = 'pav_complex'
  347. $property['location_arg'] = 'start'
  348. $property['entrance'] = 'vasilyhome'
  349. $property['entrance_arg'] = 'hallway'
  350. $property['bathroom'] = 'vasilyhome'
  351. $property['bathroom_arg'] = 'bathroom'
  352. $property['bedroom'] = 'vasilyhome'
  353. $property['bedroom_arg'] = 'vasily_room'
  354. $property['type'] = 'temporary_residence'
  355. property['free_internet'] = 1
  356. elseif $ARGS[1] = 'lyceum_dorm':
  357. property['id'] = 10
  358. $property['code'] = $ARGS[1]
  359. $property['name'] = 'Lyceum school'
  360. $property['display'] = 'room in the Lyceum dorm'
  361. $property['region'] = 'pav'
  362. $property['town'] = 'pavlovsk'
  363. $property['location'] = 'pav_commercial'
  364. $property['location_arg'] = ''
  365. $property['entrance'] = 'etoexhib'
  366. $property['entrance_arg'] = 'pos40'
  367. $property['bathroom'] = 'etoexhib'
  368. $property['bathroom_arg'] = 'pos41'
  369. $property['bedroom'] = 'dom_gor'
  370. $property['bedroom_arg'] = ''
  371. $property['type'] = 'permanent_residence'
  372. property['free_internet'] = 1
  373. elseif $ARGS[1] = 'university_dorm':
  374. property['id'] = 11
  375. $property['code'] = $ARGS[1]
  376. $property['name'] = 'University halls'
  377. $property['display'] = 'room in the university dorm'
  378. $property['region'] = 'city'
  379. $property['town'] = 'city'
  380. $property['location'] = 'city_island'
  381. $property['location_arg'] = ''
  382. $property['entrance'] = 'uni_dorm'
  383. $property['entrance_arg'] = 'dorm_room'
  384. $property['bathroom'] = 'uni_dorm'
  385. $property['bathroom_arg'] = 'womens_restroom'
  386. $property['bedroom'] = 'uni_dorm'
  387. $property['bedroom_arg'] = 'dorm_room'
  388. $property['type'] = 'permanent_residence'
  389. property['free_internet'] = 1
  390. elseif $ARGS[1] = 'hunters_lodge':
  391. property['id'] = 12
  392. $property['code'] = $ARGS[1]
  393. $property['name'] = 'Hunter''s lodge in Gadukino'
  394. $property['display'] = 'hunter''s lodge in Gadukino'
  395. $property['region'] = 'gad_forest'
  396. $property['town'] = 'gadukino'
  397. $property['location'] = 'swamp_yard'
  398. $property['location_arg'] = 'start'
  399. $property['entrance'] = 'swamphouse'
  400. $property['entrance_arg'] = 'start'
  401. $property['bathroom'] = 'swamphouse'
  402. $property['bathroom_arg'] = 'washstand'
  403. $property['bedroom'] = 'swamphouse'
  404. $property['bedroom_arg'] = 'start'
  405. $property['type'] = 'temporary_residence'
  406. elseif $ARGS[1] = 'shared_apartment':
  407. property['id'] = 13
  408. $property['code'] = $ARGS[1]
  409. $property['name'] = 'Shared apartment in Pavlovsk'
  410. $property['display'] = 'shared apartment in Pavlovsk'
  411. $property['region'] = 'pav'
  412. $property['town'] = 'pavlovsk'
  413. $property['location'] = 'pav_complex'
  414. $property['location_arg'] = 'start'
  415. $property['entrance'] = 'pav_shared_apt'
  416. $property['entrance_arg'] = 'start'
  417. $property['bathroom'] = 'pav_shared_apt'
  418. $property['bathroom_arg'] = 'bathroom'
  419. $property['bedroom'] = 'pav_shared_apt'
  420. $property['bedroom_arg'] = 'pcsRoom'
  421. $property['type'] = 'temporary_residence'
  422. property['free_internet'] = 1
  423. elseif $ARGS[1] = 'grandparents_house':
  424. property['id'] = 14
  425. $property['code'] = $ARGS[1]
  426. $property['name'] = 'Grandparent''s house in Gadukino'
  427. $property['display'] = 'grandparent''s house in Gadukino'
  428. $property['region'] = 'gad'
  429. $property['town'] = 'gadukino'
  430. $property['location'] = 'gaddvor'
  431. $property['location_arg'] = ''
  432. $property['entrance'] = 'gaddvor'
  433. $property['entrance_arg'] = ''
  434. $property['bathroom'] = 'gadbana'
  435. $property['bathroom_arg'] = ''
  436. $property['bedroom'] = 'gadhouse'
  437. $property['bedroom_arg'] = 'main'
  438. $property['type'] = 'temporary_residence'
  439. elseif $ARGS[1] = 'city_house':
  440. property['id'] = 15
  441. $property['code'] = $ARGS[1]
  442. $property['name'] = 'City residential house'
  443. $property['display'] = 'house in the St. Petersburg''s residential area'
  444. $property['region'] = 'city'
  445. $property['town'] = 'city'
  446. $property['location'] = 'city_residential'
  447. $property['location_arg'] = ''
  448. $property['entrance'] = 'city_house_res_misc'
  449. $property['entrance_arg'] = 'fronty'
  450. $property['bathroom'] = 'city_house_res_bathr'
  451. $property['bathroom_arg'] = 'bathr'
  452. $property['bedroom'] = 'city_house_res_bedr'
  453. $property['bedroom_arg'] = 'bedro'
  454. $property['type'] = 'permanent_residence'
  455. property['price'] = 800000
  456. property['internet_enabled'] = 1
  457. elseif $ARGS[1] = 'meynold_household':
  458. property['id'] = 16
  459. $property['code'] = $ARGS[1]
  460. $property['name'] = 'Meynold Household'
  461. $property['display'] = 'the Meynold Household'
  462. $property['region'] = 'pav'
  463. $property['town'] = 'pavlovsk'
  464. $property['location'] = 'pav_residential'
  465. $property['location_arg'] = ''
  466. $property['entrance'] = 'mey_home'
  467. $property['entrance_arg'] = 'door'
  468. $property['bathroom'] = 'mey_home'
  469. $property['bathroom_arg'] = 'bathroom'
  470. $property['bedroom'] = 'mey_home'
  471. $property['bedroom_arg'] = 'guest_bedroom'
  472. $property['type'] = 'temporary_residence'
  473. property['free_internet'] = 1
  474. elseif $ARGS[1] = 'hotel_therapist':
  475. property['id'] = 17
  476. $property['code'] = $ARGS[1]
  477. $property['name'] = 'Pavlovsk Hotel Room'
  478. $property['display'] = 'husband''s hotel room'
  479. $property['region'] = 'pav'
  480. $property['town'] = 'pavlovsk'
  481. $property['location'] = 'pav_residential'
  482. $property['location_arg'] = ''
  483. $property['entrance'] = 'pav_hotel'
  484. $property['entrance_arg'] = ''
  485. $property['bathroom'] = 'HotelRoom'
  486. $property['bathroom_arg'] = 'shower1'
  487. $property['bedroom'] = 'HotelRoom'
  488. $property['bedroom_arg'] = 'therapist'
  489. $property['type'] = 'temporary_residence'
  490. property['free_internet'] = 1
  491. elseif $ARGS[1] = 'pushkin_ballet_dorm':
  492. property['id'] = 18
  493. $property['code'] = $ARGS[1]
  494. $property['name'] = 'Pushkin Ballet Dorm'
  495. $property['display'] = 'ballet dorm'
  496. $property['region'] = 'pav'
  497. $property['town'] = 'pushkin'
  498. $property['location'] = 'pushkin_sq'
  499. $property['location_arg'] = ''
  500. $property['entrance'] = 'pushkin_ballet_center'
  501. $property['entrance_arg'] = 'start'
  502. $property['bathroom'] = 'pushkin_ballet_class'
  503. $property['bathroom_arg'] = 'shower'
  504. $property['bedroom'] = 'pushkin_ballet_res'
  505. $property['bedroom_arg'] = 'bedroom'
  506. $property['type'] = 'temporary_residence'
  507. else
  508. gs 'homes_properties_attr', 'mod_property_query_hook'
  509. end
  510. end
  511. !! Use it as `func`, returns a single $RESULT or RESULT value with the requested
  512. !! field of a `property`
  513. !! $ARGS[1]: the name of the field requested, prefixed with $ if it is a string value
  514. !! E.g. `'$bedroom', '$region', 'rent', 'price', etc.`
  515. !! $ARGS[2]: optional - the location for which the access is set
  516. !! Accepted values
  517. !! - property code -> 'city_apartment', 'parents_home'
  518. !! - a location -> 'bedrPar', 'koo2x' - A value that can shop up in $loc
  519. !! - empty strying -> '' - will work as if a location was passed, but will use the actual value of $loc
  520. !! - A number as str -> '1', '2' - this should be the id of the property
  521. !! NOTE: only added in case someone really want to use the old ids
  522. if $ARGS[0] = 'get_property_attribute':
  523. $name = iif($ARGS[2] = '', $home_name[$loc], $home_name[$ARGS[2]])
  524. gs 'homes_properties_attr', 'get_property_attr', $name
  525. if $MID($ARGS[1],1,1) = '$':
  526. $RESULT = $property[$MID($ARGS[1],2)]
  527. else
  528. RESULT = property[$ARGS[1]]
  529. end
  530. killvar 'property'
  531. killvar 'name'
  532. end
  533. !!-----------------------------------------------------------------------------------------------------
  534. !!
  535. !! Calls for mods
  536. !!
  537. !!-----------------------------------------------------------------------------------------------------
  538. !! This does nothing, the only reason to have this is that a mod can use a redirect to their own
  539. !! location, $args[0] where they have the property info and can return it.
  540. if $ARGS[0] = 'property_query_hook':
  541. !! use this for the redirect
  542. mod_result = 1
  543. end
  544. !!{ This is for the mods that want to introduce some new home
  545. **OR** they rename an existing home location.
  546. Call this when the mod is initialised and then never again
  547. Example: A mod changes some things in the bedroom at the parents home and for this
  548. redirects to `mod_whatever_bedrPar`.
  549. In this case it would fail as the location code passed would not match
  550. `bedrPar` and would get back an empty string as the name of the home
  551. To avoid this, the mod should call this function with to location to the mapping.
  552. IMPORTANT: $ARGS[1] is mandatory, and either $ARGS[2] or $ARGS[3] must have a value!
  553. $ARGS[1] the new location name as it would appear in the $loc variable. This must start with `mod_` otherwise it will be ignored
  554. $ARGS[2] the name of the home if it is a completely new location - otherwise pass '' or don''t pass it
  555. $ARGS[3] the location that is being replaced - if it is a new location, leave this as an empty string }
  556. if $ARGS[0] = 'add_new_home_location':
  557. if $home_name[$ARGS[1]] ! '':
  558. !! WARNING: Do Nothing, the location already exists
  559. elseif $ARGS[2] = '' and $ARGS[3] = '':
  560. !! WARNING: Either $ARGS[2] or $ARGS[3] must have a value, otherwise no mapping will be created
  561. $home_name[$ARGS[1]] = ''
  562. elseif $ARGS[2] ! '':
  563. $home_name[$ARGS[1]] = $home_name[$ARGS[2]]
  564. $homes[] = $home_name[$ARGS[2]]
  565. else
  566. $home_name[$ARGS[1]] = $home_name[$ARGS[3]]
  567. end
  568. end
  569. !! This is for the mods that want to introduce some new region
  570. !! and a location where a player generally should
  571. !! end up when she is "going home" as a result of a "Going Home", "Go straight home"
  572. !! or "Go to home bathroom" act at the end of a scene if the player lives in different city
  573. !! (e.g. the event is in Pavlovsk but the player lives in St. Petersburg) or the player is homeless.
  574. !! This should be a train station or a bus station or such.
  575. !!
  576. !! One region can have only one entry.
  577. !!
  578. !! $ARGS[1]: The value set in the `$region` variable (like city, pav, pushkin, etc.)
  579. !! $ARGS[2]: The first argument for the `gt` call
  580. !! $ARGS[3]: The second argument for the `gt` call (optional)
  581. !!
  582. !! Example: with the current code, adding the Pavlovsk train station would be:
  583. !! gs 'homes_properties_attr', 'add_new_trainstation', 'pav', 'pav_market'
  584. !!
  585. if $ARGS[0] = 'add_new_train_station':
  586. if $train_station[$ARGS[1]] ! '':
  587. !! WARNING: Do Nothing, the location already exists
  588. else
  589. $train_station[$ARGS[1]] = "gt '<<$ARGS[2]>>', '<<$ARGS[3]>>'"
  590. end
  591. end
  592. --- homes_properties_attr ---------------------------------