npcgeneratec.qsrc 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896
  1. # npcgeneratec
  2. !! This file requires the sex, name and age for the npc to be generated
  3. !! You can also set their approx. home location
  4. !! All data produced is random so if you need a specific value you will have to overwrite it
  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. !! sets sex, 0 male, 1 female, 2 female herm, 3 male herm
  10. npctempgsex = ARGS[0]
  11. !! Name for npc, can just be rapist or shop assistant, etc
  12. $npctempgn[0] = $ARGS[1]
  13. !! npc age
  14. npctempgage = ARGS[2]
  15. !! npc home location area
  16. !! 1 - Pavlovsk Residential Area
  17. !! 2 - Student dorms in the city
  18. !! 3 - St. Petersburg Residential Area
  19. !! 4 - St. Petersburg City Center
  20. temp_location = ARGS[3]
  21. dont_know_npc_name = ARGS[4]
  22. !! For example
  23. !! gs 'npcgeneratec', 0, 'stranger', rand(18,45), 3, 1
  24. !! Which would generate a male named stranger between ages of 18 and 45 who lives in the St. Petersburg Residential Area who will be remembered as ''stranger''
  25. if temp_location = 0:
  26. if $region = 'city':
  27. temp_location = rand(3,4)
  28. elseif $region = 'pav':
  29. temp_location = 1
  30. end
  31. end
  32. !! This sets up a newly generated index number by overwriting the first blank number
  33. !! The first check is to see if array 0 in the cleanup list is available and overwrites it if it is free
  34. if mid($cemptyarray[0],1,1) = 'C':
  35. $npclastgenerated = $cemptyarray[0]
  36. killvar '$cemptyarray', 0
  37. else
  38. :npcgencsanityloop
  39. i = 0
  40. $npclastgenerated = 'C' + '<<carraynumber>>'
  41. $npctemparrc = 'C' + '<<(carraynumber)-(1)>>'
  42. if $npc_perstype[$npctemparrc] = '' and carraynumber > 0:
  43. carraynumber -= 1
  44. i = 1
  45. elseif $npc_perstype[$npclastgenerated] = '':
  46. i = 0
  47. else
  48. carraynumber += 1
  49. i = 1
  50. end
  51. if i = 1: jump 'npcgencsanityloop'
  52. end
  53. carraynumber += 1
  54. $npc_index[$npclastgenerated] = $npclastgenerated
  55. !! Random birthday based on age given
  56. npctempc1[1] = year - npctempgage
  57. npctempc1[2] = rand(1,12)
  58. if npctempc1[2] = 4 or npctempc1[2] = 6 or npctempc1[2] = 9 or npctempc1[2] = 11:
  59. npctempc1[3] = rand(1,30)
  60. elseif npctempc1[2] = 1 or npctempc1[2] = 3 or npctempc1[2] = 5 or npctempc1[2] = 7 or npctempc1[2] = 8 or npctempc1[2] = 10 or npctempc1[2] = 12:
  61. npctempc1[3] = rand(1,31)
  62. elseif ((npctempc1[1] mod 4 = 0) and (npctempc1[1] mod 100 ! 0)) or (npctempc1[1] mod 400 = 0):
  63. npctempc1[3] = rand(1,29)
  64. else
  65. npctempc1[3] = rand(1,28)
  66. end
  67. npc_dob[$npclastgenerated] = npctempc1[1] * 10000
  68. npc_dob[$npclastgenerated] += (npctempc1[2] * 100)
  69. npc_dob[$npclastgenerated] += npctempc1[3]
  70. ! {we save the unique number of the npc, to be able to get the index of the array via arrpos}
  71. !! Sets a seed value for the stat randomization as well as calculate chance of virginity
  72. if npctempgage < 18:
  73. npctempc2[0] = 30
  74. npctempc2[1] = rand(0,20)
  75. else
  76. npctempc2[0] = 50
  77. npctempc2[1] = rand(19,24)
  78. end
  79. !! Flag for virginity
  80. if npctempc2[1] < 20:
  81. npc_sexskill[$npclastgenerated] = 0
  82. end
  83. !! Fill details about their sex such as cock and breast size
  84. if npctempgsex = 0:
  85. ! {Male}
  86. gs 'npcrnamefile', 'rusMale'
  87. gs 'npcgenext', 'dick'
  88. npc_gender[$npclastgenerated] = 0
  89. npc_spermpot[$npclastgenerated] = 10000
  90. $npc_thdick[$npclastgenerated] = $npctempgn[4]
  91. npc_dick[$npclastgenerated] = npctempgn[5]
  92. $npc_notes[$npclastgenerated] = 'A male.'
  93. npc_bust[$npclastgenerated] = 0
  94. lover_picrand[$npclastgenerated] = rand(1,30)
  95. elseif npctempgsex = 1:
  96. ! {Female}
  97. gs 'npcrnamefile', 'rusFemale'
  98. npc_gender[$npclastgenerated] = 1
  99. npc_spermpot[$npclastgenerated] = -1
  100. $npc_thdick[$npclastgenerated] = 'clitoris'
  101. npc_dick[$npclastgenerated] = rand(0,1)
  102. $npc_notes[$npclastgenerated] = 'A female.'
  103. !!0 - 60 curve around 22,5 (C/D cups)
  104. npc_bust[$npclastgenerated] = rand(0,15) + rand(0,15) + rand(0,15) & if rand(1,10) = 1: npc_bust[$npclastgenerated] += rand(0,15)
  105. elseif npctempgsex = 2:
  106. ! {HermFemale}
  107. gs 'npcrnamefile', 'rusFemale'
  108. gs 'npcgenext', 'dick'
  109. npc_gender[$npclastgenerated] = 1
  110. npc_spermpot[$npclastgenerated] = -1
  111. $npc_thdick[$npclastgenerated] = 'clitoris'
  112. npc_dick[$npclastgenerated] = npctempgn[5]
  113. $npc_notes[$npclastgenerated] = 'A female Hermaphrodite.'
  114. !!0 - 60 curve around 22,5 (C/D cups)
  115. npc_bust[$npclastgenerated] = rand(0,15) + rand(0,15) + rand(0,15)
  116. else
  117. ! {HermMale}
  118. gs 'npcrnamefile', 'rusMale'
  119. gs 'npcgenext', 'dick'
  120. npc_gender[$npclastgenerated] = 0
  121. npc_spermpot[$npclastgenerated] = 10000
  122. $npc_thdick[$npclastgenerated] = $npctempgn[4]
  123. npc_dick[$npclastgenerated] = npctempgn[5]
  124. $npc_notes[$npclastgenerated] = 'A male Hermaphrodite.'
  125. npc_bust[$npclastgenerated]= rand(0,10)
  126. end
  127. !! $npc_dick_desc is set here
  128. !! this variable is to set a shorthand method of checking dick size without looking for specific numbers
  129. !! it is organized by length and then ascending girth
  130. !! short dicks
  131. if npc_dick[$npclastgenerated] < 9:
  132. if $npc_thdick[$npclastgenerated] = 'skinny' or $npc_thdick[$npclastgenerated] = 'slim':
  133. $npc_dick_desc[$npclastgenerated] = 'tiny'
  134. elseif $npc_thdick[$npclastgenerated] = 'well proportioned' or $npc_thdick[$npclastgenerated] = 'thicker than average':
  135. $npc_dick_desc[$npclastgenerated] = 'short'
  136. elseif $npc_thdick[$npclastgenerated] = 'thick' or $npc_thdick[$npclastgenerated] = 'massive' or $npc_thdick[$npclastgenerated] = 'monstrous':
  137. $npc_dick_desc[$npclastgenerated] = 'chode'
  138. end
  139. !! average length dicks
  140. elseif npc_dick[$npclastgenerated] < 13:
  141. if $npc_thdick[$npclastgenerated] = 'skinny' or $npc_thdick[$npclastgenerated] = 'slim':
  142. $npc_dick_desc[$npclastgenerated] = 'skinny'
  143. elseif $npc_thdick[$npclastgenerated] = 'well proportioned' or $npc_thdick[$npclastgenerated] = 'thicker than average':
  144. $npc_dick_desc[$npclastgenerated] = 'normal'
  145. elseif $npc_thdick[$npclastgenerated] = 'thick' or $npc_thdick[$npclastgenerated] = 'massive' or $npc_thdick[$npclastgenerated] = 'monstrous':
  146. $npc_dick_desc[$npclastgenerated] = 'thick'
  147. end
  148. !! long dicks
  149. elseif npc_dick[$npclastgenerated] < 18:
  150. if $npc_thdick[$npclastgenerated] = 'skinny' or $npc_thdick[$npclastgenerated] = 'slim':
  151. $npc_dick_desc[$npclastgenerated] = 'long'
  152. elseif $npc_thdick[$npclastgenerated] = 'well proportioned' or $npc_thdick[$npclastgenerated] = 'thicker than average':
  153. $npc_dick_desc[$npclastgenerated] = 'huge'
  154. elseif $npc_thdick[$npclastgenerated] = 'thick' or $npc_thdick[$npclastgenerated] = 'massive' or $npc_thdick[$npclastgenerated] = 'monstrous':
  155. $npc_dick_desc[$npclastgenerated] = 'enormous'
  156. end
  157. !! extremely long dicks
  158. else
  159. if $npc_thdick[$npclastgenerated] = 'skinny' or $npc_thdick[$npclastgenerated] = 'slim':
  160. $npc_dick_desc[$npclastgenerated] = 'lengthy'
  161. elseif $npc_thdick[$npclastgenerated] = 'well proportioned' or $npc_thdick[$npclastgenerated] = 'thicker than average':
  162. $npc_dick_desc[$npclastgenerated] = 'gigantic'
  163. elseif $npc_thdick[$npclastgenerated] = 'thick' or $npc_thdick[$npclastgenerated] = 'massive' or $npc_thdick[$npclastgenerated] = 'monstrous':
  164. $npc_dick_desc[$npclastgenerated] = 'monster'
  165. end
  166. end
  167. !! Set the names, and the stat high ends as determined by seed set earlier
  168. gs 'npcrnamefile', 'rusSur'
  169. $npc_firstname[$npclastgenerated] = $npctempgn[1]
  170. $npc_nickname[$npclastgenerated] = $npctempgn[2]
  171. $npc_lastname[$npclastgenerated] = $npctempgn[3]
  172. if dont_know_npc_name = 0 or $npctempgn[0] = '':
  173. $npc_usedname[$npclastgenerated] = $npctempgn[1]
  174. else
  175. $npc_usedname[$npclastgenerated] = $npctempgn[0]
  176. end
  177. npc_intel[$npclastgenerated] = rand(1,npctempc2)
  178. !! set them to sober
  179. npc_drunk[$npclastgenerated] = 0
  180. !! Horniness
  181. npc_horny[$npclastgenerated] = rand(0,60)
  182. !! Attractiveness
  183. npc_apprnc[$npclastgenerated] = rand(30,60)
  184. !! Height
  185. if npc_gender[$npclastgenerated] = 0:
  186. npc_height[$npclastgenerated] = rand(160,190)
  187. else
  188. npc_height[$npclastgenerated] = rand(150,180)
  189. end
  190. !! Hair colour
  191. npc_haircol[$npclastgenerated] = rand(0, 3)
  192. !! Quest stage, relationship and love initialised
  193. npc_QW[$npclastgenerated]= 0
  194. !! hornguy6 commentary: I don''t know why relationship automatically starts at 40? I didn''t code this part so maybe someone can explain the reasoning behind it.
  195. npc_rel[$npclastgenerated] = 40
  196. npc_love[$npclastgenerated] = 0
  197. !! initialise occupation and outfit
  198. npc_occupation[$npclastgenerated] = 0
  199. npc_outfit[$npclastgenerated] = 0
  200. !! Unspecified dad and <<$npc_nickname[''A29'']>>.
  201. if npctempgsex = 1 or npctempgsex = 2:
  202. !! A female face
  203. $npc_pic[$npclastgenerated] = 'icon_bf' + rand(31, 60) + '.png'
  204. else
  205. !! A male face
  206. $npc_pic[$npclastgenerated] = 'icon_bf' + rand(1, 30) + '.png'
  207. end
  208. !! STDs set to 0. For characters with a STD, you need to gs npcgenext rstd
  209. npc_herpes[$npclastgenerated] = 0
  210. npc_syth[$npclastgenerated] = 0
  211. npc_gon[$npclastgenerated] = 0
  212. npc_thrush[$npclastgenerated] = 0
  213. !! times you have had sex with and pervert level of npc
  214. npc_sex[$npclastgenerated] = 0
  215. npc_perv[$npclastgenerated] = 0
  216. !! Personality generated
  217. gs 'npcgenext', 'pers'
  218. $npc_perstype[$npclastgenerated] = $npctempgn[6]
  219. !! hornguy6 commentary: the above code sets a Myers Briggs personality type?
  220. !! Seems overly complex. Up to others whether we keep it or just use the quirks I''ve added to this file
  221. ! {Creating the DNA of the character. If it is someone specific, like father, mother, daughter, sone, etc. then should be overwritten.}
  222. $npc_dna[$npclastgenerated] = func('DNA','create')
  223. !! Set home details
  224. !! npc_apt_type = 1: student dorm (only available in the city for obvious reasons)
  225. !! npc_apt_type = 2: studio apartment
  226. !! npc_apt_type = 3: one bedroom apartment
  227. !! npc_apt_type = 4: multi-bedroom apartment with roommates
  228. !! npc_apt_type = 5: multi-bedroom apartment living alone
  229. !! npc_apt_type = 6: high rise apartment (for rich people only)
  230. !! temp_location
  231. !! 1 - Pavlovsk Residential Area
  232. !! 2 - Student dorms in the city
  233. !! 3 - St. Petersburg Residential Area
  234. !! 4 - St. Petersburg City Center
  235. !! occupation set, list below
  236. npc_residence[$npclastgenerated] = temp_location
  237. if npc_residence[$npclastgenerated] = 1:
  238. npc_finance[$npclastgenerated] = 0
  239. $npc_residence[$npclastgenerated] = 'pav_res'
  240. elseif npc_residence[$npclastgenerated] = 2:
  241. npc_finance[$npclastgenerated] = 0
  242. $npc_residence[$npclastgenerated] = 'student_dorms'
  243. elseif npc_residence[$npclastgenerated] = 2:
  244. npc_finance[$npclastgenerated] = rand(1,2)
  245. $npc_residence[$npclastgenerated] = 'city_res'
  246. elseif npc_residence[$npclastgenerated] = 2:
  247. npc_finance[$npclastgenerated] = 2
  248. $npc_residence[$npclastgenerated] = 'city_center'
  249. end
  250. if npc_finance[$npclastgenerated] = 0:
  251. if npc_residence[$npclastgenerated] ! 1 and npc_residence[$npclastgenerated] ! 4 and npctempgage < 22:
  252. npc_student[$npclastgenerated] = rand(0,1)
  253. npc_apt_type[$npclastgenerated] = rand(1,4)
  254. elseif npc_residence[$npclastgenerated] = 2:
  255. npc_student[$npclastgenerated] = 1
  256. npc_apt_type[$npclastgenerated] = 2
  257. else
  258. npc_apt_type[$npclastgenerated] = rand(2,4)
  259. end
  260. npc_occupation[$npclastgenerated] = rand(1,7)
  261. if rand(1,3) = 1:
  262. npc_start_free_time[$npclastgenerated] = 8
  263. npc_end_free_time[$npclastgenerated] = 12
  264. npc_work_start[$npclastgenerated] = 13
  265. npc_work_end[$npclastgenerated] = 21
  266. elseif rand(1,2) = 1:
  267. npc_start_free_time[$npclastgenerated] = 15
  268. npc_end_free_time[$npclastgenerated] = 20
  269. npc_work_start[$npclastgenerated] = 6
  270. npc_work_end[$npclastgenerated] = 14
  271. else
  272. npc_start_free_time[$npclastgenerated] = 18
  273. npc_end_free_time[$npclastgenerated] = 22
  274. npc_work_start[$npclastgenerated] = 9
  275. npc_work_end[$npclastgenerated] = 17
  276. end
  277. npc_day_off[$npclastgenerated] = rand(1,7)
  278. elseif npc_finance[$npclastgenerated] = 1:
  279. npc_apt_type[$npclastgenerated] = rand(2,5)
  280. npc_occupation[$npclastgenerated] = rand(7,15)
  281. if rand(1,2) = 1:
  282. npc_start_free_time[$npclastgenerated] = 8
  283. npc_end_free_time[$npclastgenerated] = 12
  284. npc_work_start[$npclastgenerated] = 13
  285. npc_work_end[$npclastgenerated] = 21
  286. else
  287. npc_start_free_time[$npclastgenerated] = 18
  288. npc_end_free_time[$npclastgenerated] = 22
  289. npc_work_start[$npclastgenerated] = 9
  290. npc_work_end[$npclastgenerated] = 17
  291. end
  292. if npc_car[$npclastgenerated] = 0: npc_car[$npclastgenerated] = rand(-3,1)
  293. elseif npc_finance[$npclastgenerated] = 2:
  294. npc_apt_type[$npclastgenerated] = 5
  295. !!npc_apt_type[$npclastgenerated] = rand(5,6)
  296. !! apt_type 6 is disabled until pictures are added
  297. npc_occupation[$npclastgenerated] = rand(14,18)
  298. npc_car[$npclastgenerated] = rand(0,1)
  299. end
  300. npc_day_off[$npclastgenerated] = rand(1,7)
  301. !! npc_style[$npclastgenerated] determines generally how they dress and what their "persona" is
  302. !! Each style is limited by their financial status and occupation
  303. !! e.g. You can''t have someone who dresses like a businessman but works as a line cook
  304. !! 1 - "normal"
  305. !! 2 - Gopnik
  306. !! 3 - nerdy
  307. !! 4 - sporty
  308. !! 5 - fashionable
  309. !! 6 - businessman
  310. if npc_occupation[$npclastgenerated] < 15:
  311. npc_style[$npclastgenerated] = rand(1,5)
  312. else
  313. npc_style[$npclastgenerated] = (rand(2,6) mod 6) + 1
  314. end
  315. if npc_apt_type[$npclastgenerated] = 6:
  316. !! high rise
  317. !! this is to determine what their spare room is used for based on their personality type
  318. if npc_style[$npclastgenerated] = 3:
  319. npc_apt_spare[$npclastgenerated] = 1
  320. elseif npc_style[$npclastgenerated] = 2 or npc_style[$npclastgenerated] = 4:
  321. npc_apt_spare[$npclastgenerated] = 2
  322. else
  323. npc_apt_spare[$npclastgenerated] = rand(1,2)
  324. end
  325. if npc_apt_spare[$npclastgenerated] = 1:
  326. $npc_apt_spare[$npclastgenerated] = 'gaming'
  327. elseif npc_apt_spare[$npclastgenerated] = 2:
  328. $npc_apt_spare[$npclastgenerated] = 'gym'
  329. end
  330. npc_apt_number[$npclastgenerated] = rand(1,2)
  331. $npc_apt_bedroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/high_rise/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  332. $npc_apt_kitchen[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/high_rise/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  333. $npc_apt_livingroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/high_rise/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  334. $npc_apt_bathroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/high_rise/<<npc_apt_number[$npclastgenerated]>>/bath.jpg"></center>'
  335. $npc_apt_hall[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/high_rise/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  336. elseif npc_apt_type[$npclastgenerated] = 4 or npc_apt_type[$npclastgenerated] = 5:
  337. !! multi-bedroom
  338. !! npc_apt_type[$npclastgenerated] = 4 will one day be living with roommates but for now we''re just making it easy on ourselves. No roommates until later.
  339. !! this is to determine what their spare room is used for based on their personality type
  340. if npc_style[$npclastgenerated] = 3:
  341. npc_apt_spare[$npclastgenerated] = 1
  342. elseif npc_style[$npclastgenerated] = 2 or npc_style[$npclastgenerated] = 4:
  343. npc_apt_spare[$npclastgenerated] = 2
  344. else
  345. npc_apt_spare[$npclastgenerated] = rand(1,2)
  346. end
  347. if npc_apt_spare[$npclastgenerated] = 1:
  348. $npc_apt_spare[$npclastgenerated] = 'gaming'
  349. elseif npc_apt_spare[$npclastgenerated] = 2:
  350. $npc_apt_spare[$npclastgenerated] = 'gym'
  351. end
  352. npc_apt_number[$npclastgenerated] = rand(1,2)
  353. $npc_apt_bedroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/multibedroom/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  354. $npc_apt_kitchen[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/multibedroom/<<npc_apt_number[$npclastgenerated]>>/kitchen.jpg"></center>'
  355. $npc_apt_livingroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/multibedroom/<<npc_apt_number[$npclastgenerated]>>/living.jpg"></center>'
  356. $npc_apt_bathroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/multibedroom/<<npc_apt_number[$npclastgenerated]>>/bath.jpg"></center>'
  357. $npc_apt_hall[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/multibedroom/<<npc_apt_number[$npclastgenerated]>>/living.jpg"></center>'
  358. $npc_apt_spare[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/multibedroom/<<npc_apt_number[$npclastgenerated]>>/<<$npc_apt_spare[$npclastgenerated]>>.jpg"></center>'
  359. elseif npc_apt_type[$npclastgenerated] = 3:
  360. !! one bedroom
  361. npc_apt_number[$npclastgenerated] = rand(1,3)
  362. $npc_apt_bedroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/1bedroom/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  363. $npc_apt_kitchen[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/1bedroom/<<npc_apt_number[$npclastgenerated]>>/kitchen.jpg"></center>'
  364. $npc_apt_livingroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/1bedroom/<<npc_apt_number[$npclastgenerated]>>/living.jpg"></center>'
  365. $npc_apt_bathroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/1bedroom/<<npc_apt_number[$npclastgenerated]>>/bath.jpg"></center>'
  366. $npc_apt_hall[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/1bedroom/<<npc_apt_number[$npclastgenerated]>>/living.jpg"></center>'
  367. elseif npc_apt_type[$npclastgenerated] = 2:
  368. !! studio apartment
  369. npc_apt_number[$npclastgenerated] = rand(1,2)
  370. $npc_apt_bedroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/studio/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  371. $npc_apt_kitchen[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/studio/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  372. $npc_apt_livingroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/studio/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  373. $npc_apt_bathroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/studio/<<npc_apt_number[$npclastgenerated]>>/bath.jpg"></center>'
  374. $npc_apt_hall[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/studio/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  375. elseif npc_apt_type[$npclastgenerated] = 1:
  376. !! student dorm
  377. npc_apt_number[$npclastgenerated] = rand(1,3)
  378. $npc_apt_bedroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/1bedroom/<<npc_apt_number[$npclastgenerated]>>/bedroom.jpg"></center>'
  379. $npc_apt_kitchen[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/1bedroom/<<npc_apt_number[$npclastgenerated]>>/kitchen.jpg"></center>'
  380. $npc_apt_livingroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/1bedroom/<<npc_apt_number[$npclastgenerated]>>/living.jpg"></center>'
  381. $npc_apt_bathroom[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/1bedroom/<<npc_apt_number[$npclastgenerated]>>/bath.jpg"></center>'
  382. $npc_apt_hall[$npclastgenerated] = '<center><img <<$set_imgh>> src="images/shared/romance/lovers/homes/studio/<<npc_apt_number[$npclastgenerated]>>/living.jpg"></center>'
  383. end
  384. if npc_occupation[$npclastgenerated] = 1:
  385. $npc_occupation[$npclastgenerated] = 'cashier_supermarket'
  386. elseif npc_occupation[$npclastgenerated] = 2:
  387. $npc_occupation[$npclastgenerated] = 'cashier_liquor'
  388. elseif npc_occupation[$npclastgenerated] = 3:
  389. $npc_occupation[$npclastgenerated] = 'cashier_coffee'
  390. elseif npc_occupation[$npclastgenerated] = 4:
  391. $npc_occupation[$npclastgenerated] = 'barista'
  392. elseif npc_occupation[$npclastgenerated] = 5:
  393. $npc_occupation[$npclastgenerated] = 'fast_food'
  394. elseif npc_occupation[$npclastgenerated] = 6:
  395. $npc_occupation[$npclastgenerated] = 'taxi_driver'
  396. npc_car[$npclastgenerated] = 1
  397. elseif npc_occupation[$npclastgenerated] = 7:
  398. $npc_occupation[$npclastgenerated] = 'masseuse'
  399. elseif npc_occupation[$npclastgenerated] = 8:
  400. $npc_occupation[$npclastgenerated] = 'masseuse_sexual'
  401. elseif npc_occupation[$npclastgenerated] = 9:
  402. $npc_occupation[$npclastgenerated] = 'factory'
  403. elseif npc_occupation[$npclastgenerated] = 10:
  404. $npc_occupation[$npclastgenerated] = 'bartender'
  405. elseif npc_occupation[$npclastgenerated] = 11:
  406. $npc_occupation[$npclastgenerated] = 'mechanic'
  407. elseif npc_occupation[$npclastgenerated] = 12:
  408. $npc_occupation[$npclastgenerated] = 'line_cook'
  409. elseif npc_occupation[$npclastgenerated] = 13:
  410. $npc_occupation[$npclastgenerated] = 'waiter'
  411. elseif npc_occupation[$npclastgenerated] = 14:
  412. $npc_occupation[$npclastgenerated] = 'personal_trainer'
  413. elseif npc_occupation[$npclastgenerated] = 15:
  414. $npc_occupation[$npclastgenerated] = 'programmer'
  415. elseif npc_occupation[$npclastgenerated] = 16:
  416. $npc_occupation[$npclastgenerated] = 'criminal'
  417. !! npc_criminal_open determines whether or not they will hide their criminality from the player
  418. npc_criminal_open[$npclastgenerated] = rand(0,1)
  419. if rand(1,3) = 1:
  420. $npc_crime_type[$npclastgenerated] = 'drug_dealer'
  421. elseif rand(1,2) = 1:
  422. $npc_crime_type[$npclastgenerated] = 'enforcer'
  423. else
  424. $npc_crime_type[$npclastgenerated] = 'thief'
  425. end
  426. elseif npc_occupation[$npclastgenerated] = 17:
  427. $npc_occupation[$npclastgenerated] = 'businessman'
  428. elseif npc_occupation[$npclastgenerated] = 18:
  429. $npc_occupation[$npclastgenerated] = 'lawyer'
  430. elseif npc_occupation[$npclastgenerated] = 19:
  431. $npc_occupation[$npclastgenerated] = 'investment_banker'
  432. end
  433. !! ------------------------- lifestyle and personality choices ----------------------------------
  434. !! type of humour
  435. !! 1 - childish
  436. !! 2 - perverted
  437. !! 3 - intellectual/clever
  438. npc_humor[$npclastgenerated] = rand(0,3)
  439. !! if npc_smoker > 0: they smoke cigarettes
  440. npc_smoker[$npclastgenerated] = rand(0,2)
  441. !! if npc_mj = 1: they smoke weed
  442. !! if npc_mj = 2: they are a stoner
  443. !! 10% chance they will smoke weed at all, 5% chance total of being either kind of weed smoker
  444. if rand(1,10) = 10:
  445. npc_mj[$npclastgenerated] = rand(1,2)
  446. end
  447. !! we will skip addit for now, have a variable just for smoking
  448. !! npc_addit[$npclastgenerated] = rand(0,1)
  449. npc_door_pref[$npclastgenerated] = rand(0,2)
  450. if npc_door_pref[$npclastgenerated] = 1:
  451. !! they like going out for things and doing things outside
  452. $npc_door_pref[$npclastgenerated] = 'outdoor'
  453. elseif npc_door_pref[$npclastgenerated] = 2:
  454. !! they like more quiet activities and staying at home
  455. $npc_door_pref[$npclastgenerated] = 'indoor'
  456. end
  457. !! npc_goal is what they want out of a relationship
  458. !! 1 = just sex
  459. !! 2 = casual relationship
  460. !! 3 = serious relationship
  461. npc_goal[$npclastgenerated] = rand(1,3)
  462. !! npc_fidelity is how they will behave in a relationship
  463. !! 1-3 = will cheat on you
  464. !! 4-6 = will cheat on others with you
  465. !! 4 = cheats on them with you for the first time
  466. !! 5 = has been cheating and feels guilty
  467. !! 6 = is a serial cheater with no guilt
  468. !! 7 = is fine with open relationship
  469. !! 8-10 = will be faithful
  470. if npc_fidelity[$npclastgenerated] >= 8:
  471. $npc_fidelity[$npclastgenerated] = 'faithful'
  472. elseif npc_fidelity[$npclastgenerated] = 7:
  473. $npc_fidelity[$npclastgenerated] = 'open'
  474. elseif npc_fidelity[$npclastgenerated] >= 4:
  475. $npc_fidelity[$npclastgenerated] = 'seduced'
  476. elseif npc_fidelity[$npclastgenerated] >= 1:
  477. $npc_fidelity[$npclastgenerated] = 'cheater'
  478. end
  479. !! 4 = is a serial cheater with no guilt
  480. !! 5 = has been cheating and feels guilty
  481. !! 6 = cheats on them with you for the first time
  482. if npc_fidelity[$npclastgenerated] >= 4 and npc_fidelity[$npclastgenerated] <= 6: npc_girlfriend[$npclastgenerated] = rand(0,1)
  483. !! initialise lover length in days
  484. npc_lover_days[$npclastgenerated] = 0
  485. !! if npc_lover_keys = 1: the player has keys to their apartment and can access it whenever they want
  486. npc_lover_keys[$npclastgenerated] = 0
  487. !! quirk/trait generation
  488. if rand(0,2) > 0:
  489. if rand(0,1) = 1:
  490. npc_earlyriser[$npclastgenerated] = 1
  491. npc_latesleeper[$npclastgenerated] = 0
  492. else
  493. npc_latesleeper[$npclastgenerated] = 1
  494. npc_earlyriser[$npclastgenerated] = 0
  495. end
  496. end
  497. if rand(0,2) > 0:
  498. if rand(0,1) = 1:
  499. npc_generous[$npclastgenerated] = 1
  500. npc_selfish[$npclastgenerated] = 0
  501. else
  502. npc_selfish[$npclastgenerated] = 1
  503. npc_generous[$npclastgenerated] = 0
  504. end
  505. end
  506. if rand(0,2) > 0:
  507. if rand(0,1) = 1:
  508. npc_neat[$npclastgenerated] = 1
  509. npc_messy[$npclastgenerated] = 0
  510. else
  511. npc_messy[$npclastgenerated] = 1
  512. npc_neat[$npclastgenerated] = 0
  513. end
  514. end
  515. !! npc_gentle = 1: npc is likely to have a soft emotional and physical touch outside of sex
  516. !! npc_rough = 1: npc is likely to have a rough/aggressive emotional and physical touch outside of sex
  517. if rand(0,2) > 0:
  518. if rand(0,1) = 1:
  519. npc_gentle[$npclastgenerated] = 1
  520. npc_rough[$npclastgenerated] = 0
  521. else
  522. npc_gentle[$npclastgenerated] = 1
  523. npc_rough[$npclastgenerated] = 0
  524. end
  525. end
  526. !! npc_diligent = 1: npc is more methodical, doesn''t like to skip steps, and usuallly plays it safe
  527. !! npc_risktaker = 1: npc is more likely to take risks, such as never using a condom
  528. if rand(0,2) > 0:
  529. if rand(0,1) = 1:
  530. npc_diligent[$npclastgenerated] = 1
  531. npc_risktaker[$npclastgenerated] = 0
  532. else
  533. npc_diligent[$npclastgenerated] = 1
  534. npc_risktaker[$npclastgenerated] = 0
  535. end
  536. end
  537. !! if npc_argumentative = 1: they will get into more arguments with you about things
  538. !! it is also harder to persuade them
  539. npc_argumentative[$npclastgenerated] = rand(0,2)
  540. !! if npc_assertive = 1: they will know what they want
  541. !! if npc_assertive = -1: they will often ask what the player wants
  542. !! it is also harder to persuade them
  543. npc_assertive[$npclastgenerated] = rand(-1,1)
  544. !! how easy or difficult it is to persuade them into doing something
  545. npc_willpwr[$npclastgenerated] = rand(1,50)
  546. npc_willpwr[$npclastgenerated] += npc_argumentative[$npclastgenerated] * 10
  547. !! if npc_arrogant = 1: they will act arrogantly
  548. npc_arrogant[$npclastgenerated] = rand(-1,1)
  549. !! if npc_competitive = 1: they are overly competitive in contests against you or others
  550. npc_competitive[$npclastgenerated] = rand(-1,1)
  551. !! if npc_insecure = 1: they are insecure in their masculinity and won''t respond well to teasing
  552. npc_insecure[$npclastgenerated] = rand(-1,1)
  553. !! if npc_gymrat = 1: they like working out
  554. npc_gymrat[$npclastgenerated] = rand(-1,1)
  555. !! if npc_abusive = 1: the npc will be abusive
  556. npc_abusive[$npclastgenerated] = rand(-3,1)
  557. !! if npc_caretaker = 1: they will frequently show love through acts of service
  558. !! example: making you breakfast in bed
  559. if npc_selfish[$npclastgenerated] ! 1: npc_caretaker[$npclastgenerated] = rand(-3,1)
  560. !! ------------------------- sex related preferences ----------------------------------
  561. if rand(0,1) >= 1 and npc_risktaker[$npclastgenerated] = 1:
  562. !! if npc_condom_conscious = 1: they will use condoms but can be talked out of it
  563. !! if npc_condom_conscious = 2: they will always insist on using condoms unless you are in a committed relationship
  564. if npc_diligent[$npclastgenerated] = 1:
  565. npc_condom_conscious[$npclastgenerated] = rand(-1,2)
  566. else
  567. npc_condom_conscious[$npclastgenerated] = rand(-2,2)
  568. end
  569. elseif npc_diligent[$npclastgenerated] ! 1:
  570. !! if npc_no_condoms = 1: they have a preference for skipping condoms but can be talked into using one
  571. !! if npc_no_condoms = 2: they will never use a condom no matter what
  572. if npc_risktaker[$npclastgenerated] = 1:
  573. npc_no_condoms[$npclastgenerated] = rand(-1,2)
  574. else
  575. npc_no_condoms[$npclastgenerated] = rand(-2,2)
  576. end
  577. end
  578. !! Preferred sexual position
  579. npc_fav_pos[$npclastgenerated] = rand(1,7)
  580. if npc_fav_pos[$npclastgenerated] = 1:
  581. $npc_fav_pos[$npclastgenerated] = 'miss'
  582. elseif npc_fav_pos[$npclastgenerated] = 2:
  583. $npc_fav_pos[$npclastgenerated] = 'doggy'
  584. elseif npc_fav_pos[$npclastgenerated] = 3:
  585. $npc_fav_pos[$npclastgenerated] = 'cowgirl'
  586. elseif npc_fav_pos[$npclastgenerated] = 4:
  587. $npc_fav_pos[$npclastgenerated] = 'blowjob'
  588. elseif npc_fav_pos[$npclastgenerated] = 5:
  589. $npc_fav_pos[$npclastgenerated] = 'titjob'
  590. elseif npc_fav_pos[$npclastgenerated] = 6:
  591. $npc_fav_pos[$npclastgenerated] = '69'
  592. elseif npc_fav_pos[$npclastgenerated] = 7:
  593. $npc_fav_pos[$npclastgenerated] = 'anal'
  594. end
  595. !! npc_sex_speed determines whether they like it slow, steady, or fast and will cause them to select that speed more frequently
  596. !! 1 is slow, 2 is steady, 3 is fast/rough
  597. npc_sex_speed[$npclastgenerated] = rand(1,3)
  598. if npc_sex_speed[$npclastgenerated] = 1 and rand(1,3) = 1:
  599. !! npc has a tendency to be overly gentle and cautious
  600. npc_gentle_lover[$npclastgenerated] = 1
  601. elseif rand(1,3) = 1:
  602. !! npc prefers sex with dirty talk and perverted acts
  603. !! example: using spit instead of lube
  604. npc_dirty_lover[$npclastgenerated] = 1
  605. elseif rand(1,3) = 1:
  606. !! npc prefers romantic and sensual sex
  607. npc_sensual_lover[$npclastgenerated] = 1
  608. end
  609. !! Preferred cumming location
  610. !! 0 = no preference
  611. npc_cum_pref[$npclastgenerated] = rand(0,5)
  612. if npc_cum_pref[$npclastgenerated] = 1:
  613. $npc_cum_pref[$npclastgenerated] = 'creampie'
  614. elseif npc_cum_pref[$npclastgenerated] = 2:
  615. $npc_cum_pref[$npclastgenerated] = 'mouth'
  616. elseif npc_cum_pref[$npclastgenerated] = 3:
  617. $npc_cum_pref[$npclastgenerated] = 'facial'
  618. elseif npc_cum_pref[$npclastgenerated] = 4:
  619. $npc_cum_pref[$npclastgenerated] = 'tits'
  620. elseif npc_cum_pref[$npclastgenerated] = 5:
  621. $npc_cum_pref[$npclastgenerated] = 'pullout'
  622. end
  623. if rand(-3,1) = 1: npc_bukakke_fetish[$npclastgenerated] = 1
  624. !! npc_tit_pref determines an npcs preference for breast size
  625. !! if npc_tit_pref = 0: they don''t care
  626. !! if npc_tit_pref = 1: they like small tits (A or smaller)
  627. !! if npc_tit_pref = 2: they like medium sized tits (B to C)
  628. !! if npc_tit_pref = 3: they like busty girls (D to E)
  629. !! if npc_tit_pref = 4: they like oversized breasts (F+)
  630. npc_tit_pref[$npclastgenerated] = rand(0,4)
  631. !! npc_bush_pref determines an npcs preference for the player''s shaving habits
  632. !! if npc_bush_pref = 0: they don''t care
  633. !! if npc_bush_pref = 1: they prefer it cleanshaven
  634. !! if npc_bush_pref = 2: they like it trimmed or cleanshaven
  635. !! if npc_bush_pref = 3: they like it bushy
  636. npc_bush_pref[$npclastgenerated] = rand(0,3)
  637. !! $npc_fav_body_part
  638. if rand(1,4) = 1:
  639. $npc_fav_body_part[$npclastgenerated] = 'pussy'
  640. elseif rand(1,3) = 1:
  641. $npc_fav_body_part[$npclastgenerated] = 'tits'
  642. elseif rand(1,2) = 2:
  643. $npc_fav_body_part[$npclastgenerated] = 'ass'
  644. else
  645. $npc_fav_body_part[$npclastgenerated] = 'thighs'
  646. end
  647. !! if npc_sexdrive determines how likely the npc will be to engage in sexual behavior and how many times they can orgasm in a single sexual encounter
  648. if rand(1,10) <= 4:
  649. npc_sexdrive[$npclastgenerated] = rand(3,5)
  650. elseif rand(1,10) <= 3:
  651. npc_sexdrive[$npclastgenerated] = rand(1,3)
  652. !! elseif rand(1,10) <= 3:
  653. !! npc_sexdrive[$npclastgenerated] = rand(1,10)
  654. !! elseif rand(1,10) <= 2:
  655. !! npc_sexdrive[$npclastgenerated] = rand(7,10)
  656. else
  657. !!failsafe
  658. npc_sexdrive[$npclastgenerated] = rand(1,10)
  659. end
  660. !! if npc_sex_stamina determines how long they can last in bed without cumming
  661. if rand(1,10) <= 4:
  662. npc_sex_stamina[$npclastgenerated] = rand(3,5)
  663. elseif rand(1,10) <= 3:
  664. npc_sex_stamina[$npclastgenerated] = rand(1,3)
  665. !! elseif rand(1,10) <= 3:
  666. !! npc_sex_stamina[$npclastgenerated] = rand(1,10)
  667. !! elseif rand(1,10) <= 2:
  668. !! npc_sex_stamina[$npclastgenerated] = rand(7,10)
  669. else
  670. !!failsafe
  671. npc_sex_stamina[$npclastgenerated] = rand(1,10)
  672. end
  673. !! npc_spanker determines whether or not they''re into spanking during sex
  674. npc_sex_spanker[$npclastgenerated] = rand(-1,1)
  675. !! npc_childfree determines that they never want to have kids and will react poorly to pregnancy related topics
  676. npc_childfree[$npclastgenerated] = rand(-3,1)
  677. !! if npc_pussyeater = 1: they have a fetish for eating pussy
  678. !! if npc_pussyeater = -1: they refuse to eat pussy
  679. npc_pussyeater[$npclastgenerated] = rand(-1,1)
  680. !! if npc_cuddler = 1: the npc likes to cuddle
  681. npc_cuddler[$npclastgenerated] = rand(-1,1)
  682. !! if npc_cum_cannon = 1: the npc ejaculates particularly large loads
  683. npc_cum_cannon[$npclastgenerated] = rand(-3,1)
  684. !! if npc_two_pump = 1: the npc will always cum immediately in the first penetration act of sex
  685. npc_two_pump[$npclastgenerated] = rand(-5,1)
  686. !! ------------------------- date preferences ----------------------------------
  687. !! favorite kind of date
  688. if $npc_door_pref[$npclastgenerated] = 'indoor' and rand(1,3) < 3:
  689. if rand(1,5) = 1:
  690. $npc_fav_date[$npclastgenerated] = 'takeout_date'
  691. elseif rand(1,4) = 1:
  692. $npc_fav_date[$npclastgenerated] = 'coffee_date'
  693. elseif rand(1,3) = 1:
  694. $npc_fav_date[$npclastgenerated] = 'casual_meal'
  695. elseif rand(1,2) = 1:
  696. $npc_fav_date[$npclastgenerated] = 'netflix_chill'
  697. elseif rand(1,1) = 1:
  698. $npc_fav_date[$npclastgenerated] = 'movie_date'
  699. end
  700. elseif $npc_door_pref[$npclastgenerated] = 'outdoor' and rand(1,3) < 3:
  701. if rand(1,6) = 1:
  702. $npc_fav_date[$npclastgenerated] = 'picnic_date'
  703. elseif rand(1,5) = 1:
  704. $npc_fav_date[$npclastgenerated] = 'beach_date'
  705. elseif rand(1,4) = 1:
  706. $npc_fav_date[$npclastgenerated] = 'casual_meal'
  707. elseif rand(1,3) = 1:
  708. $npc_fav_date[$npclastgenerated] = 'fancy_meal'
  709. elseif rand(1,2) = 1:
  710. $npc_fav_date[$npclastgenerated] = 'amusement_park'
  711. elseif rand(1,1) = 1:
  712. $npc_fav_date[$npclastgenerated] = 'shopping_date'
  713. end
  714. else
  715. if rand(1,4) = 1:
  716. $npc_fav_date[$npclastgenerated] = 'picnic_date'
  717. elseif rand(1,4) = 1:
  718. $npc_fav_date[$npclastgenerated] = 'beach_date'
  719. elseif rand(1,3) = 1:
  720. $npc_fav_date[$npclastgenerated] = 'shopping_date'
  721. elseif rand(1,2) = 1:
  722. $npc_fav_date[$npclastgenerated] = 'fancy_meal'
  723. elseif rand(1,1) = 1:
  724. $npc_fav_date[$npclastgenerated] = 'amusement_park'
  725. elseif rand(1,4) = 1:
  726. $npc_fav_date[$npclastgenerated] = 'takeout_date'
  727. elseif rand(1,3) = 1:
  728. $npc_fav_date[$npclastgenerated] = 'casual_meal'
  729. elseif rand(1,2) = 1:
  730. $npc_fav_date[$npclastgenerated] = 'netflix_chill'
  731. elseif rand(1,1) = 1:
  732. $npc_fav_date[$npclastgenerated] = 'movie_date'
  733. end
  734. end
  735. !! npc_fav_genre determines what kind of media they like to consume
  736. if rand(1,10) > 7:
  737. $npc_fav_genre[$npclastgenerated] = 'action'
  738. elseif rand(1,7) > 4:
  739. $npc_fav_genre[$npclastgenerated] = 'horror'
  740. elseif rand(1,5) > 2:
  741. if rand(1,10) < npc_sexdrive[$npclastgenerated]:
  742. $npc_fav_genre[$npclastgenerated] = 'raunchy_comedy'
  743. else
  744. $npc_fav_genre[$npclastgenerated] = 'comedy'
  745. end
  746. elseif rand(1,2) = 1:
  747. $npc_fav_genre[$npclastgenerated] = 'drama'
  748. else
  749. $npc_fav_genre[$npclastgenerated] = 'romance'
  750. end
  751. !! Variable clean up
  752. killvar '$npctempgn'
  753. killvar 'npctempc1'
  754. killvar 'npctempc2'
  755. killvar 'npctempgsex'
  756. killvar '$npctempgn'
  757. killvar 'npctempgage'
  758. killvar '$npctemparrc'
  759. killvar 'temp_location'
  760. --- npcgeneratec ---------------------------------