npcgenext 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # npcgenext
  2. ! {Dick size and thickness generator. Outputs $npctempgn[4] for girth and npctempgn[5] for length. It takes a higher add number for a call that is supposed to be bigger than average.}
  3. if $args[0] = 'dick':
  4. i = 4
  5. tempfindadd = 2
  6. if args[1] > 0: tempfindadd += args[1]
  7. :dickaddloop
  8. ! {4 random 1-6 plus 2. A repeat 1 results in 1 being subtracted, a repeat 6 results in 1 being added. This gives a figure between 2 and 30.}
  9. tempfinddick = rand(1,6)
  10. tempfindadd += tempfinddick
  11. if tempfinddick = 1 and rand(1,6) = 1: tempfindadd -= 1
  12. if tempfinddick = 6 and rand(1,6) = 6: tempfindadd += 1
  13. i -= 1
  14. if i > 0:
  15. jump 'dickaddloop'
  16. end
  17. ! {It then outputs the data. Dick minimum is 6, so if it is less than that, it spits out 6.}
  18. if tempfindadd < 6:
  19. npctempgn[5] = 6
  20. else
  21. npctempgn[5] = tempfindadd
  22. end
  23. ! {It sets the girth based on the dick size}
  24. if tempfindadd < 9:
  25. tempfindgirth = 1
  26. elseif tempfindadd < 12:
  27. tempfindgirth = 2
  28. elseif tempfindadd < 15:
  29. tempfindgirth = 3
  30. elseif tempfindadd < 18:
  31. tempfindgirth = 4
  32. elseif tempfindadd < 21:
  33. tempfindgirth = 5
  34. elseif tempfindadd < 24:
  35. tempfindgirth = 6
  36. else
  37. tempfindgirth = 7
  38. end
  39. ! {Then it gives random variance with girth. 1 or 2 drops a size. 3 or 4 stays the same. 5 or 6 goes up a size. A 1 or a 6 gives a chance to go up or down a size again, for a max of 2 changes from the base girth from size.}
  40. tempfinddick = rand(1,6)
  41. if tempfinddick < 3:
  42. tempfindgirth -= 1
  43. if tempfinddick = 1:
  44. tempfinddick = rand(1,3)
  45. if tempfinddick = 1:
  46. tempfindgirth -= 1
  47. elseif tempfinddick = 3:
  48. tempfindgirth += 1
  49. end
  50. end
  51. elseif tempfinddick < 4:
  52. tempfindgirth += 1
  53. if tempfinddick = 6:
  54. tempfinddick = rand(1,3)
  55. if tempfinddick = 1:
  56. tempfindgirth -= 1
  57. elseif tempfinddick = 3:
  58. tempfindgirth += 1
  59. end
  60. end
  61. end
  62. ! {Then it returns the official girth.}
  63. if tempfindgirth < 2:
  64. $npctempgn[4] = 'skinny'
  65. elseif tempfindgirth = 2:
  66. $npctempgn[4] = 'slim'
  67. elseif tempfindgirth = 3:
  68. $npctempgn[4] = 'well proportioned'
  69. elseif tempfindgirth = 4:
  70. $npctempgn[4] = 'thicker than average'
  71. elseif tempfindgirth = 5:
  72. $npctempgn[4] = 'thick'
  73. elseif tempfindgirth = 6:
  74. $npctempgn[4] = 'massive'
  75. else
  76. $npctempgn[4] = 'monstrous'
  77. end
  78. end
  79. ! {Personality Generator. Outputs $npctempgn[6]}
  80. if $args[0] = 'pers':
  81. if rand(0,1) = 1:
  82. $npctempgn[6] = 'E'
  83. else
  84. $npctempgn[6] = 'I'
  85. end
  86. if rand(0,1) = 1:
  87. $npctempgn[6] += 'S'
  88. else
  89. $npctempgn[6] += 'N'
  90. end
  91. if rand(0,1) = 1:
  92. $npctempgn[6] += 'T'
  93. else
  94. $npctempgn[6] += 'F'
  95. end
  96. if rand(0,1) = 1:
  97. $npctempgn[6] += 'J'
  98. else
  99. $npctempgn[6] += 'P'
  100. end
  101. end
  102. ! {Venerial Disease Generator. requires a index.}
  103. if $args[0] = 'rstd':
  104. if $ARGS[1] = '': $ARGS[1] = 0
  105. $tempvan1 = $ARGS[1]
  106. if rand(0,100) = 100:
  107. tempvenerial = rand(1,7)
  108. tempfindN = mid($tempvan1, 2) & $tempfindL = mid($tempvan1,1,1)
  109. if $tempfindL = 'A':
  110. if tempvenerial = 1: Astat_herpes[tempfindN] = 1
  111. if tempvenerial = 2: Astat_syph[tempfindN] = 1
  112. if tempvenerial = 3: Astat_gon[tempfindN] = 1
  113. if tempvenerial = 4: Astat_chlam[tempfindN] = 1
  114. if tempvenerial = 5: Astat_Hiv[tempfindN] = 1
  115. if tempvenerial = 6: Astat_genwart[tempfindN] = 1
  116. if tempvenerial = 7: Astat_Thrush[tempfindN] = 1
  117. elseif $tempfindL = 'B':
  118. if tempvenerial = 1: Bstat_herpes[tempfindN] = 1
  119. if tempvenerial = 2: Bstat_syph[tempfindN] = 1
  120. if tempvenerial = 3: Bstat_gon[tempfindN] = 1
  121. if tempvenerial = 4: Bstat_chlam[tempfindN] = 1
  122. if tempvenerial = 5: Bstat_Hiv[tempfindN] = 1
  123. if tempvenerial = 6: Bstat_genwart[tempfindN] = 1
  124. if tempvenerial = 7: Bstat_Thrush[tempfindN] = 1
  125. elseif $tempfindL = 'C':
  126. if tempvenerial = 1: Cstat_herpes[tempfindN] = 1
  127. if tempvenerial = 2: Cstat_syph[tempfindN] = 1
  128. if tempvenerial = 3: Cstat_gon[tempfindN] = 1
  129. if tempvenerial = 4: Cstat_chlam[tempfindN] = 1
  130. if tempvenerial = 5: Cstat_Hiv[tempfindN] = 1
  131. if tempvenerial = 6: Cstat_genwart[tempfindN] = 1
  132. if tempvenerial = 7: Cstat_Thrush[tempfindN] = 1
  133. end
  134. end
  135. killvar 'tempvenerial'
  136. killvar '$tempfindL'
  137. killvar 'tempfindN'
  138. killvar '$tempvan1'
  139. end
  140. --- npcgenext ---------------------------------