saveupdater.qsrc 40 KB

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