123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- # npcgeneratec
- ! {This file expects npctempgsex which is the desired sex of the NPC to be generated, $npctempgn[0], which is the used name of the generated NPC. Rapist or Red Headed Stranger, for example. And npctempgage, which is the approximate age of the NPC in years. Everything is then randomly generated, and you are expected to fix the generated NPC yourself with any special items you need from it after it completes running. So sex, what you call them until they introduce themselves, and age.}
- !! {A example to use this would be gs 'npcgeneratec', 0, 'stranger', rand(18,45) which would generate a male with a used name of stranger between 18 and 45.}
- npctempgsex = ARGS[0]
- $npctempgn[0] = $ARGS[1]
- npctempgage = ARGS[2]
- !! {First we set the newly generated index number or overwrite the first blank number}
- !! {Checks to see if array 0 in the cleanup list is available for overwrite and makes the overwrite as that if so.}
- if mid($cemptyarray[0],1,1) = 'C':
- $npclastgenerated = $cemptyarray[0]
- killvar '$cemptyarray', 0
- else
- :npcgencsanityloop
- i = 0
- $npclastgenerated = 'C' + '<<carraynumber>>'
- $npctemparrc = 'C' + '<<(carraynumber)-(1)>>'
- if $npc_persType[$npctemparrc] = '' and carraynumber > 0:
- carraynumber -= 1
- i = 1
- elseif $npc_persType[$npclastgenerated] = '':
- i = 0
- else
- carraynumber += 1
- i = 1
- end
- if i = 1: jump 'npcgencsanityloop'
- end
- carraynumber += 1
- ! {moved up to here}
- npclastgeneratedn = mid($npclastgenerated, 2)
- ! {Now we need a random birthday based on the rough age given.}
- npctempc1[1] = year - npctempgage
- npctempc1[2] = rand(1,12)
- if npctempc1[2] = 4 or npctempc1[2] = 6 or npctempc1[2] = 9 or npctempc1[2] = 11:
- npctempc1[3] = rand(1,30)
- 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:
- npctempc1[3] = rand(1,31)
- elseif ((npctempc1[1] mod 4 = 0) and (npctempc1[1] mod 100 ! 0)) or (npctempc1[1] mod 400 = 0):
- npctempc1[3] = rand(1,29)
- else
- npctempc1[3] = rand(1,28)
- end
- npc_dob[$npclastgenerated] = npctempc1[1] * 10000
- npc_dob[$npclastgenerated] += (npctempc1[2] * 100)
- npc_dob[$npclastgenerated] += npctempc1[3]
- ! {we save the unique number of the npc, to be able to get the index of the array via arrpos}
- $npc_dob[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Now, we set the variable for the stat randomization as well as calculate chance of virginity.}
- if npctempgage < 18:
- npctempc2[0] = 30
- npctempc2[1] = rand(0,20)
- else
- npctempc2[0] = 50
- npctempc2[1] = rand(19,24)
- end
- ! {We flag virginity based on the results of the check. Overwrite it after generation if you want to be sure of status.}
- if npctempc2[1] < 20:
- npc_sexskill[$npclastgenerated] = 0
- end
- ! {index}
- $npc_sexskill[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Then we need to give them a name, and establish their official gender}
- if npctempgsex = 0:
- ! {Male}
- gs 'npcrnamefile', 'rusMale'
- gs 'npcgenext', 'dick'
- npc_gender[$npclastgenerated] = 0
- npc_spermpot[$npclastgenerated] = 10000
- $npc_thdick[$npclastgenerated] = $npctempgn[4]
- npc_dick[$npclastgenerated] = npctempgn[5]
- $npc_notes[$npclastgenerated] = 'A male.'
- npc_bust[$npclastgenerated] = 0
- elseif npctempgsex = 1:
- ! {Female}
- gs 'npcrnamefile', 'rusFemale'
- npc_gender[$npclastgenerated] = 1
- npc_spermpot[$npclastgenerated] = -1
- $npc_thdick[$npclastgenerated] = 'clitoris'
- npc_dick[$npclastgenerated] = rand(0,1)
- $npc_notes[$npclastgenerated] = 'A female.'
- !!0 - 60 curve around 22,5 (C/D cups)
- npc_bust[$npclastgenerated] = rand(0,15) + rand(0,15) + rand(0,15) & if rand(1,10) = 1: npc_bust[$npclastgenerated] += rand(0,15)
- elseif npctempgsex = 2:
- ! {HermFemale}
- gs 'npcrnamefile', 'rusFemale'
- gs 'npcgenext', 'dick'
- npc_gender[$npclastgenerated] = 1
- npc_spermpot[$npclastgenerated] = -1
- $npc_thdick[$npclastgenerated] = 'clitoris'
- npc_dick[$npclastgenerated] = npctempgn[5]
- $npc_notes[$npclastgenerated] = 'A female Hermaphrodite.'
- !!0 - 60 curve around 22,5 (C/D cups)
- npc_bust[$npclastgenerated] = rand(0,15) + rand(0,15) + rand(0,15)
- else
- ! {HermMale}
- gs 'npcrnamefile', 'rusMale'
- gs 'npcgenext', 'dick'
- npc_gender[$npclastgenerated] = 0
- npc_spermpot[$npclastgenerated] = 10000
- $npc_thdick[$npclastgenerated] = $npctempgn[4]
- npc_dick[$npclastgenerated] = npctempgn[5]
- $npc_notes[$npclastgenerated] = 'A male Hermaphrodite.'
- npc_bust[$npclastgenerated]= rand(0,10)
- end
- ! {index}
- $npc_gender[$npclastgenerated] = '<<npclastgeneratedn>>'
- $npc_spermpot[$npclastgenerated] = '<<npclastgeneratedn>>'
- npc_thdick[$npclastgenerated] = npclastgeneratedn
- $npc_dick[$npclastgenerated] = '<<npclastgeneratedn>>'
- npc_notes[$npclastgenerated] = npclastgeneratedn
- $npc_bust[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Then we set the names, and the stat high ends as determined earlier.}
- gs 'npcrnamefile', 'rusSur'
- $npc_firstname[$npclastgenerated] = $npctempgn[1]
- $npc_nickname[$npclastgenerated] = $npctempgn[2]
- $npc_lastname[$npclastgenerated] = $npctempgn[3]
- $npc_usedname[$npclastgenerated] = $npctempgn[0]
- npc_intel[$npclastgenerated] = rand(1,npctempc2)
- ! {index}
- npc_firstname[$npclastgenerated] = npclastgeneratedn
- npc_nickname[$npclastgenerated] = npclastgeneratedn
- npc_lastname[$npclastgenerated] = npclastgeneratedn
- npc_usedname[$npclastgenerated] = npclastgeneratedn
- $npc_intel[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Then we call out other stats}
- npc_drunk[$npclastgenerated] = 0
- ! {index}
- $npc_drunk[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {NPCs start with random horniness}
- npc_horny[$npclastgenerated] = rand(0,60)
- ! {index}
- $npc_horny[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Random attractiveness}
- npc_apprnc[$npclastgenerated] = rand(30,60)
- ! {index}
- $npc_apprnc[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Random skin quality and body hair}
- npc_height[$npclastgenerated] = 0
- ! {index}
- $npc_height[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Random pubic hair}
- npc_haircol[$npclastgenerated] = 0
- ! {index}
- $npc_haircol[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Starting at 0 quest state and love for the character, and slightly disliked.}
- npc_QW[$npclastgenerated]= 0
- npc_rel[$npclastgenerated] = 40
- npc_love[$npclastgenerated] = 0
- ! {index}
- $npc_QW[$npclastgenerated] = '<<npclastgeneratedn>>'
- $npc_rel[$npclastgenerated] = '<<npclastgeneratedn>>'
- $npc_love[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Start unemployed and unspecified location}
- npc_occupation[$npclastgenerated] = 0
- npc_outfit[$npclastgenerated] = 0
- ! {index}
- $npc_occupation[$npclastgenerated] = '<<npclastgeneratedn>>'
- $npc_outfit[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Unspecified dad and <<$npc_nickname[''A29'']>>, and picture. We could have a stock group of pictures and have it pick based on certain attribute types, but...}
- $npc_pic[$npclastgenerated] = 'xPICx'
- ! {index}
- npc_pic[$npclastgenerated] = npclastgeneratedn
- ! {STDs are not randomly given here. For characters with a STD, you need to gs npcgenext rstd. It will be expecting an npclastgeneratedn variable.}
- npc_herpes[$npclastgenerated] = 0
- npc_syth[$npclastgenerated] = 0
- npc_gon[$npclastgenerated] = 0
- npc_thrush[$npclastgenerated] = 0
- ! {index}
- $npc_herpes[$npclastgenerated] = '<<npclastgeneratedn>>'
- $npc_syth[$npclastgenerated] = '<<npclastgeneratedn>>'
- $npc_gon[$npclastgenerated] = '<<npclastgeneratedn>>'
- $npc_thrush[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Chemestry and clothing preference are unspecified}
- npc_style[$npclastgenerated] = 0
- ! {index}
- $npc_style[$npclastgenerated] = '<<npclastgeneratedn>>'
- ! {Personality is called up}
- gs 'npcgenext', 'pers'
- $npc_PersType[$npclastgenerated] = $npctempgn[6]
- ! {index}
- npc_PersType[$npclastgenerated] = npclastgeneratedn
- ! {Creating the DNA of the character. If it is someone specific, like father, mother, daughter, sone, etc. then should be overwritten.}
- $npc_dna[$npclastgenerated] = func('DNA','create')
- ! {index}
- npc_dna[$npclastgenerated] = npclastgeneratedn
- ! {Variables are cleaned up.}
- killvar '$npctempgn'
- killvar 'npctempc1'
- killvar 'npctempc2'
- killvar 'npctempgsex'
- killvar '$npctempgn'
- killvar 'npctempgage'
- killvar '$npctemparrc'
- --- npcgeneratec ---------------------------------
|