saveupdater.qsrc 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969
  1. # saveupdater
  2. !! This file is for updating save game when one variable have been replaced by another.
  3. !! If you have replaced a variable for another, then you should first go to saveg.gsrc and update the version number as instructed there.
  4. !! Then at the bottom of this file just before the last end add the following line:
  5. !! if ((100*version_major +version_minor)*100+version_revision)*100+version_patch < "new version number":
  6. !! where "new version number" should be as instructed in the start of saveg.qsrc
  7. !! Then add you replacement of variables after this line. You can see how this is done by looking through this file.
  8. !! When you do this you should always commit this file and saveg.qsrc at the same time.
  9. if ((100*version_major +version_minor)*100+version_revision)*100+version_patch < 00080202:
  10. Msg 'Your save comes from some of previous versions of the game.<br>If it comes from ver. 0.8.1 or older, be prepare to buy new clothes.'
  11. if housr = 1:
  12. home_owned[1] = 1
  13. elseif housr = 2:
  14. home_owned[4] = 1
  15. end
  16. if BuyHous = 1: home_owned[1] = 2
  17. if placeMansion > 0: home_owned[5] = placeMansion
  18. if dachaest > 0: home_owned[3] = dachaest
  19. killvar 'placemansion'
  20. killvar 'dachaest'
  21. killvar 'housr'
  22. killvar 'BuyHous'
  23. if alko < 0: alko = 0
  24. if pranik < 0: pranik = 0
  25. if poroshok < 0: poroshok = 0
  26. !! set $home_town variable and remove consequential obsolete variables
  27. if $home_town = '':
  28. gs 'set_home', curr_home
  29. killvar 'svidboykino'
  30. killvar 'svidboypark'
  31. killvar 'svidboypark1'
  32. killvar 'svidboypark2'
  33. killvar 'svidboykafe'
  34. end
  35. !! exhibition to inhib
  36. if pcs_exhibition ! 0:
  37. pcs_inhib = pcs_exhibition
  38. inhib_exp = exhibition_exp
  39. inhib_lvlst = pcs_exhibition
  40. inhib_lvl = pcs_exhibition
  41. killvar 'pcs_exhibition'
  42. killvar 'exhibition_exp'
  43. end
  44. !! adds pregnancy progression images to saves that did not have them previously.
  45. if arrsize('$bodimgsets') = 30:
  46. $bodimgsets[30] = 'pregnant, but not showing'
  47. $bodimgsets[31] = 'glowing'
  48. $bodimgsets[32] = 'starting to show'
  49. $bodimgsets[33] = 'clearly showing'
  50. $bodimgsets[34] = 'fairly pregnant'
  51. $bodimgsets[35] = 'quite pregnant'
  52. $bodimgsets[36] = 'very pregnant'
  53. $bodimgsets[37] = 'extremely pregnant'
  54. $bodimgsets[38] = 'ready to pop'
  55. $bodimgsets[39] = 'default_preg'
  56. end
  57. !! reorganizes old spell variables into new arrrays
  58. if spell_update = 0:
  59. spell_update = 1
  60. if spelltuman = 1:spellKnown['fog'] = 1
  61. if spellklon = 1:spellKnown['clone'] = 1
  62. if spellstun = 1:spellKnown['stun'] = 1
  63. if spellweap = 1:spellKnown['weapon'] = 1
  64. if spellwind = 1:spellKnown['wind'] = 1
  65. if spellklon2 = 1:spellKnown['multiclone'] = 1
  66. if spellinit = 1:spellKnown['haste'] = 1
  67. if spellhel = 1:spellKnown['heal'] = 1
  68. if spellfire0 = 1:spellKnown['scaldingtouch'] = 1
  69. if spellfire2 = 1:spellKnown['burninghands'] = 1
  70. if spellfire3 = 1:spellKnown['firebarrier'] = 1
  71. if spellfire4 = 1:spellKnown['firestorm'] = 1
  72. if spellfire5 = 1:spellKnown['flameshield'] = 1
  73. if spellele0 = 1:spellKnown['shock'] = 1
  74. if spellele2 = 1:spellKnown['lightning'] = 1
  75. if spellele3 = 1:spellKnown['electricbarrier'] = 1
  76. if spellele4 = 1:spellKnown['1000birds'] = 1
  77. if spellele5 = 1:spellKnown['dancingsphere'] = 1
  78. if spellert0 = 1:spellKnown['quicksand'] = 1
  79. if spellert2 = 1:spellKnown['earthshield'] = 1
  80. if spellert3 = 1:spellKnown['abyss'] = 1
  81. if spellert4 = 1:spellKnown['earthguardian'] = 1
  82. if spellert5 = 1:spellKnown['sando'] = 1
  83. if spellwind0 = 1:spellKnown['windgust'] = 1
  84. if spellwind2 = 1:spellKnown['pressure'] = 1
  85. if spellwind3 = 1:spellKnown['vacuum'] = 1
  86. if spellwind4 = 1:spellKnown['vacuumshells'] = 1
  87. if spellwind5 = 1:spellKnown['devouringvacuum'] = 1
  88. if spellwater0 = 1:spellKnown['leechmana'] = 1
  89. if spellwater2 = 1:spellKnown['flood'] = 1
  90. if spellwater3 = 1:spellKnown['blister'] = 1
  91. if spellwater4 = 1:spellKnown['sharkrockets'] = 1
  92. if spellwater5 = 1:spellKnown['greatflood'] = 1
  93. end
  94. if spell_update < 2:
  95. spell_update = 2
  96. killvar '$basicSpells'
  97. end
  98. gs 'spellList'
  99. if spell_update < 3:
  100. spell_update = 3
  101. ! Fix Spell learn avaiability for Kakuzu if needed
  102. if tobiQW = 3:
  103. if stihia = 1:
  104. gs 'spellList','addAvailableSpells','fireSpells', 20
  105. end
  106. if stihia = 2:
  107. gs 'spellList','addAvailableSpells','electSpells', 20
  108. end
  109. if stihia = 3:
  110. gs 'spellList','addAvailableSpells','earthSpells', 20
  111. end
  112. if stihia = 4:
  113. gs 'spellList','addAvailableSpells','airSpells', 20
  114. end
  115. if stihia = 5:
  116. gs 'spellList','addAvailableSpells','waterSpells', 20
  117. end
  118. end
  119. ! Fix Library spells found if needed
  120. if arrsize('$ResearchingSP')>0:
  121. gs 'spellList','addAvailableSpells','librarySpells', arrsize('$ResearchingSP')
  122. end
  123. end
  124. gs 'spellList'
  125. if array_updater = 0:
  126. array_updater = 1
  127. $oldnpcvars[0] = 'npc_app'
  128. $oldnpcvars[1] = 'npc_int'
  129. $oldnpcvars[2] = 'npc_Qstlvl'
  130. $newnpcvars[0] = 'npc_apprnc'
  131. $newnpcvars[1] = 'npc_intel'
  132. $newnpcvars[2] = 'npc_QW'
  133. i = 0
  134. :npcvarloop
  135. $oldnpcvar = $oldnpcvars[i]
  136. if i < arrsize($oldnpcvars):
  137. if 1 > arrsize('oldnpcvar'):i += 1 & jump 'npcvarloop'
  138. $newnpcvar = $newnpcvars[i]
  139. COPYARR 'newnpcvar', 'oldnpcvar'
  140. i += 1
  141. jump 'npcvarloop'
  142. end
  143. killvar 'npc_app'
  144. killvar 'npc_int'
  145. killvar 'npc_Qstlvl'
  146. killvar 'oldnpcvar'
  147. killvar 'newnpcvar'
  148. killvar '$oldnpcsvars'
  149. killvar '$newnpcvars'
  150. end
  151. !!Updates for the old school code
  152. if NatBelLernQW > 0 and NatbelQW['QWstage'] = 0: NatbelQW['QWstage'] = NatBelLernQW & NatBelLernQW = 0
  153. if npc_grupTipe['A133'] = 0: npc_grupTipe['A133'] = 6
  154. if grupTipe[25] ! 0:
  155. if npc_grupTipe['A25'] = 0: npc_grupTipe['A25'] = grupTipe[25]
  156. grupTipe[25] = 0
  157. end
  158. if grupTipe[5] ! 0:
  159. if npc_grupTipe['A5'] = 0: npc_grupTipe['A5'] = grupTipe[5]
  160. grupTipe[5] = 0
  161. end
  162. if grupTipe[61] ! 0:
  163. if npc_grupTipe['A189'] = 0: npc_grupTipe['A189'] = grupTipe[61]
  164. grupTipe[61] = 0
  165. end
  166. if npcSex[1] > 0: npcSex[1] = 0 & npc_sex['A1'] = 1
  167. if npcSex[2] > 0: npcSex[2] = 0 & npc_sex['A2'] = 1
  168. if npcSex[3] > 0: npcSex[3] = 0 & npc_sex['A3'] = 1
  169. if npcSex[4] > 0: npcSex[4] = 0 & npc_sex['A4'] = 1
  170. if npcSex[6] > 0: npcSex[6] = 0 & npc_sex['A6'] = 1
  171. if npcSex[9] > 0: npcSex[10] = 0 & npc_sex['A9'] = 1
  172. if npcSex[10] > 0: npcSex[10] = 0 & npc_sex['A10'] = 1
  173. if npcSex[11] > 0: npcSex[11] = 0 & npc_sex['A11'] = 1
  174. if npcSex[14] > 0: npcSex[14] = 0 & npc_sex['A14'] = 1
  175. if npcSex[16] > 0: npcSex[16] = 0 & npc_sex['A16'] = 1
  176. if npcSex[23] > 0: npcSex[23] = 0 & npc_sex['A23'] = 1
  177. if telefon_rev < 2:
  178. killvar '$contact'
  179. killvar '$contactIcon'
  180. killvar '$contactOCode'
  181. killvar '$contactOSche'
  182. killvar '$contactICode'
  183. killvar '$contactISche'
  184. gs 'telefon', 'AddContact', 'A29', 'icon_npc1',"gs 'telefon', 'Phone_call'","hour >= 8 and hour <= 20"
  185. if telkat > 0:
  186. gs 'telefon', 'AddContact', 'A219', 'icon_kat',"$telsob = 'Kate' & gt 'telefon', 'mobilaraz'","hour >= 8 and hour <= 20"
  187. end
  188. if npc_QW['A192'] > 0:
  189. gs 'telefon', 'AddContact', 'A192', 'icon_nastja',"gs 'telefon', 'start'","hour >= 8 and hour <= 20"
  190. end
  191. telefon_rev = 2
  192. end
  193. if pee > 0: stat['pee'] += pee & killvar 'pee'
  194. ! Since the arousal calls are seeded in all the scenes where these two variables occur, once they''ve been added to the stat, they should always be less or equal to it.
  195. if NatbelQW['pee'] > stat['pee_give']: stat['pee_give'] += NatbelQW['pee']
  196. if mistpiss > stat['pee_give'] - NatbelQW['pee']: stat['pee_give'] += mistpiss
  197. if thpic ! 0: killvar 'thpic'
  198. if puspic ! 0: killvar 'puspic'
  199. if $npcGoSchool['A<<npctemp>>'] = '<a href="exec:gt ''gschool_chats2'',''christina''"><<$npc_usedname[''A18'']>></a>': $npcGoSchool['A<<npctemp>>'] = '<a href="exec:gt ''gschool_chats1'',''christina''"><<$npc_usedname[''A18'']>></a>'
  200. !! Replacing some of the natasha variables with NatbelQW['QWstage'] levels.
  201. killvar 'natsub'
  202. killvar 'natotrab'
  203. killvar 'natfuck'
  204. if StoryLine = 1:
  205. if fuckornot_update = 0:
  206. fuckornot_update = 1
  207. hotcat_rating['A22'] = 9
  208. hotcat_rating['A17'] = 9
  209. hotcat_rating['A23'] = 8
  210. hotcat_rating['A144'] = 8
  211. hotcat_rating['A19'] = 7
  212. hotcat_rating['A18'] = 7
  213. hotcat_rating['A14'] = 7
  214. hotcat_rating['A12'] = 7
  215. hotcat_rating['A140'] = 7
  216. hotcat_rating['A141'] = 7
  217. hotcat_rating['A15'] = 7
  218. hotcat_rating['A143'] = 6
  219. hotcat_rating['A13'] = 6
  220. hotcat_rating['A16'] = 6
  221. hotcat_rating['A25'] = 6
  222. hotcat_rating['A139'] = 6
  223. hotcat_rating['A20'] = 6
  224. hotcat_rating['A21'] = 6
  225. hotcat_rating['A24'] = 5
  226. hotcat_rating['A142'] = 5
  227. hotcat_rating['A145'] = 4
  228. elseif fuckornot_update = 1:
  229. fuckornot_update = 2
  230. hotcat_rating['A145'] = 4
  231. hotcat_movement['A145'] = 0
  232. elseif fuckornot_update = 2:
  233. fuckornot_update = 3
  234. hotcat_rating['A1'] = 8
  235. hotcat_rating['A2'] = 6
  236. hotcat_rating['A3'] = 7
  237. hotcat_rating['A4'] = 5
  238. hotcat_rating['A5'] = 7
  239. hotcat_rating['A6'] = 4
  240. hotcat_rating['A7'] = 1
  241. hotcat_rating['A8'] = 7
  242. hotcat_rating['A9'] = 5
  243. hotcat_rating['A10'] = 6
  244. hotcat_rating['A11'] = 4
  245. hotcat_rating['A34'] = 7
  246. hotcat_rating['A58'] = 4
  247. hotcat_rating['A59'] = 6
  248. hotcat_rating['A146'] = 8
  249. hotcat_rating['A147'] = 8
  250. hotcat_rating['A148'] = 6
  251. hotcat_rating['A149'] = 7
  252. hotcat_rating['A152'] = 6
  253. hotcat_rating['A153'] = 4
  254. hotcat_rating['A154'] = 7
  255. hotcat_rating['A155'] = 7
  256. hotcat_rating['A156'] = 5
  257. hotcat_rating['A157'] = 5
  258. hotcat_rating['A158'] = 6
  259. hotcat_rating['A159'] = 1
  260. end
  261. if grigoryEV ! 0:
  262. npc_qw['A221'] = grigoryEV
  263. killvar 'grigoryEV'
  264. end
  265. if SchoolAtestat = 0 and SchoolBlock = 0 and $schbrand = '':$schbrand = 'school'
  266. end
  267. if wombfather_update = 0: wombfather_update = 1 & gs 'din_bad'
  268. !! This will unlock the Anushka photos if a player has already done the event.
  269. if showerphotos = 1 and showerphotosupdater = 0:
  270. showerphotosupdater = 1
  271. anushkaphoto[1] = 1
  272. anushkaphoto[2] = 1
  273. anushkaphoto[3] = 1
  274. anushkaphoto[4] = 1
  275. anushkaphoto[5] = 1
  276. anushkaphoto[6] = 1
  277. end
  278. !! Changes to the pregnancy due date dynamic format
  279. if pregdateupdate = 0:
  280. gs 'din_bad'
  281. pregdateupdate = 1
  282. end
  283. if $npc_usedname['A<<npctemp>>'] = 'Inna': $npc_usedname['A<<npctemp>>'] = 'Irina'
  284. !! Killing some useless variables used to trigger the Pavlin storyline
  285. if totalmon ! 0:
  286. montake = totalmon
  287. killvar 'totalmon'
  288. killvar 'mongiveback'
  289. end
  290. if cyc_update = 0:
  291. cyc_update = 1
  292. daylastperiod = firstmens
  293. if difficulty = 4:
  294. cyccustom = 0
  295. else
  296. cyccustom = 1
  297. end
  298. end
  299. ! Switching from tracking relationship with Rex from rex to npc_rel['A57']
  300. if rex > 0 and rex > npc_rel['A57']: npc_rel['A57'] = rex & killvar 'rex'
  301. !!------------------------------village variable clean up/translation---------------------------------------
  302. if findvel > 0: BikeLoc = findvel & killvar 'findvel'
  303. !!------------------------------grandparent variable clean up---for 0.8.0 release---------------------------
  304. !!---Grandpa
  305. If grandpa_bilberry > 0: grandpaQW['chore_berry_quantity'] = grandpa_bilberry & killvar 'grandpa_bilberry'
  306. If grandpa_boletus > 0: grandpaQW['chore_mushroom_quantity'] = grandpa_boletus & killvar 'grandpa_boletus'
  307. If grandpahelpday > 0: grandpaQW['last_day_helped'] = grandpahelpday & killvar 'grandpahelpday'
  308. If grandpahelping > 0: grandpaQW['chore_type'] = grandpahelping & killvar 'grandpahelping'
  309. If grandpatalk > 0: grandpaQW['last_hour_talked'] = grandpatalk & killvar 'grandpatalk'
  310. If grandpatalkday > 0: grandpaQW['last_day_talked'] = grandpatalkday & killvar 'grandpatalkday'
  311. If grandpatalkforest > 0: grandpaQW['talked_about_forest'] = grandpatalkforest & killvar 'grandpatalkforest'
  312. If comb_horse > 0: grandpaQW['chore_brush_horse'] = comb_horse & killvar 'comb_horse'
  313. If cow_field > 0: grandpaQW['chore_lead_cow_to_field'] = cow_field & killvar 'cow_field'
  314. If feed_boar > 0: grandpaQW['chore_feed_boar'] = feed_boar & killvar 'feed_boar'
  315. If feed_cow > 0: grandpaQW['chore_feed_cow'] = feed_cow & killvar 'feed_cow'
  316. If feed_horse > 0: grandpaQW['chore_feed_horse'] = feed_horse & killvar 'feed_horse'
  317. If graze_cow > 0: grandpaQW['chore_herd_cattle'] = graze_cow & killvar 'graze_cow'
  318. If graze_cow_exp > 0: grandpaQW['chore_herd_cattle_experience'] = graze_cow_exp & killvar 'graze_cow_exp'
  319. If haying_time > 0: grandpaQW['chore_bale_hay'] = haying_time & killvar 'haying_time'
  320. If horse_field > 0: grandpaQW['chore_lead_horse_to_field'] = horse_field & killvar 'horse_field'
  321. If horse_river > 0: grandpaQW['chore_bathe_horse'] = horse_river & killvar 'horse_river'
  322. If go_in_bilberry > 0: grandpaQW['chore_gather_berries'] = go_in_bilberry & killvar 'go_in_bilberry'
  323. If go_in_boletus > 0: grandpaQW['chore_gather_mushrooms'] = go_in_boletus & killvar 'go_in_boletus'
  324. If go_in_boletus_bilberry > 0: grandpaQW['chore_gather_both'] = go_in_boletus_bilberry & killvar 'go_in_boletus_bilberry'
  325. !!---Grandma
  326. If grandma_trouble > 0: grandmaQW['nudity_trouble'] = grandma_trouble & killvar 'grandma_trouble'
  327. If grandmastory > 0: grandmaQW['last_day_asked_for_story'] = grandmastory & killvar 'grandmastory'
  328. If grandmatalk > 0: grandmaQW['last_hour_talked'] = grandmatalk & killvar 'grandmatalk'
  329. If grandmatalkday > 0: grandmaQW['last_day_talked'] = grandmatalkday & killvar 'grandmatalkday'
  330. If grandmatalkgad > 0: grandmaQW['talked_about_gadukino'] = grandmatalkgad & killvar 'grandmatalkgad'
  331. If monthbabkapay > 0: grandmaQW['last_month_paid'] = monthbabkapay & killvar 'monthbabkapay'
  332. If grandmahelpday > 0: grandmaQW['last_day_helped'] = grandmahelpday & killvar 'grandmahelpday'
  333. If grandmahelp > 0: grandmaQW['help_amount'] = grandmahelp & killvar 'grandmahelp'
  334. If grandmahelping > 0: grandmaQW['chore_type'] = grandmahelping & killvar 'grandmahelping'
  335. If collect_strawberries > 0: grandmaQW['chore_collect_strawberries'] = collect_strawberries & killvar 'collect_strawberries'
  336. If feed_chickens > 0: grandmaQW['chore_feed_chickens'] = feed_chickens & killvar 'feed_chickens'
  337. If fruit_collect > 0: grandmaQW['chore_collect_fruit'] = fruit_collect & killvar 'fruit_collect'
  338. If harvest_garden > 0: grandmaQW['chore_harvest_garden'] = harvest_garden & killvar 'harvest_garden'
  339. If milk_cow > 0: grandmaQW['chore_milk_cow'] = milk_cow & killvar 'milk_cow'
  340. If water_garden > 0: grandmaQW['chore_water_garden'] = water_garden & killvar 'water_garden'
  341. If work_garden > 0: grandmaQW['chore_work_in_garden'] = work_garden & killvar 'work_garden'
  342. !!---------------------------end of grandparent variable clean up---for 0.8.0 release-----------------------
  343. !! ----- Natasha story variables migrated to array ----- 0.8.0
  344. ! Natasha''s mom NPC data for existing saves
  345. if $npc_firstname['A191'] ! 'Isabella':
  346. npctemp = 191
  347. $npc_dna['A<<npctemp>>'] = '1614037462 1959746313 1085890273 0326112989 0869737602 6676723523 3590292041'
  348. $npc_firstname['A<<npctemp>>'] = 'Isabella'
  349. $npc_nickname['A<<npctemp>>'] = 'Bella'
  350. $npc_lastname['A<<npctemp>>'] = 'Belova'
  351. $npc_usedname['A<<npctemp>>'] = 'Isabella'
  352. $npc_notes['A<<npctemp>>'] = 'Your classmate Natasha''s mother, Isabella Belova.'
  353. npc_dob['A<<npctemp>>'] = 19820922
  354. npc_gender['A<<npctemp>>'] = 1
  355. gs 'npcstaticdefaults', 'defaults'
  356. npc_bust['A<<npctemp>>'] = 23
  357. end
  358. killvar '$NatashaMotherName' & killvar '$NatashaMotherNickname'
  359. if NatashaQW > 0: NatbelQW['QWstage'] = NatashaQW & killvar 'NatashaQW'
  360. if natbelXP > 0: NatbelQW['natbelXP'] = natbelXP & killvar 'natbelXP'
  361. if NatBelBestFrend > 0: NatbelQW['BestFriend'] = NatBelBestFrend & killvar 'NatBelBestFrend'
  362. if BeInNatBelHome > 0: NatbelQW['VisitedHome'] = BeInNatBelHome & killvar 'BeInNatBelHome'
  363. if natashaFirstvisit > 0: NatbelQW['FirstVisit'] = natashaFirstvisit & killvar 'natashaFirstvisit'
  364. if NatNoTV > 0: NatbelQW['NoTV'] = NatNoTV & killvar 'NatNoTV'
  365. if ShowRand > 0: NatbelQW['TVshow'] = ShowRand & killvar 'ShowRand'
  366. if $ShowMsg ! '': $NatbelQW['TVmsg'] = $ShowMsg & killvar '$ShowMsg'
  367. if NatashaWatchedYourPorn > 0: NatbelQW['WatchedYourPorn'] = NatashaWatchedYourPorn & killvar 'NatashaWatchedYourPorn'
  368. if NatDolg > 0: NatbelQW['Debt'] = NatDolg & killvar 'NatDolg'
  369. if NatDolgDay > 0: NatbelQW['DebtDay'] = NatDolgDay & killvar 'NatDolgDay'
  370. if nattimeleft > 0: NatbelQW['DebtTimeLeft'] = nattimeleft & killvar 'nattimeleft'
  371. if NatashaMoneyGivenTimes > 0: NatbelQW['MoneyGivenTimes'] = NatashaMoneyGivenTimes & killvar 'NatashaMoneyGivenTimes'
  372. if NatashaHW > 0: NatbelQW['homework'] = NatashaHW & killvar 'NatashaHW'
  373. if natdoingHW > 0: NatbelQW['doingHW'] = natdoingHW & killvar 'natdoingHW'
  374. if NatashaNakedHW > 0: NatbelQW['nakedHW'] = NatashaNakedHW & killvar 'NatashaNakedHW'
  375. if natunderwear > 0: NatbelQW['underwear'] = natunderwear & killvar 'natunderwear'
  376. if natund > 0: NatbelQW['underwearShop'] = natund & killvar 'natund'
  377. if natseethrough > 0: NatbelQW['seethrough'] = natseethrough & killvar 'natseethrough'
  378. if natseethroughwearing > 0: NatbelQW['seethroughwearing'] = natseethroughwearing & killvar 'natseethroughwearing'
  379. if natseethroughworn > 0: NatbelQW['seethroughworn'] = natseethroughworn & killvar 'natseethroughworn'
  380. if natseehtroughkitchen > 0: NatbelQW['seethroughkitchen'] = natseehtroughkitchen & killvar 'natseehtroughkitchen'
  381. if natmomrobe > 0: NatbelQW['momrobe'] = natmomrobe & killvar 'natmomrobe'
  382. if nattraining > 0: NatbelQW['training'] = nattraining & killvar 'nattraining'
  383. if natlesb > 0: NatbelQW['lesbian'] = natlesb & killvar 'natlesb'
  384. if natpee > 0: NatbelQW['pee'] = natpee & killvar 'natpee'
  385. if HaveCucumber > 0: NatbelQW['cucumber'] = HaveCucumber & killvar 'HaveCucumber'
  386. if natkolkatease > 0: NatbelQW['KolkaTease'] = natkolkatease & killvar 'natkolkatease'
  387. if kolkawantsnat > 0: NatbelQW['KolkaWantsNat'] = kolkawantsnat & killvar 'kolkawantsnat'
  388. if natfuckday > 0: NatbelQW['KolkaFuckDay'] = natfuckday & killvar 'natfuckday'
  389. if NatKolkaSex > 0: NatbelQW['KolkaSex'] = NatKolkaSex & killvar 'NatKolkaSex'
  390. if natbj > 0: NatbelQW['bj'] = natbj & killvar 'natbj'
  391. if NatKolkaFootjob > 0: NatbelQW['KolkaFootjob'] = NatKolkaFootjob & killvar 'NatKolkaFootjob'
  392. if natcp > 0: NatbelQW['KolkaCP'] = natcp & killvar 'natcp'
  393. ! Adding all previous creampies to the new vaginal sex tracker so it can start above 0 if possible
  394. if NatbelQW['KolkaCP'] > 0 and NatbelQW['vaginal'] = 0: NatbelQW['vaginal'] += NatbelQW['KolkaCP']
  395. if natanal > 0: NatbelQW['anal'] = natanal & killvar 'natanal'
  396. if natpregday > 0: NatbelQW['pregday'] = natpregday & killvar 'natpregday'
  397. if nataskedbaby > 0: NatbelQW['askedbaby'] = nataskedbaby & killvar 'nataskedbaby'
  398. if natbabycount > 0: NatbelQW['babycount'] = natbabycount & killvar 'natbabycount'
  399. if MetNatMother > 0: NatbelQW['MetMother'] = MetNatMother & killvar 'MetNatMother'
  400. ! These can be set to 0, so wiping them in any case to get rid of them
  401. NatbelQW['MotherHome'] = NatashaMotherHome & killvar 'NatashaMotherHome'
  402. NatbelQW['MotherDoor'] = DoorOpenBy & killvar 'DoorOpenBy'
  403. NatbelQW['MotherState'] = NatashaMotherState & killvar 'NatashaMotherState'
  404. NatbelQW['MotherStateMsg'] = NatashaMotherStateMsg & killvar 'NatashaMotherStateMsg'
  405. NatbelQW['MotherStateKeep'] = NatashaMotherStateKeep & killvar 'NatashaMotherStateKeep'
  406. if SeenNatMomHitachi > 0: NatbelQW['SeenNatMomHitachi'] = SeenNatMomHitachi & killvar 'SeenNatMomHitachi'
  407. if CaughtByNatMomHitachi > 0: NatbelQW['CaughtByNatMomHitachi'] = CaughtByNatMomHitachi & killvar 'CaughtByNatMomHitachi'
  408. if $NatMomVibName ! '': $NatbelQW['NatMomVibName'] = $NatMomVibName & killvar '$NatMomVibName'
  409. ! typos found in the natasha files & other cleaning up
  410. if nhib_exp > 0: inhib_exp += nhib_exp & killvar 'nhib_exp'
  411. killvar 'natsleeprand'
  412. killvar 'imgrand'
  413. !! ----- Natasha story variables migrated to array ----- 0.8.0
  414. ! ----- Parrot story variables migrated to array
  415. if saveparQW > 0: ParrotQW['Level'] = saveparQW & killvar 'saveparQW'
  416. if popugai > 0: ParrotQW['Owned1'] = popugai & killvar 'popugai'
  417. if popugai2 > 0: ParrotQW['Owned2'] = popugai2 & killvar 'popugai2'
  418. if saveparjourQW > 0: ParrotQW['Day'] = saveparjourQW & killvar 'saveparjourQW'
  419. if parbuydate > 0: ParrotQW['BuyDate'] = parbuydate & killvar 'parbuydate'
  420. if sisrelparday > 0: ParrotQW['SisterReleaseParrotDay'] = sisrelparday & killvar 'sisrelparday'
  421. if saveparQWfailed > 0: ParrotQW['Failed'] = saveparQWfailed & killvar 'saveparQWfailed'
  422. If sispopconf > 0: ParrotQW['SisKeepParrot'] = sispopconf & killvar 'sispopconf'
  423. if $namepopu ! '': $ParrotQW['Name1'] = $namepopu & killvar '$namepopu'
  424. if $namepopu2 ! '': $ParrotQW['Name2'] = $namepopu2 & killvar '$namepopu2'
  425. ! ----- Parrot story variables migrated to array
  426. ! ----- Diner Bystroeshka (burger) story variables migrated to array
  427. if BankPapper > 0: BurgerQW['BankTask'] = BankPapper & killvar 'BankPapper'
  428. if BistroBoss > 0: BurgerQW['BossSlut'] = BistroBoss & killvar 'BistroBoss'
  429. if BistroBossDay > 0: BurgerQW['BossSlutLastServed'] = BistroBossDay & killvar 'BistroBossDay'
  430. if bistroQW > 0: BurgerQW['Level'] = bistroQW & killvar 'bistroQW'
  431. if $burgerIvanText ! '': $BurgerQW['IvanSecurityCamDesc'] = $burgerIvanText & killvar '$burgerIvanText'
  432. if BuSWworkEnd > 0: BurgerQW['SaunaWhoreKnown'] = BuSWworkEnd & killvar 'BuSWworkEnd'
  433. if dayBankPapper > 0: BurgerQW['BankTaskDay'] = dayBankPapper & killvar 'dayBankPapper'
  434. if DayTerminalPapper > 0: BurgerQW['TerminalTaskDay'] = DayTerminalPapper & killvar 'DayTerminalPapper'
  435. if gossipBU > 0: BurgerQW['SlutReputation'] = gossipBU & killvar 'gossipBU'
  436. if IvanEvidence > 0: BurgerQW['IvanQWEvidence'] = IvanEvidence & killvar 'IvanEvidence'
  437. if ivanFilmBJ > 0: BurgerQW['IvanQWBJFilmed'] = ivanFilmBJ & killvar 'ivanFilmBJ'
  438. if IvanKvartira > 0: BurgerQW['IvanQWTatianaHelp'] = IvanKvartira & killvar 'IvanKvartira'
  439. if IvanPodstavaDay > 0: BurgerQW['IvanQWDay'] = IvanPodstavaDay & killvar 'IvanPodstavaDay'
  440. if IvanPodstavaQW > 0: BurgerQW['IvanQW'] = IvanPodstavaQW & killvar 'IvanPodstavaQW'
  441. if kompromatBlackMail > 0: BurgerQW['IvanQWBlackmail'] = kompromatBlackMail & killvar 'kompromatBlackMail'
  442. if $kompromatFoto ! '': $BurgerQW['IvanQWBlackmailPhoto'] = $kompromatFoto & killvar '$kompromatFoto'
  443. if NoBistroWork > 0: BurgerQW['WorkBlocked'] = NoBistroWork & killvar 'NoBistroWork'
  444. if PersSecWork > 0: BurgerQW['Secretary'] = PersSecWork & killvar 'PersSecWork'
  445. if PersSecWorkTimes > 0: BurgerQW['SecretaryTimesWorked'] = PersSecWorkTimes & killvar 'PersSecWorkTimes'
  446. if PodpiskaNeviezd > 0: BurgerQW['IvanQWPoliceDayCount'] = PodpiskaNeviezd & killvar 'PodpiskaNeviezd'
  447. if posuda > 0: BurgerQW['WashDishesCount'] = posuda & killvar 'posuda'
  448. if posudaA > 0: BurgerQW['WashFloorCount'] = posudaA & killvar 'posudaA'
  449. if posudaday > 0: BurgerQW['WashedDishesLastDay'] = posudaday & killvar 'posudaday'
  450. if posudaAday > 0: BurgerQW['WashFloorLastDay'] = posudaAday & killvar 'posudaAday'
  451. if PSBBtimes > 0: BurgerQW['WorkShift'] = PSBBtimes & killvar 'PSBBtimes'
  452. if sergeyPQW > 0: BurgerQW['sergeyQW'] = sergeyPQW & killvar 'sergeyPQW'
  453. if soplakTimes > 0: BurgerQW['sergeyQWServiced1'] = soplakTimes & killvar 'soplakTimes'
  454. if soplakTimes1 > 0: BurgerQW['sergeyQWServiced2'] = soplakTimes1 & killvar 'soplakTimes1'
  455. if TerminalPapper > 0: BurgerQW['TerminalTask'] = TerminalPapper & killvar 'TerminalPapper'
  456. ! ----- Diner Bystroeshka (burger) story variables migrated to array
  457. ! ----- Albina story variables migrated to array
  458. if AlbFather > 0: AlbinaQW['AlbFatherQW'] = AlbFather & killvar 'AlbFather'
  459. if AlbFrend > 0: AlbinaQW['Friends'] = AlbFrend & killvar 'AlbFrend'
  460. if ZvezdEnd > 0: AlbinaQW['StarletsShutDown'] = ZvezdEnd & killvar 'ZvezdEnd'
  461. if DanceWhore > 0: AlbinaQW['StarletsWhore'] = DanceWhore & killvar 'DanceWhore'
  462. if beinalbinahome > 0: AlbinaQW['KnowsHouse'] = beinalbinahome & killvar 'beinalbinahome'
  463. if albsportday > 0: AlbinaQW['SportDay'] = albsportday & killvar 'albsportday'
  464. if albsporthome > 0: AlbinaQW['SportHome'] = albsporthome & killvar 'albsporthome'
  465. if gamebet > 0: AlbinaQW['gamebet'] = gamebet & killvar 'gamebet'
  466. if stardance > 0: AlbinaQW['ShowTriggerCount'] = stardance & killvar 'stardance'
  467. if albrideday > 0: AlbinaQW['albrideday'] = albrideday & killvar 'albrideday'
  468. if albinaQWdance > 0: AlbinaQW['StarletsJoined'] = albinaQWdance & killvar 'albinaQWdance'
  469. if AlbZverHelp > 0: AlbinaQW['ChristinaHelp'] = AlbZverHelp & killvar 'AlbZverHelp'
  470. if alb_father_meeting > 0: AlbinaQW['ParkRally'] = alb_father_meeting & killvar 'alb_father_meeting'
  471. if alb_father_day > 0: AlbinaQW['ParkRallyDay'] = alb_father_day & killvar 'alb_father_day'
  472. if AlbFaterBlackTime > 0: AlbinaQW['ElectionCampaignTime'] = AlbFaterBlackTime & killvar 'AlbFaterBlackTime'
  473. if startletsday > 0: AlbinaQW['startletsday'] = startletsday & killvar 'startletsday'
  474. ! ----- Albina story variables migrated to array
  475. !! Updating npc_bust[] array to the new values ----- 0.8.0
  476. if npc_bust['A12'] = 9: npc_bust['A12'] = 23
  477. if npc_bust['A13'] = 9: npc_bust['A13'] = 8
  478. if npc_bust['A14'] = 9: npc_bust['A14'] = 20
  479. if npc_bust['A15'] = 9: npc_bust['A15'] = 18
  480. if npc_bust['A16'] = 9: npc_bust['A16'] = 26
  481. if npc_bust['A17'] = 9: npc_bust['A17'] = 34
  482. if npc_bust['A18'] = 9: npc_bust['A18'] = 21
  483. if npc_bust['A19'] = 9: npc_bust['A19'] = 14
  484. if npc_bust['A20'] = 9: npc_bust['A20'] = 22
  485. if npc_bust['A21'] = 9: npc_bust['A21'] = 18
  486. if npc_bust['A22'] = 9: npc_bust['A22'] = 27
  487. if npc_bust['A23'] = 9: npc_bust['A23'] = 14
  488. if npc_bust['A24'] = 9: npc_bust['A24'] = 20
  489. if npc_bust['A25'] = 9: npc_bust['A25'] = 21
  490. if npc_bust['A29'] = 9: npc_bust['A29'] = 25
  491. if npc_bust['A30'] = 9: npc_bust['A30'] = 18
  492. if npc_bust['A33'] = 9: npc_bust['A33'] = 19
  493. if npc_bust['A134'] = 9: npc_bust['A134'] = 20
  494. if npc_bust['A135'] = 9: npc_bust['A135'] = 13
  495. if npc_bust['A136'] = 9: npc_bust['A136'] = 30
  496. if npc_bust['A137'] = 9: npc_bust['A137'] = 34
  497. if npc_bust['A138'] = 9: npc_bust['A138'] = 18
  498. if npc_bust['A139'] = 9: npc_bust['A139'] = 22
  499. if npc_bust['A140'] = 9: npc_bust['A140'] = 13
  500. if npc_bust['A141'] = 9: npc_bust['A141'] = 20
  501. if npc_bust['A142'] = 9: npc_bust['A142'] = 13
  502. if npc_bust['A143'] = 9: npc_bust['A143'] = 7
  503. if npc_bust['A144'] = 9: npc_bust['A144'] = 24
  504. if npc_bust['A145'] = 9: npc_bust['A145'] = 31
  505. !! Updating npc_bust[] array to the new values ----- 0.8.0
  506. !!-----------Adding pube colours for 0.8.0-----------
  507. if pcs_pubecol[1] = 0: pcs_pubecol = pcs_haircol & pcs_pubecol[1] = 1 & pcs_pubecol[2] = pcs_haircol
  508. !!-----------Adding pube colours for 0.8.0-----------
  509. !! ----- Mom, Luda & Olu stuff ----- 0.8.0
  510. killvar 'olufirst'
  511. killvar 'tetyafirst'
  512. killvar 'oluuosegunday_count'
  513. killvar 'oluuosegunday_day'
  514. !! ----- Mom, Luda & Olu stuff ----- 0.8.0
  515. !!trait update
  516. if traits['update_1'] = 0:
  517. traits['update_1'] = 1
  518. traits['alko_day'] = alko_trait_day
  519. traits['alko_points'] = alko_trait_counter
  520. traits['alko_status'] = alko_trait
  521. killvar 'alko_trait_day'
  522. killvar 'alko_trait_counter'
  523. killvar 'alko_trait'
  524. end
  525. !! ----- Other bug fixes and cleanup ----- 0.8.0
  526. if pcs_gaming_exp > 0: gaming_exp += pcs_gaming_exp & killvar 'pcs_gaming_exp'
  527. if nerd_night_game ! 0: killvar 'nerd_night_game'
  528. if nerd_night_game_day ! 0: nerd_game['game_day'] = nerd_night_game_day & killvar 'nerd_night_game_day'
  529. !!Masturbation check wasn''t being cleared
  530. mastrOnce = 0
  531. !! ----- Other bug fixes and cleanup ----- 0.8.0
  532. !!--------0.8.0.1---school social group adjustment
  533. if gruptipe[9000] = 0:
  534. gruptipe[9000] = 1
  535. grupvalue[1] = grupvalue[1] * 10
  536. grupvalue[2] = grupvalue[2] * 10
  537. grupvalue[3] = grupvalue[3] * 10
  538. grupvalue[4] = grupvalue[4] * 10
  539. end
  540. !!--------0.8.0.1---school social group adjustment
  541. !!--------0.8.1--- Music variable names changed
  542. if ml_update_1 = 0:
  543. ml_guitar['hasguitar'] = ml_guitar
  544. ml_guitar['carried'] = ml_guitarWithMe
  545. ml_performance['performed_minutes'] = ml_performed_minutes
  546. ml_performance['max_perform_minutes'] = ml_max_perform_minutes
  547. ml_guitar['chordbook'] = ml_chordbook
  548. ml_guitarlesson['lessoncount'] = ml_lessoncount
  549. ml_guitarlesson['lessonday'] = ml_lessonday
  550. $ml_guitarlesson['lessonday'] = $ml_lessonday
  551. ml_guitarlesson['lessonhour'] = 15
  552. ml_guitarlesson['nextlesson'] = daystart + (ml_guitarlesson['lessonday'] + 7 - week)
  553. ml_guitarlesson['advertisement'] = ml_guitarlessonadv
  554. ml_guitarlesson['enquired'] = ml_enquired
  555. if age < 18:
  556. ml_guitarlesson['lessoncost'] = 300
  557. else
  558. ml_guitarlesson['lessoncost'] = 500
  559. end
  560. killvar 'ml_guitarWithMe'
  561. killvar 'ml_performed_minutes'
  562. killvar 'ml_max_perform_minutes'
  563. killvar 'ml_guitarlessonadv'
  564. killvar 'ml_enquired'
  565. killvar 'ml_lessonday'
  566. killvar '$ml_lessonday'
  567. killvar 'ml_lessoncost'
  568. !!--------0.8.1--- Music variable names changed
  569. ml_update_1 = 1
  570. end
  571. !! changed $metkaM to $locM_arg and $metka to $loc_arg in the code - needed for correction saves saved prior to version 0.8.1
  572. if arrsize('$metkaM') > 0 or arrsize('$metka') > 0:
  573. $locM_arg = $metkaM
  574. $loc_arg = $metka
  575. killvar '$metkaM'
  576. killvar '$metka'
  577. end
  578. !!---------------------------------------------------------------
  579. !! fixes the variable for Christina getting outcasted, so she will show up in the journal correctly
  580. if zverSlutQW = 2:
  581. npc_grupTipe['A18'] = 5
  582. end
  583. !!---------------------------------------------------------------
  584. !!model age addition
  585. if model['age'] = 0 and model > 0:
  586. model['status'] = 1
  587. if age >= 18:
  588. model['age'] = age
  589. else
  590. model['age'] = 18
  591. end
  592. model = 0
  593. end
  594. !! Fixing Katja and Natasha relationship
  595. if npc_sex['A14'] > 1: npc_sex['A14'] = 1
  596. if npc_sex['A16'] > 1: npc_sex['A16'] = 1
  597. !! University related vars update
  598. if student >= 0:
  599. gs 'uniutil', 'transfer_legacy_vars'
  600. end
  601. !!---------------------------------------------------------------
  602. !! Lariska story variables migrated to array
  603. if KotovZverHelp > 0: LariskaQW['VitekHelp'] = KotovZverHelp & killvar 'KotovZverHelp'
  604. if IvanZverHelp > 0: LariskaQW['IvanHelp'] = IvanZverHelp & killvar 'IvanZverHelp'
  605. if FyodorZverHelp > 0: LariskaQW['FedorHelp'] = FyodorZverHelp & killvar 'FyodorZverHelp'
  606. if lariskaHelp > 0: LariskaQW['LariskaHelp'] = lariskaHelp & killvar 'lariskaHelp'
  607. if lariskaHelp_end > 0: LariskaQw['LariskaHelpEnd'] = lariskaHelp_end & killvar 'lariskaHelp_end'
  608. !!---------------------------------------------------------------
  609. !! Shave updater
  610. if shave_update ! 1:
  611. if pubestyle = 1:
  612. shave_length = 2
  613. shave_trigger = 4
  614. elseif (pubestyle >= 2 and pubestyle <= 9) or pubestyle >= 12:
  615. shave_length = 16
  616. shave_trigger = 21
  617. elseif pubestyle = 10:
  618. shave_length = 26
  619. shave_trigger = 31
  620. elseif pubestyle = 11:
  621. shave_length = 2
  622. shave_trigger = 10
  623. end
  624. shave_update = 1
  625. end
  626. !! 0.8.2 clothing package for old saves ---------------------------------------
  627. if ARRSIZE('cheapH') > 0 or ARRSIZE('averageH') > 0 or ARRSIZE('expensiveH') > 0 or ARRSIZE('formalH') > 0 or ARRSIZE('officeH') > 0 or ARRSIZE('schoolH') > 0 or ARRSIZE('exerciseH') > 0 or ARRSIZE('uniformH') > 0 or ARRSIZE('exhibitH') > 0 or ARRSIZE('alternativeH') > 0 or ARRSIZE('fetishH') > 0 or ARRSIZE('burlesqueH') > 0:
  628. $batch_sell = {
  629. poshvalldrop += 1
  630. dynamic 'RESULT = <<$ARGS[0]>>H[<<ARGS[1]>>]'
  631. if RESULT > 100:
  632. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  633. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  634. money += 750
  635. selltot += 750
  636. elseif RESULT > 45:
  637. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  638. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  639. money += 500
  640. selltot += 500
  641. elseif RESULT > 30:
  642. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  643. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  644. money += 300
  645. selltot += 300
  646. elseif RESULT > 0:
  647. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  648. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  649. money += 100
  650. selltot += 100
  651. else
  652. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  653. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  654. end
  655. dynamic '<<$ARGS[0]>>H[<<ARGS[1]>>] = 0'
  656. }
  657. poshvalldrop = 0
  658. selltot = 0
  659. i = 1
  660. :cheapmet
  661. if cheap[i] = 1 and cheapH[i] > 0:dynamic($batch_sell, 'cheap', i)
  662. i += 1
  663. if i <= 419:jump 'cheapmet'
  664. i = 1
  665. :averagemet
  666. if average[i] = 1 and averageH[i] > 0:dynamic($batch_sell, 'average', i)
  667. i += 1
  668. if i <= 541:jump 'averagemet'
  669. i = 1
  670. :expensivemet
  671. if expensive[i] = 1 and expensiveH[i] > 0:dynamic($batch_sell, 'expensive', i)
  672. i += 1
  673. if i <= 442:jump 'expensivemet'
  674. i = 1
  675. :formalmet
  676. if formal[i] = 1 and formalH[i] > 0:dynamic($batch_sell, 'formal', i)
  677. i += 1
  678. if i <= 185:jump 'formalmet'
  679. i = 1
  680. :officemet
  681. if office[i] = 1 and officeH[i] > 0:dynamic($batch_sell, 'office', i)
  682. i += 1
  683. if i <= 140:jump 'officemet'
  684. i = 1
  685. :schoolmet
  686. if school[i] = 1 and schoolH[i] > 0:dynamic($batch_sell, 'school', i)
  687. i += 1
  688. if i <= 80:jump 'schoolmet'
  689. i = 1
  690. :exercisemet
  691. if exercise[i] = 1 and exerciseH[i] > 0:dynamic($batch_sell, 'exercise', i)
  692. i += 1
  693. if i <= 260:jump 'exercisemet'
  694. i = 1
  695. :fetishmet
  696. if fetish[i] = 1 and fetishH[i] > 0:dynamic($batch_sell, 'fetish', i)
  697. i += 1
  698. if i <= 240:jump 'fetishmet'
  699. i = 1
  700. :burlesquemet
  701. if burlesque[i] = 1 and burlesqueH[i] > 0:dynamic($batch_sell, 'burlesque', i)
  702. i += 1
  703. if i <= 22:jump 'burlesquemet'
  704. i = 1
  705. :exhibitmet
  706. if exhibit[i] = 1 and exhibitH[i] > 0:dynamic($batch_sell, 'exhibit', i)
  707. i += 1
  708. if i <= 125:jump 'exhibitmet'
  709. i = 1
  710. :uniformmet
  711. if uniform[i] = 1 and uniformH[i] > 0:dynamic($batch_sell, 'uniform', i)
  712. i += 1
  713. if i <= 60:jump 'uniformmet'
  714. i = 1
  715. :swimwearmet
  716. if swimwear[i] = 1 and swimwearH[i] > 0:dynamic($batch_sell, 'swimwear', i)
  717. i += 1
  718. if i <= 213:jump 'swimwearmet'
  719. i = 1
  720. :beachmet
  721. if beach[i] = 1 and beachH[i] > 0:dynamic($batch_sell, 'beach', i)
  722. i += 1
  723. if i <= 103:jump 'beachmet'
  724. i = 1
  725. :alternativemet
  726. if alternative[i] = 1 and alternativeH[i] > 0:dynamic($batch_sell, 'alternativer', i)
  727. i += 1
  728. if i <= 129:jump 'alternativemet'
  729. killvar 'batch_sell'
  730. killvar 'alternativeH' & killvar 'alternativeS' & killvar 'alternative'
  731. killvar 'averageH' & killvar 'averageS' & killvar 'average'
  732. killvar 'burlesqueH' & killvar 'burlesqueS' & killvar 'burlesque'
  733. killvar 'cheapH' & killvar 'cheapS' & killvar 'cheap'
  734. killvar 'exerciseH' & killvar 'exerciseS'
  735. killvar 'exhibitH' & killvar 'exhibitS'
  736. killvar 'expensiveH' & killvar 'expensiveS' & killvar 'expensive'
  737. killvar 'fetishH' & killvar 'fetishS'
  738. killvar 'formalH' & killvar 'formalS' & killvar 'formal'
  739. killvar 'officeH' & killvar 'officeS' & killvar 'office'
  740. killvar 'schoolH' & killvar 'schoolS' & killvar 'school'
  741. killvar 'uniformH' & killvar 'uniformS' & killvar 'uniform'
  742. killvar 'beachS' & killvar 'beachH' & killvar 'beachB'
  743. killvar 'swimwearS' & killvar 'swimwearH' & killvar 'swimwearB'
  744. killvar 'coatS' & killvar 'coatH'
  745. gm_outfits[50] = 1
  746. gm_outfits_h[50] = 100
  747. gm_outfits_b[50] = pcs_hips
  748. gs 'clothing', 'wear', 'gm_outfits', 50
  749. end
  750. end
  751. if ((100*version_major +version_minor)*100+version_revision)*100+version_patch < 00080203:
  752. !! Lariska variables removed, no longer needed - 2020/11/30 - Alaratt
  753. !! Edited - 2021/01/19 - Alaratt
  754. if beInLariskaHome = 1 or LariskaHomeIn >= 1:
  755. if LariskaHomeIn = 1:
  756. LariskaQW['story'] = 4
  757. else
  758. LariskaQW['story'] = 5
  759. end
  760. killvar 'LariskaHomeIn'
  761. killvar 'beInLariskaHome'
  762. end
  763. if doorlocked > 0: killvar 'doorlocked'
  764. if doorpeek > 0: killvar 'doorpeek'
  765. if lariskaBDSM > 0: killvar 'lariskaBDSM'
  766. if lariskaMotherKnown = 1:
  767. LariskaQW['metAnna'] = 1
  768. killvar 'lariskaMotherKnown'
  769. end
  770. if LariskaProfi = 1:
  771. LariskaQW['volleyball'] = 1
  772. killvar 'LariskaProfi'
  773. end
  774. !!---------------------------------------------------------------
  775. !! Migrates Christina variables into an array, removes unneeded variables, and fixes the outcast issue if still needed
  776. !! 2021/01/19 - Alaratt
  777. if zverSlutQW > 0:
  778. if zverSlutQW = 2:
  779. !! Christina lost the fight and is outcasted
  780. christinaQW['fight'] = 1
  781. christinaQW['dompath'] = 7
  782. npc_grupTipe['A18'] = 5
  783. else
  784. !! Christina lost the fight and is prepped for outcasting
  785. christinaQW['fight'] = 1
  786. christinaQW['dompath'] = 6
  787. end
  788. killvar 'zverSlutQW'
  789. end
  790. if zverRageQW > 0:
  791. if zverRageQW = 10:
  792. !! Christina won the fight
  793. christinaQW['fight'] = -1
  794. christinaQW['subpath'] = 2
  795. elseif zverRageQW = 2:
  796. !! Christina lost the fight
  797. christinaQW['fight'] = 1
  798. christinaQW['dompath'] = 6
  799. else
  800. !! You spread rumors about Christina and she preps for fight
  801. christinaQW['dompath'] = 4
  802. end
  803. killvar 'zverRageQW'
  804. end
  805. if socialchg['christina_dont_care'] = 1:socialchg['christina_dont_care'] = 0
  806. if zverevaQW > 0:killvar 'zverevaQW'
  807. if LinaSlut > 0:killvar 'LinaSlut'
  808. if fizrukSex > 0:killvar 'fizrukSex'
  809. if kristinaSex > 0:killvar 'kristinaSex'
  810. if christinaphotos > 0:
  811. if christinaphotos = 3:
  812. !! Christina won the fight and you have not had a shower scene with her yet
  813. christinaQW['fight'] = -1
  814. christinaQW['subpath'] = 2
  815. elseif christinaphotos = 4:
  816. !! Christina won the fight and you had first shower scene with her
  817. christinaQW['fight'] = -1
  818. christinaQW['subpath'] = 3
  819. elseif christinaphotos = 2:
  820. !! You submitted to Christina and you had first shower scene with her
  821. christinaQW['submit'] = 1
  822. christinaQW['subpath'] = 3
  823. else
  824. !! You submitted to Christina but not had a shower scene with her yet
  825. christinaQW['submit'] = 1
  826. christinaQW['subpath'] = 2
  827. end
  828. killvar 'christinaphotos'
  829. end
  830. !!---------------------------------------------------------------
  831. !!Albina variables no longer needed, no sense in having them run in the background for nothing
  832. if AlbinaQW['ParkRallyDay'] > 0:AlbinaQW['ParkRallyDay'] = 0
  833. if AlbinaQW['ElectionCampaignTime'] > 0:AlbinaQW['ElectionCampaignTime'] = 0
  834. if AlbinaQW['AlbFatherQW'] > 1:AlbinaQW['AlbFatherQW'] = 1
  835. !!---------------------------------------------------------------
  836. if ((100*version_major +version_minor)*100+version_revision)*100+version_patch < 00080204:
  837. !! Migrates kikboxing variables into an array, removes unneeded variables.
  838. if razradKik > 0: kickbox['sash'] = razradKik & killvar 'razradKik'
  839. if amatReit > 0: kickbox['advancement'] = amatReit & killvar 'amatReit'
  840. if kikmoney > 0: kickbox['money'] = kikmoney & killvar 'kikmoney'
  841. if KikWinAm > 0: kickbox['amateurWin'] = KikWinAm & killvar 'KikWinAm'
  842. if KikWinAmKO > 0: kickbox['amateurWinKO'] = KikWinAmKO & killvar 'KikWinAmKO'
  843. if KikLossAm > 0: kickbox['amateurLoss'] = KikLossAm & killvar 'KikLossAm'
  844. if KikLossAmKO > 0: kickbox['amateurLossKO'] = KikLossAmKO & killvar 'KikLossAmKO'
  845. if KikDrawAm > 0: kickbox['amateurDraw'] = KikDrawAm & killvar 'KikDrawAm'
  846. if amateur > 0: kickbox['amateur'] = amateur & killvar 'amateur'
  847. killvar 'razrand'
  848. end
  849. !!---------------------------------------------------------------
  850. end
  851. --- saveupdater ---------------------------------