boyStat 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # boyStat
  2. !!For setting the $boy, dick and $dick_girth with a single call for a npc
  3. !!Use with a gosub and match the ARGS[0] with the correct char
  4. !!A generated NPC would be gs 'boyStat', $npclastcalled
  5. !!Other NPCs may be called either by number if they are a static NPC, or by letter and number otherwise.
  6. !!eg. "gs 'boyStat', 56" would call for Roma. Likewise, "gs 'boyStat', 'A56'" also calls for Roma.
  7. !! A second argument calls for multiple partners. They are output as stats1, stats2, stats3, and stats4, for a total of 5 stats.
  8. if ($ARGS[0] = '' and ARGS[0] > 0) or mid($ARGS[0],1,1) < 10:
  9. if ARGS[0] > 0:
  10. npclastcalledn = ARGS[0]
  11. else
  12. npclastcalledn = $ARGS[0]
  13. end
  14. $npcboytemp = 'A' + npclastcalledn
  15. else
  16. $npcboytemp = $ARGS[0]
  17. !! {This error is for where something outside the range of possibility is specified. The calling code is broken. The exact thing specified will be announced.}
  18. if mid($npcboytemp,2,1) > 10:
  19. MSG 'There has been an error in the $boy passing code. Please contact a developer with what you were doing prior to receiving this message so the error may be fixed. Error type: Improper value for boyStat. Calling <<$ARGS[0]>>'
  20. $npcboytemp = 'D0'
  21. end
  22. end
  23. if mid($npcboytemp,1,1) = 'A':
  24. $npclastcalled = $npcboytemp
  25. npclastcalledn = mid($npcboytemp, 2)
  26. $bstemp[1] = $Astat_usedname[npclastcalledn]
  27. bstemp[2] = Astat_dick[npclastcalledn]
  28. $bstemp[3] = $Astat_thdick[npclastcalledn]
  29. bstemp[4] = Astat_sexskill[npclastcalledn]
  30. elseif mid($npcboytemp,1,1) = 'B':
  31. $npclastcalled = $npcboytemp
  32. npclastcalledn = mid($npcboytemp, 2)
  33. $bstemp[1] = $Bstat_usedname[npclastcalledn]
  34. bstemp[2] = Bstat_dick[npclastcalledn]
  35. $bstemp[3] = $Bstat_thdick[npclastcalledn]
  36. bstemp[4] = Bstat_sexskill[npclastcalledn]
  37. elseif mid($npcboytemp,1,1) = 'C':
  38. $npclastcalled = $npcboytemp
  39. npclastcalledn = mid($npcboytemp, 2)
  40. $bstemp[1] = $Cstat_usedname[npclastcalledn]
  41. bstemp[2] = Cstat_dick[npclastcalledn]
  42. $bstemp[3] = $Cstat_thdick[npclastcalledn]
  43. bstemp[4] = Cstat_sexskill[npclastcalledn]
  44. elseif mid($npcboytemp,1,1) = 'D':
  45. if mid($npcboytemp, 2) = 1:
  46. $bstemp[1] = 'small sized'
  47. bstemp[2] = 10
  48. $bstemp[3] = 'slim'
  49. elseif mid($npcboytemp, 2) = 2:
  50. $bstemp[1] = 'medium sized'
  51. bstemp[2] = 15
  52. $bstemp[3] = 'well proportioned'
  53. elseif mid($npcboytemp, 2) = 3:
  54. $bstemp[1] = 'large sized'
  55. bstemp[2] = 20
  56. $bstemp[3] = 'thicker than average'
  57. elseif mid($npcboytemp, 2) = 4:
  58. $bstemp[1] = 'huge sized'
  59. bstemp[2] = 25
  60. $bstemp[3] = 'thick'
  61. elseif mid($npcboytemp, 2) = 5:
  62. $bstemp[1] = 'giant sized'
  63. bstemp[2] = 30
  64. $bstemp[3] = 'massive'
  65. elseif mid($npcboytemp, 2) = 6:
  66. $bstemp[1] = 'humongous sized'
  67. bstemp[2] = 35
  68. $bstemp[3] = 'monstrous'
  69. else
  70. $bstemp[1] = 'horse sized'
  71. bstemp[2] = 40
  72. $bstemp[3] = 'monstrous'
  73. end
  74. end
  75. if $ARGS[1] = 'a':
  76. $boy1 = $npclastcalled
  77. $boydesc1 = $bstemp[1]
  78. dick1 = bstemp[2]
  79. $dick_girth1 = $bstemp[3]
  80. silavag1 = bstemp[4]
  81. elseif $ARGS[1] = 'b':
  82. $boy2 = $npclastcalled
  83. $boydesc2 = $bstemp[1]
  84. dick2 = bstemp[2]
  85. $dick_girth2 = $bstemp[3]
  86. silavag2 = bstemp[4]
  87. elseif $ARGS[1] = 'c':
  88. $boy3 = $npclastcalled
  89. $boydesc3 = $bstemp[1]
  90. dick3 = bstemp[2]
  91. $dick_girth3 = $bstemp[3]
  92. silavag3 = bstemp[4]
  93. elseif $ARGS[1] = 'd':
  94. $boy4 = $npclastcalled
  95. $boydesc4 = $bstemp[1]
  96. dick4 = bstemp[2]
  97. $dick_girth4 = $bstemp[3]
  98. silavag4 = bstemp[4]
  99. else
  100. i = ARGS[1]
  101. if mid($ARGS[1],1,1) < 10: i = $ARGS[1]
  102. $boy[i] = $npclastcalled
  103. $boydesc[i] = $bstemp[1]
  104. dick[i] = bstemp[2]
  105. $dick_girth[i] = $bstemp[3]
  106. silavag[i] = bstemp[4]
  107. end
  108. killvar 'bstemp'
  109. killvar '$bstemp'
  110. killvar 'i'
  111. --- boyStat ---------------------------------