npcpreservec.qsrc 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. # npcpreservec
  2. !! {It expects an Args containing a C array index}
  3. !! {This initializes the array and acts as a gate to deny bad calls.}
  4. $npctemp = $ARGS[0]
  5. !! npcgen_lastrun is a flag to help track whether npcgeneratec or npcpreservec has been run last
  6. !! npcgeneratec is 1
  7. !! npcpreservec is 2
  8. npcgen_lastrun = 1
  9. if mid($npctemp,1,1) = 'C':
  10. :npcsavebsanityloop
  11. npc_scheck = 0
  12. $npclastsaved = 'B' + '<<barraynumber>>'
  13. $npctemparrb = 'B' + '<<(barraynumber)-(1)>>'
  14. if $npc_PersType[$npctemparrb] = '' and barraynumber > 0:
  15. barraynumber -= 1
  16. npc_scheck = 1
  17. elseif $npc_PersType[$npclastsaved] = '':
  18. npc_scheck = 0
  19. else
  20. barraynumber += 1
  21. npc_scheck = 1
  22. end
  23. if npc_scheck = 1: jump 'npcsavebsanityloop'
  24. barraynumber += 1
  25. killvar 'npc_scheck'
  26. ! {This copies the array from Array C to Array B}
  27. $npc_firstname[$npclastsaved] = $npc_firstname[$npctemp]
  28. $npc_nickname[$npclastsaved] = $npc_nickname[$npctemp]
  29. $npc_lastname[$npclastsaved] = $npc_lastname[$npctemp]
  30. $npc_usedname[$npclastsaved] = $npc_usedname[$npctemp]
  31. $npc_notes[$npclastsaved] = $npc_notes[$npctemp]
  32. $npc_pic[$npclastsaved] = $npc_pic[$npctemp]
  33. lover_picrand[$npclastsaved] = lover_picrand[$npctemp]
  34. npc_age[$npclastsaved] = npc_age[$npctemp]
  35. npc_dob[$npclastsaved] = npc_dob[$npctemp]
  36. npc_gender[$npclastsaved] = npc_gender[$npctemp]
  37. npc_height[$npclastsaved] = npc_height[$npctemp]
  38. ! npc_body
  39. npc_haircol[$npclastsaved] = npc_haircol[$npctemp]
  40. npc_apprnc[$npclastsaved] = npc_apprnc[$npctemp]
  41. npc_dick[$npclastsaved] = npc_dick[$npctemp]
  42. $npc_thdick[$npclastsaved] = $npc_thdick[$npctemp]
  43. npc_bust[$npclastsaved] = npc_bust[$npctemp]
  44. $npc_dick_desc[$npclastsaved] = $npc_dick_desc[$npctemp]
  45. npc_spermpot[$npclastsaved] = npc_spermpot[$npctemp]
  46. npc_sexskill[$npclastsaved] = npc_sexskill[$npctemp]
  47. npc_drunk[$npclastsaved] = npc_drunk[$npctemp]
  48. npc_horny[$npclastsaved] = npc_horny[$npctemp]
  49. npc_rel[$npclastsaved] = npc_rel[$npctemp]
  50. npc_love[$npclastsaved] = npc_love[$npctemp]
  51. npc_sex[$npclastsaved] = npc_sex[$npctemp]
  52. npc_QW[$npclastsaved] = npc_QW[$npctemp]
  53. $npc_perstype[$npclastsaved] = $npc_perstype[$npctemp]
  54. $npc_dna[$npclastsaved] = $npc_dna[$npctemp]
  55. npc_herpes[$npclastsaved] = npc_herpes[$npctemp]
  56. npc_syth[$npclastsaved] = npc_syth[$npctemp]
  57. npc_gon[$npclastsaved] = npc_gon[$npctemp]
  58. npc_thrush[$npclastsaved] = npc_thrush[$npctemp]
  59. npc_residence[$npclastsaved] = npc_residence[$npctemp]
  60. npc_apt_type[$npclastsaved] = npc_apt_type[$npctemp]
  61. npc_apt_number[$npclastsaved] = npc_apt_number[$npctemp]
  62. $npc_apt_bedroom[$npclastsaved] = $npc_apt_bedroom[$npctemp]
  63. $npc_apt_kitchen[$npclastsaved] = $npc_apt_kitchen[$npctemp]
  64. $npc_apt_livingroom[$npclastsaved] = $npc_apt_livingroom[$npctemp]
  65. $npc_apt_bathroom[$npclastsaved] = $npc_apt_bathroom[$npctemp]
  66. $npc_apt_hall[$npclastsaved] = $npc_apt_hall[$npctemp]
  67. if $npc_apt_spare[$npclastsaved] ! '':$npc_apt_spare[$npclastsaved] = $npc_apt_spare[$npctemp]
  68. npc_perv[$npclastsaved] = npc_perv[$npctemp]
  69. npc_outfit[$npclastsaved] = npc_outfit[$npctemp]
  70. npc_finance[$npclastsaved] = npc_finance[$npctemp]
  71. npc_occupation[$npclastsaved] = npc_occupation[$npctemp]
  72. $npc_occupation[$npclastsaved] = $npc_occupation[$npctemp]
  73. npc_start_free_time[$npclastsaved] = npc_start_free_time[$npctemp]
  74. npc_end_free_time[$npclastsaved] = npc_end_free_time[$npctemp]
  75. npc_work_start[$npclastsaved] = npc_work_start[$npctemp]
  76. npc_work_end[$npclastsaved] = npc_work_end[$npctemp]
  77. npc_day_off[$npclastsaved] = npc_day_off[$npctemp]
  78. npc_car[$npclastsaved] = npc_car[$npctemp]
  79. npc_intel[$npclastsaved] = npc_intel[$npctemp]
  80. npc_humor[$npclastsaved] = npc_humor[$npctemp]
  81. npc_style[$npclastsaved] = npc_style[$npctemp]
  82. npc_smoker[$npclastsaved] = npc_smoker[$npctemp]
  83. npc_mj[$npclastsaved] = npc_mj[$npctemp]
  84. npc_addit[$npclastsaved] = npc_addit[$npctemp]
  85. npc_doors[$npclastsaved] = npc_doors[$npctemp]
  86. npc_goal[$npclastsaved] = npc_goal[$npctemp]
  87. $npc_rel_goal[$npclastsaved] = $npc_rel_goal[$npctemp]
  88. !! relationship ideals/stats
  89. npc_fidelity[$npclastsaved] = npc_fidelity[$npctemp]
  90. $npc_fidelity[$npclastsaved] = $npc_fidelity[$npctemp]
  91. npc_wife[$npclastsaved] = npc_wife[$npctemp]
  92. npc_girlfriend[$npclastsaved] = npc_girlfriend[$npctemp]
  93. npc_lover_days[$npclastsaved] = npc_lover_days[$npctemp]
  94. npc_lover_keys[$npclastsaved] = npc_lover_keys[$npctemp]
  95. !! traits
  96. npc_earlyriser[$npclastsaved] = npc_earlyriser[$npctemp]
  97. npc_latesleeper[$npclastsaved] = npc_latesleeper[$npctemp]
  98. npc_generous[$npclastsaved] = npc_generous[$npctemp]
  99. npc_selfish[$npclastsaved] = npc_selfish[$npctemp]
  100. npc_gentle[$npclastsaved] = npc_gentle[$npctemp]
  101. npc_rough[$npclastsaved] = npc_rough[$npctemp]
  102. npc_risktaker[$npclastsaved] = npc_risktaker[$npctemp]
  103. npc_diligent[$npclastsaved] = npc_diligent[$npctemp]
  104. npc_neat[$npclastsaved] = npc_neat[$npctemp]
  105. npc_messy[$npclastsaved] = npc_messy[$npctemp]
  106. npc_diligent[$npclastsaved] = npc_diligent[$npctemp]
  107. npc_manscaped[$npclastsaved] = npc_manscaped[$npctemp]
  108. npc_argumentative[$npclastsaved] = npc_argumentative[$npctemp]
  109. npc_competitive[$npclastsaved] = npc_competitive[$npctemp]
  110. npc_insecure[$npclastsaved] = npc_insecure[$npctemp]
  111. npc_condom_conscious[$npclastsaved] = npc_condom_conscious[$npctemp]
  112. npc_no_condoms[$npclastsaved] = npc_no_condoms[$npctemp]
  113. npc_latex_allergy[$npclastsaved] = npc_latex_allergy[$npctemp]
  114. npc_caretaker[$npclastsaved] = npc_caretaker[$npctemp]
  115. npc_childfree[$npclastsaved] = npc_childfree[$npctemp]
  116. npc_abusive[$npclastsaved] = npc_abusive[$npctemp]
  117. npc_cuddler[$npclastsaved] = npc_cuddler[$npctemp]
  118. !! sex traits and stats
  119. npc_sexdrive[$npclastsaved] = npc_sexdrive[$npctemp]
  120. npc_sex_stamina[$npclastsaved] = npc_sex_stamina[$npctemp]
  121. npc_fav_pos[$npclastsaved] = npc_fav_pos[$npctemp]
  122. $npc_fav_pos[$npclastsaved] = $npc_fav_pos[$npctemp]
  123. npc_sex_speed[$npclastsaved] = npc_sex_speed[$npctemp]
  124. npc_sex_volume[$npclastsaved] = npc_sex_volume[$npctemp]
  125. npc_gentle_lover[$npclastsaved] = npc_gentle_lover[$npctemp]
  126. npc_dirty_lover[$npclastsaved] = npc_dirty_lover[$npctemp]
  127. npc_sensual_lover[$npclastsaved] = npc_sensual_lover[$npctemp]
  128. npc_cum_pref[$npclastsaved] = npc_cum_pref[$npctemp]
  129. $npc_cum_pref[$npclastsaved] = $npc_cum_pref[$npctemp]
  130. npc_bukakke_fetish[$npclastsaved] = npc_bukakke_fetish[$npctemp]
  131. npc_dislikes_facials[$npclastsaved] = npc_dislikes_facials[$npctemp]
  132. npc_tit_pref[$npclastsaved] = npc_tit_pref[$npctemp]
  133. npc_bush_pref[$npclastsaved] = npc_bush_pref[$npctemp]
  134. npc_sex_spanker[$npclastsaved] = npc_sex_spanker[$npctemp]
  135. npc_pussyeater[$npclastsaved] = npc_pussyeater[$npctemp]
  136. npc_cum_cannon[$npclastsaved] = npc_cum_cannon[$npctemp]
  137. npc_sex_filmer[$npclastsaved] = npc_sex_filmer[$npctemp]
  138. npc_know_bc[$npclastsaved] = npc_know_bc[$npctemp]
  139. npc_know_not_bc[$npclastsaved] = npc_know_not_bc[$npctemp]
  140. npc_thinkage[$npclastsaved] = npc_thinkage[$npctemp]
  141. $npc_know_pubes[$npclastsaved] = $npc_know_pubes[$npctemp]
  142. npc_hj_count[$npclastsaved] = npc_hj_count[$npctemp]
  143. npc_bj_count[$npclastsaved] = npc_bj_count[$npctemp]
  144. npc_fuck_times[$npclastsaved] = npc_fuck_times[$npctemp]
  145. virgin_taker_ID[$npclastsaved] = virgin_taker_ID[$npctemp]
  146. !! This checks if you have had sex with this person before or not
  147. npc_sex[$npclastsaved] = npc_sex[$npctemp]
  148. $npc_index[$npclastsaved] = $npclastsaved
  149. ! {This checks the miscellanious arrays for the Entry and changes it to the new Array B.}
  150. :npctempmloop1
  151. npctemp2 = arrpos('$cumarrnam', $npctemp)
  152. if npctemp2 >= 0: $cumarrnam[npctemp2] = $npclastsaved & jump 'npctempmloop1'
  153. :npctempmloop2
  154. npctemp2 = arrpos('$sparrnam', $npctemp)
  155. if npctemp2 >= 0: $sparrnam[npctemp2] = $npclastsaved & jump 'npctempmloop2'
  156. :npctempmloop3
  157. npctemp2 = arrpos('$wombName', $npctemp)
  158. if npctemp2 >= 0: $wombName[npctemp2] = $npclastsaved & jump 'npctempmloop3'
  159. :npctempmloop4
  160. npctemp2 = arrpos('$cumfathlotto', $npctemp)
  161. if npctemp2 >= 0: $cumfathlotto[npctemp2] = $npclastsaved & jump 'npctempmloop4'
  162. :npctempmloop5
  163. npctemp2 = arrpos('$ChildFath', $npctemp)
  164. if npctemp2 >= 0: $ChildFath[npctemp2] = $npclastsaved & jump 'npctempmloop5'
  165. ! {Thic checks Array A for the Entry and changes it to the new Array B. The parts commented out don''t work and need to be replaced with something that does.}
  166. if $pcs_firstpart = $npctemp: $pcs_firstpart = $npclastsaved
  167. if $pcs_lastpart = $npctemp: $pcs_lastpart = $npclastsaved
  168. ! {This clears the Entry in Array C}
  169. gs 'npccleanc', $npctemp
  170. end
  171. !! Preserves npclastsavedn. Giving the last numerical B array saved.
  172. npclastsavedn = val(mid($npclastsaved, 2))
  173. killvar 'npctemp2'
  174. killvar '$npctemp2'
  175. killvar '$npctemp'
  176. --- npcpreservec ---------------------------------