clothing.qsrc 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. # clothing
  2. $clothing_list_line = {
  3. !! a single line in a clothing list (wardrobe, etc)
  4. !! ARGS 0 - action type (wardrobe, sell, resize, store, forsale)
  5. !! ARGS 1 - clothing type
  6. !! ARGS 2 - clothing index
  7. if night_mode = 1:
  8. $bgcolor = iif($bgcolor='#0C0B11','#000000','#0C0B11')
  9. else
  10. $bgcolor = iif($bgcolor='#f3f4ee','#ffffff','#f3f4ee')
  11. end
  12. $RESULT = '<TR bgcolor='+$bgcolor+'>'
  13. if Enable_clothwidth > 0:
  14. clothing_temp = Enable_clothwidth - 1
  15. else
  16. clothing_temp = 75 & !clothing widdefault to 75
  17. end
  18. $RESULT +='<TD><a href="exec:gt ''clothing'', ''view_clothing_item'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>"><img src="<<FUNC(''$clothing_image'', $ARGS[1], ARGS[2])>>" width="<<clothing_temp>>"></a></TD>'
  19. killvar 'clothing_temp'
  20. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  21. if $ARGS[1] ! 'school' or ARGS[2] ! 6:
  22. $RESULT += '<TD>' + dyneval '$RESULT += <<$ARGS[1]>>H[<<ARGS[2]>>]' + '</TD>'
  23. if $ARGS[1] ! 'exercise' and $ARGS[1] ! 'coat' and CloStyle ! 5:
  24. $RESULT += '<TD>' + dyneval '$RESULT += <<$ARGS[1]>>B[<<ARGS[2]>>]' + '</TD>'
  25. else
  26. $RESULT += '<TD></TD>'
  27. end
  28. else
  29. $RESULT += '<TD colspan="2"></TD>'
  30. end
  31. if $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  32. gs 'clothing_descriptions'
  33. $RESULT += '<TD><<FUNC(''$short_description'', $ARGS[1])>> <<ARGS[2]>><br/><br/><<$description>></TD>'
  34. else
  35. $RESULT += '<TD>' + FUNC('$clothing_name', $ARGS[1], ARGS[2]) + '</TD>'
  36. end
  37. if CloBimbo = 1:
  38. $RESULT += '<TD>Yes</TD>'
  39. else
  40. $RESULT += '<TD>No</TD>'
  41. end
  42. if CloStyle = 4:
  43. $RESULT += '<TD>Yes</TD>'
  44. else
  45. $RESULT += '<TD>No</TD>'
  46. end
  47. $RESULT += '<TD><a href="exec:gt ''clothing'', ''view_clothing_item'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">View</a>'
  48. if $ARGS[0] ! 'sell' and $ARGS[0] ! 'resize':
  49. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and $ARGS[1] = 'school' and ARGS[2] = 6:
  50. $RESULT += ' <a href="exec:gs ''clothing'', ''wear'', ''<<$ARGS[1]>>'', <<ARGS[2]>> & gt ''clothing'', ''view_clothing_list'', ''wardrobe''">Wear</a></TD>'
  51. elseif ($ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear') and dyneval('RESULT = <<$ARGS[1]>>H[<<ARGS[2]>>]') > 0:
  52. if $ARGS[1] ! 'exercise' and CloStyle ! 5 and (dyneval('RESULT = <<$ARGS[1]>>B[<<ARGS[2]>>]') < (pcs_hips - 8) or dyneval('RESULT = <<$ARGS[1]>>B[<<ARGS[2]>>]') > (pcs_hips + 8)) or (ARRPOS('$CloLosTyp', $ARGS[1]) ! -1 and ARRPOS('CloLosNum',ARGS[2]) ! -1):
  53. $RESULT += '</TD>'
  54. else
  55. $RESULT += ' <a href="exec:gs ''clothing'', ''wear'', ''<<$ARGS[1]>>'', <<ARGS[2]>> & gt ''clothing'', ''view_clothing_list'', ''wardrobe''">Wear</a></TD>'
  56. end
  57. else
  58. $RESULT += '</TD>'
  59. end
  60. $RESULT += '<TD>'
  61. if cloc ! 1:$RESULT += ' <a href="exec:gt ''clothing'', ''dest1'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">Storage</a><BR>'
  62. if cloc ! 0:$RESULT += ' <a href="exec:gt ''clothing'', ''dest0'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">Wardrobe</a><BR>'
  63. if $ARGS[1] ! 'school' or ARGS[2] ! 6:
  64. if cloc ! 2:$RESULT += ' <a href="exec:gt ''clothing'', ''dest2'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">Unwanted</a>'
  65. end
  66. $RESULT += '</TD>'
  67. end
  68. }
  69. !!cloc, 0 = wardrobe, 1 = storage, 2 = unwanted
  70. if $ARGS[0] = 'dest0':
  71. *clr
  72. dynamic '<<$ARGS[2]>>S[<<ARGS[3]>>] = 0'
  73. gt 'clothing', 'view_clothing_list', $ARGS[1]
  74. end
  75. if $ARGS[0] = 'dest1':
  76. *clr
  77. dynamic '<<$ARGS[2]>>S[<<ARGS[3]>>] = 1'
  78. gt 'clothing', 'view_clothing_list', $ARGS[1]
  79. end
  80. if $ARGS[0] = 'dest2':
  81. *clr
  82. dynamic '<<$ARGS[2]>>S[<<ARGS[3]>>] = 2'
  83. gt 'clothing', 'view_clothing_list', $ARGS[1]
  84. end
  85. if $ARGS[0] = 'view_clothing_list':
  86. !! ARGS 0 - view_clothing_list
  87. !! ARGS 1 - action type (wardrobe, sell, resize, store, unwanted)
  88. !! ARGS 2 - Shop name (kats, moncheri, gm, fashionista, sexshop, exhibitshop, dolls, sports)
  89. if $ARGS[1] = 'wardrobe':
  90. '<h3><center><b><font color="maroon">Wardrobe list</font></b></center></h3>'
  91. elseif $ARGS[1] = 'store':
  92. '<h3><center><b><font color="maroon">Stored clothing list</font></b></center></h3>'
  93. elseif $ARGS[1] = 'unwanted':
  94. '<h3><center><b><font color="maroon">Unwanted clothing list</font></b></center></h3>'
  95. end
  96. if $ARGS[2] = 'gm':
  97. !'<center><b><font color="maroon">Viewing clothes from G&M</font></b></center>'
  98. '<center><img src="images/locations/city/citycenter/mall/GM.png"></center>'
  99. elseif $ARGS[2] = 'kats':
  100. !'<center><b><font color="maroon">Viewing clothes from PussyKats</font></b></center>'
  101. '<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  102. elseif $ARGS[2] = 'fashionista':
  103. !'<center><b><font color="maroon">Viewing clothes from Fashionista</font></b></center>'
  104. '<center><img src="images/locations/city/citycenter/mall/fashionistat.png"></center>'
  105. elseif $ARGS[2] = 'moncheri':
  106. !'<center><b><font color="maroon">Viewing clothes from Mon Cheri</font></b></center>'
  107. '<center><img src="images/locations/city/citycenter/mall/moncheri.png"></center>'
  108. elseif $ARGS[2] = 'sexshop':
  109. !'<center><b><font color="maroon">Viewing clothes from the sex shop</font></b></center>'
  110. '<center><img src="images/locations/city/citycenter/sexshop/shop_name.png"></center>'
  111. elseif $ARGS[2] = 'exhibitshop':
  112. !'<center><b><font color="maroon">Viewing clothes from the Exhibitionist shop</font></b></center>'
  113. '<center><img src="images/locations/oldtown/exhibitshop/shop_name.png"></center>'
  114. elseif $ARGS[2] = 'dolls':
  115. !'<center><b><font color="maroon">Viewing clothes from Patchwork Dolls</font></b></center>'
  116. '<center><img src="images/locations/city/island/dolls.png"></center>'
  117. elseif $ARGS[2] = 'sports':
  118. !'<center><b><font color="maroon">Viewing sportswear from Danilovich</font></b></center>'
  119. '<center><img src="images/locations/city/citycenter/mall/sports.png"></center>'
  120. else
  121. '<center><b><font color="maroon">Click on a shop name to view clothes from that shop</font></b></center>'
  122. end
  123. *nl
  124. if $ARGS[1] ! 'sell':
  125. $clothing_header = '<center><table border=1>'
  126. if $ARGS[1] ! 'wardrobe': $clothing_header += '<TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe'', ''<<$ARGS[2]>>''">Switch to wardrobe list</a></TH>'
  127. if $ARGS[1] ! 'store': $clothing_header += '<TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''store'', ''<<$ARGS[2]>>''">Switch to stored clothing list</a></TH>'
  128. if $ARGS[1] ! 'unwanted': $clothing_header += '<TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''unwanted'', ''<<$ARGS[2]>>''">Switch to unwanted clothing list</a></TH>'
  129. $clothing_header += '<TH><a href="exec:gt ''clothing_QV'', ''list''">Switch to icons</a></TH></center>'
  130. $clothing_header
  131. if $ARGS[1] = 'wardrobe':
  132. '<center>These are the clothes that are currently available for you to wear.</center><br>'
  133. elseif $ARGS[1] = 'store':
  134. '<center>These are the clothes you have stored that do not show up in your wardrobe list and cannot be sold at the market.</center><br>'
  135. elseif $ARGS[1] = 'unwanted':
  136. '<center>These are the clothes you''ve marked to be sold at the market.</center><br>'
  137. end
  138. end
  139. ! if $ARGS[1] = 'wardrobe':
  140. ! cloc = 0
  141. ! if $clothingworntype ! 'nude':act 'Strip':gs 'clothing', 'strip' & gt $loc, $metka
  142. ! end
  143. if $wloc = 'wardrobe':
  144. act 'Return': gt 'wardrobe', 'start'
  145. else
  146. act 'Leave': gt $loc, $metka
  147. end
  148. if $ARGS[2] = '':
  149. '<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''gm''"><img src="images/locations/city/citycenter/mall/GM.png"></a></center>'
  150. if ARRSIZE('average') > 0:'<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''kats''"><img src="images/locations/city/citycenter/mall/pussycat.png"></a></center>'
  151. if ARRSIZE('expensive') > 0:'<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''fashionista''"><img src="images/locations/city/citycenter/mall/fashionistat.png"></a></center>'
  152. if ARRSIZE('formal') > 0:'<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''moncheri''"><img src="images/locations/city/citycenter/mall/moncheri.png"></a></center>'
  153. if ARRSIZE('fetish') > 0 or ARRSIZE('burlesque') > 0:'<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''sexshop''"><img src="images/locations/city/citycenter/sexshop/shop_name.png"></a></center>'
  154. if ARRSIZE('exhibit') > 0:'<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''exhibitshop''"><img src="images/locations/oldtown/exhibitshop/shop_name.png"></a></center>'
  155. if ARRSIZE('alternative') > 0:'<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''dolls''"><img src="images/locations/city/island/dolls.png"></a></center>'
  156. if ARRSIZE('exercise') > 0:'<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''sports''"><img src="images/locations/city/citycenter/mall/sports.png"></a></center>'
  157. else
  158. $bgcolor='#f3f4ee'
  159. if $ARGS[1] = 'sell':
  160. '<table border=0 cellspacing=0 cellpadding=5><TH></TH><TH>Strength</TH><TH>Hip size</TH><TH>Description</TH><TH>Bimbo</TH><TH>Prostitute</TH><TH>Actions</TH>'
  161. else
  162. '<table border=0 cellspacing=0 cellpadding=5><TH></TH><TH>Strength</TH><TH>Hip size</TH><TH>Description</TH><TH>Bimbo</TH><TH>Prostitute</TH><TH>Actions</TH><TH>Move to</TH>'
  163. end
  164. if $ARGS[1] = 'store':
  165. cloc = 1
  166. elseif $ARGS[1] = 'unwanted':
  167. cloc = 2
  168. else
  169. cloc = 0
  170. end
  171. if $ARGS[2] = 'gm':
  172. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and schoolS[6] = cloc and ($clothingworntype ! 'school' or clothingwornnumber ! 6):*P dyneval($clothing_list_line, $ARGS[1], 'school', 6)
  173. i = 1
  174. :loopcheap
  175. if cheap[i] = 1 and cheapS[i] = cloc and ($clothingworntype ! 'cheap' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'cheap', i)
  176. i += 1
  177. if i <= ARRSIZE('cheap'):jump 'loopcheap'
  178. i = 1
  179. :loopoffice
  180. if office[i] = 1 and officeS[i] = cloc and ($clothingworntype ! 'office' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'office', i)
  181. i += 1
  182. if i <= ARRSIZE('office'):jump 'loopoffice'
  183. i = 1
  184. :loopschool
  185. if school[i] = 1 and schoolS[i] = cloc and ($clothingworntype ! 'school' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'school', i)
  186. i += 1
  187. if i = 6: i = 7
  188. if i <= ARRSIZE('school'):jump 'loopschool'
  189. i = 1
  190. :loopuniform
  191. if uniform[i] = 1 and uniformS[i] = cloc and ($clothingworntype ! 'uniform' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'uniform', i)
  192. i += 1
  193. if i <= ARRSIZE('uniform'):jump 'loopuniform'
  194. i = 1
  195. :loopswimwear
  196. if swimwear[i] = 1 and swimwearS[i] = cloc :*P dyneval($clothing_list_line, $ARGS[1], 'swimwear', i)
  197. i += 1
  198. if i <= ARRSIZE('swimwear'):jump 'loopswimwear'
  199. act 'Choose a different store': gt 'clothing', 'view_clothing_list', $ARGS[1]
  200. end
  201. if $ARGS[2] = 'kats':
  202. i = 1
  203. :loopaverage
  204. if average[i] = 1 and averageS[i] = cloc and ($clothingworntype ! 'average' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'average', i)
  205. i += 1
  206. if i <= ARRSIZE('average'):jump 'loopaverage'
  207. act 'Choose a different store': gt 'clothing', 'view_clothing_list', $ARGS[1]
  208. end
  209. if $ARGS[2] = 'fashionista':
  210. i = 1
  211. :loopexpensive
  212. if expensive[i] = 1 and expensiveS[i] = cloc and ($clothingworntype ! 'expensive' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'expensive', i)
  213. i += 1
  214. if i <= ARRSIZE('expensive'):jump 'loopexpensive'
  215. act 'Choose a different store': gt 'clothing', 'view_clothing_list', $ARGS[1]
  216. end
  217. if $ARGS[2] = 'moncheri':
  218. i = 1
  219. :loopformal
  220. if formal[i] = 1 and formalS[i] = cloc and ($clothingworntype ! 'formal' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'formal', i)
  221. i += 1
  222. if i <= ARRSIZE('formal'):jump 'loopformal'
  223. act 'Choose a different store': gt 'clothing', 'view_clothing_list', $ARGS[1]
  224. end
  225. if $ARGS[2] = 'sexshop':
  226. i = 1
  227. :loopfetish
  228. if fetish[i] = 1 and fetishS[i] = cloc and ($clothingworntype ! 'fetish' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'fetish', i)
  229. i += 1
  230. if i <= ARRSIZE('fetish'):jump 'loopfetish'
  231. act 'Choose a different store': gt 'clothing', 'view_clothing_list', $ARGS[1]
  232. i = 1
  233. :loopburlesque
  234. if burlesque[i] = 1 and burlesqueS[i] = cloc and ($clothingworntype ! 'burlesque' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'burlesque', i)
  235. i += 1
  236. if i <= ARRSIZE('burlesque'):jump 'loopburlesque'
  237. act 'Choose a different store': gt 'clothing', 'view_clothing_list', $ARGS[1]
  238. end
  239. if $ARGS[2] = 'exhibitshop':
  240. i = 1
  241. :loopexhibit
  242. if exhibit[i] = 1 and exhibitS[i] = cloc and ($clothingworntype ! 'exhibit' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exhibit', i)
  243. i += 1
  244. if i <= ARRSIZE('exhibit'):jump 'loopexhibit'
  245. act 'Choose a different store': gt 'clothing', 'view_clothing_list', $ARGS[1]
  246. end
  247. if $ARGS[2] = 'dolls':
  248. i = 1
  249. :loopalternative
  250. if alternative[i] = 1 and alternativeS[i] = cloc and ($clothingworntype ! 'alternative' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'alternative', i)
  251. i += 1
  252. if i <= ARRSIZE('alternative'):jump 'loopalternative'
  253. act 'Choose a different store': gt 'clothing', 'view_clothing_list', $ARGS[1]
  254. end
  255. if $ARGS[2] = 'sports':
  256. i = 1
  257. :loopexercise
  258. if exercise[i] = 1 and exerciseS[i] = cloc and ($clothingworntype ! 'exercise' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exercise', i)
  259. i += 1
  260. if i <= ARRSIZE('exercise'):jump 'loopexercise'
  261. act 'Choose a different store': gt 'clothing', 'view_clothing_list', $ARGS[1]
  262. end
  263. '</table>'
  264. end
  265. end
  266. if $ARGS[0] = 'view_clothing_item':
  267. !! ARGS 0 - view_clothing_item
  268. !! ARGS 1 = action type (wardrobe, shop, sell, resize)
  269. !! ARGS 2 - clothing type
  270. !! ARGS 3 - clothing index
  271. !! ARGS 4 - price for shop
  272. cla
  273. '<center><img src="<<FUNC(''$clothing_image'', $ARGS[2], ARGS[3])>>"></center>'
  274. gs 'clothing_attributes', $ARGS[2], ARGS[3]
  275. $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  276. $RESULT += '<<ARGS[3]>>'
  277. '<<$RESULT>>'
  278. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  279. gs 'clothing_descriptions'
  280. '<<$description>>'
  281. else
  282. FUNC('$clothing_name', $ARGS[2], ARGS[3])
  283. end
  284. if CloBimbo = 1:'This item is considered bimbo clothing.'
  285. if CloStyle = 4:'This outfit can be used for prostitution.'
  286. if CloInhibit + 10 > pcs_inhib and CloInhibit <= pcs_inhib: 'You find this outfit more revealing than you are completely comfortable with but that makes it quite exciting too.'
  287. if $ARGS[2] = 'uniform':
  288. if CloStyle2 = 1:
  289. 'This outfit is considered to be a maid uniform.'
  290. elseif CloStyle2 = 3:
  291. 'This is a stripper outfit.'
  292. else
  293. 'This outfit is a server uniform, suitable for jobs that require one.'
  294. end
  295. end
  296. if $ARGS[2] = 'school':
  297. if CloSkirtShortness < 5 and CloThinness < 5 and CloBra = 0:
  298. '<font color="blue">This uniform complies with the school regulations on skirt length.</font>'
  299. elseif CloSkirtShortness = 5 and CloThinness < 5 and CloBra = 0:
  300. '<font color="blue">This uniform slightly breaches the school regulations on skirt length.</font>'
  301. else
  302. '<font color="red">This uniform makes a mockery of the school uniform regulations.</font>'
  303. end
  304. end
  305. if $ARGS[1] ! 'shop' and ($ARGS[2] ! 'school' or ARGS[3] ! 6):
  306. $RESULT = '(strength '
  307. dynamic '$RESULT += <<$ARGS[2]>>H[<<ARGS[3]>>]'
  308. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  309. $RESULT += ', hip size '
  310. dynamic '$RESULT += <<$ARGS[2]>>B[<<ARGS[3]>>]'
  311. end
  312. $RESULT += ')'
  313. '<<$RESULT>>'
  314. end
  315. if $ARGS[1] = 'shop':
  316. if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
  317. 'You already own this item.'
  318. act 'Leave': gt $loc, $metka
  319. else
  320. if $ARGS[2] = 'coat' and ARGS[3] = 5:
  321. price = ARGS[4]
  322. else
  323. price = ('<<ARGS[4]>>' * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]]) * 3 / 2
  324. price = price / 50 * 50
  325. end
  326. 'Price: <<price>> <b>₽</b>'
  327. act 'Leave': gt $loc, $metka
  328. if CloInhibit > pcs_inhib:
  329. 'You don''t feel daring enough to wear an outfit this revealing and can''t bring yourself to buy it.'
  330. elseif money >= Price:
  331. act 'Buy':
  332. h = 0
  333. if CloStyle = 2:h = 10
  334. if CloStyle = 5:h = 20
  335. h += (3 * CloQuality)
  336. money -= price
  337. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  338. if $ARGS[2] = 'cheap' or $ARGS[2] = 'office':
  339. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 70 + <<h>>'
  340. elseif $ARGS[2] = 'average':
  341. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 90 + <<h>>'
  342. elseif $ARGS[2] = 'formal':
  343. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 15 + <<h>>'
  344. elseif $ARGS[2] = 'fetish' or $ARGS[2] = 'exhibit' or $ARGS[2] = 'burlesque':
  345. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 35 + <<h>>'
  346. elseif $ARGS[2] = 'school' or $ARGS[2] = 'uniform':
  347. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 120 + <<h>>'
  348. elseif $ARGS[2] = 'exercise':
  349. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 100 + <<h>>'
  350. elseif $ARGS[2] = 'coat':
  351. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 250 + <<h>>'
  352. else
  353. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 60 + <<h>>'
  354. end
  355. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  356. dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
  357. gt $loc, $metka
  358. end
  359. else
  360. 'You cannot afford this outfit.'
  361. end
  362. end
  363. elseif $ARGS[1] = 'wardrobe':
  364. act 'Leave in closet':gt 'clothing', 'view_clothing_list', $ARGS[1]
  365. if $ARGS[2] ! 'school' or ARGS[3] ! 6:
  366. !! if the clothing is worn out
  367. if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') <= 0:
  368. 'This item is worn and is not suitable for further wear.'
  369. if pcs_sewng >= 60 and tkan > 0:
  370. cla
  371. 'You can repair this thanks to your sewing skill.'
  372. act 'Repair item':
  373. if rand (1, 100) < 30:
  374. cla
  375. tkan -= 1
  376. minut += 30
  377. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] += 30'
  378. 'You spend 30 minutes fixing the outfit.'
  379. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  380. else
  381. cla
  382. tkan += 3
  383. minut += 30
  384. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
  385. 'Despite your skill with a needle, this outfit has proved beyond repair. All that is left of it is only good for your cloth pile.'
  386. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  387. end
  388. end
  389. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  390. end
  391. exit
  392. end
  393. !! if the clothing is a type that checks for hip size
  394. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  395. !! if the hipsize is too far from your hipsize
  396. dynamic 'RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]'
  397. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  398. if RESULT < pcs_hips:
  399. 'This item is too small for you to wear.'
  400. else
  401. 'This item is too large for you to wear.'
  402. end
  403. if pcs_sewng >= 60 and tkan > 0:
  404. cla
  405. 'You can resize this thanks to your sewing skill.'
  406. act 'Resize item':
  407. cla
  408. tkan -= 1
  409. minut += 30
  410. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  411. 'You spend 30 minutes resizing the outfit.'
  412. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  413. end
  414. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  415. end
  416. exit
  417. end
  418. end
  419. end
  420. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  421. if CloInhibit > pcs_inhib:
  422. 'You don''t feel daring enough to wear an outfit this revealing.'
  423. elseif ARRPOS('$CloLosTyp', $ARGS[2]) ! -1 and ARRPOS('CloLosNum',ARGS[3]) ! -1 :
  424. 'You lost these clothes somewhere, maybe you can find them again?.'
  425. else
  426. act 'Wear':
  427. gs 'clothing', 'wear', $ARGS[2], ARGS[3]
  428. gt 'clothing', 'view_clothing_list', $ARGS[1]
  429. end
  430. end
  431. end
  432. elseif $ARGS[1] = 'store' or $ARGS[1] = 'unwanted':
  433. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  434. if $ARGS[2] ! 'coat':
  435. act 'Move back to wardrobe':
  436. dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
  437. gt 'clothing', 'view_clothing_list', $ARGS[1]
  438. end
  439. end
  440. elseif $ARGS[1] = 'sell':
  441. act 'Keep item':gt 'clothing', 'view_clothing_list', $ARGS[1]
  442. !! value is based on the strength remaining
  443. dynamic 'RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]'
  444. if RESULT > 45:
  445. 'You can sell this item for 500 <b>₽</b>.'
  446. act 'Sell':
  447. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  448. money += 500
  449. gt 'clothing', 'view_clothing_list', $ARGS[1]
  450. end
  451. elseif RESULT > 30:
  452. 'You can sell this item for 300 <b>₽</b>.'
  453. act 'Sell':
  454. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  455. money += 300
  456. gt 'clothing', 'view_clothing_list', $ARGS[1]
  457. end
  458. elseif RESULT > 0:
  459. 'You can sell this item for 100 <b>₽</b>.'
  460. act 'Sell':
  461. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  462. money += 100
  463. gt 'clothing', 'view_clothing_list', $ARGS[1]
  464. end
  465. else
  466. 'This item is too worn to have any sale value.'
  467. act 'Throw it away':
  468. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  469. gt 'clothing', 'view_clothing_list', $ARGS[1]
  470. end
  471. end
  472. elseif $ARGS[1] = 'resize':
  473. act 'Leave item alone':gt 'clothing', 'view_clothing_list', $ARGS[1]
  474. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  475. if dyneval('RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]') ! pcs_hips and money >= 500:
  476. 'You can have this resized for 500 <b>₽</b>.'
  477. act 'Resize':
  478. money -= 500
  479. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = pcs_hips'
  480. gt 'clothing', 'view_clothing_list', $ARGS[1]
  481. end
  482. end
  483. end
  484. end
  485. end
  486. if $ARGS[0] = 'strip':
  487. !$ARGS[1] = location when stripping outdoors
  488. if $clothingworntype = 'nude': exit
  489. cumspclnt = 6
  490. gs 'cum_cleanup'
  491. if cloth_vid = 1:
  492. last_vid = 1
  493. else
  494. last_vid = 0
  495. end
  496. if $clothingworntype = 'school':schtype = clothingwornnumber
  497. if $ARGS[1] ! '' :
  498. DYNAMIC '$CloLos<<$clothingworntype>>[<<clothingwornnumber>>]=<<$ARGS[1]>>'
  499. $CloLosLoc[] = $ARGS[1]
  500. $CloLosTyp[$ARGS[1]] = $clothingworntype
  501. CloLosNum[$ARGS[1]] = clothingwornnumber
  502. CloLosDay[$ARGS[1]] = daystart
  503. KILLVAR '$lastwornclothingtype'
  504. KILLVAR 'lastwornclothingnumber'
  505. else
  506. $lastwornclothingtype = $clothingworntype
  507. lastwornclothingnumber = clothingwornnumber
  508. end
  509. $clothingworntype = 'nude'
  510. clothingwornnumber = 0
  511. CloQuality = 0
  512. CloThinness = 0
  513. CloTopCut = 0
  514. CloBra = 0
  515. CloPantsShortness = 0
  516. CloSkirtShortness = 0
  517. CloPanties = 0
  518. CloStyle = 0
  519. CloStyle2 = 0
  520. CloBimbo = 0
  521. PShoQuaility = 0
  522. PShoCut = 0
  523. PShoHeels = 0
  524. PShoStyle = 0
  525. PCloQuality = 0
  526. PCloThinness = 0
  527. PCloTopCut = 0
  528. PCloPants = 0
  529. PCloSkirt = 0
  530. PCloStyle = 0
  531. PCloStyle2 = 0
  532. PCloBimbo = 0
  533. PCloInhibit = 0
  534. PXCloThinness = 0
  535. PXCloTopCut = 0
  536. PXCloSkirtShortness = 0
  537. PXCloPantsShortness = 0
  538. glamur = 0
  539. sport = 0
  540. ski = 0
  541. ofclo = 0
  542. sexual = 0
  543. odevnesh = 0
  544. ! WD: Bimbo look
  545. cloth_vid = 0
  546. exhibiHideNewCloth = 0
  547. end
  548. if $ARGS[0] = 'recover_lost_clothes':
  549. !$ARGS[1] = location
  550. !ARGS[2] = 1 : wear the clothes, ARGS[2] = 2 : Return to shop (lost FOREVAH!)
  551. $cloLoc = $ARGS[1]
  552. cloAction = ARGS[2]
  553. $clothType = $CloLosTyp[$cloLoc]
  554. clothNumber = CloLosNum[$cloLoc]
  555. dayLost = CloLosDay[$cloLoc]
  556. DYNAMIC 'KILLVAR ''$CloLos<<$clothingworntype>>'', <<clothingwornnumber>>'
  557. findLocInd = ARRPOS('$CloLosTyp', $clothType)
  558. KILLVAR '$CloLosTyp', findLocInd
  559. findLocInd = ARRPOS('CloLosNum', clothNumber)
  560. KILLVAR 'CloLosNum', findLocInd
  561. findLocInd = ARRPOS('CloLosDay', CloLosDay[$cloLoc])
  562. KILLVAR 'CloLosDay', findLocInd
  563. findLocInd = ARRPOS('$CloLosLoc', $cloLoc)
  564. KILLVAR '$CloLosLoc', findLocationIndex
  565. KILLVAR 'findLocInd'
  566. if cloAction = 1:
  567. gs 'clothing', 'wear', $clothType, clothNumber
  568. elseif cloAction = 2 :
  569. dynamic $clothType + 'S[<<clothNumber>>] = 1'
  570. end
  571. KILLVAR '$cloLoc'
  572. KILLVAR 'cloAction'
  573. KILLVAR '$clothType'
  574. KILLVAR 'clothNumber'
  575. end
  576. if $ARGS[0] = 'wear':
  577. !! ARGS 0 - action
  578. !! ARGS 1 - clothing type name
  579. !! ARGS 2 - clothing index
  580. gs 'clothing', 'strip'
  581. $clothingworntype = $ARGS[1]
  582. clothingwornnumber = ARGS[2]
  583. dynamic $ARGS[1] + 'W[<<ARGS[2]>>] = 1'
  584. if $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  585. gs 'clothing_descriptions'
  586. else
  587. FUNC('$clothing_name', $ARGS[1], ARGS[2])
  588. end
  589. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  590. dynamic '<<$ARGS[1]>>S[<<ARGS[2]>>] = 0'
  591. PCloQuality = CloQuality
  592. PCloThinness = CloThinness
  593. PCloTopCut = CloTopCut
  594. PCloBra = CloBra
  595. PCloPants = CloPantsShortness
  596. PCloSkirt = CloSkirtShortness
  597. PCloPanties = CloPanties
  598. PCloStyle = CloStyle
  599. PCloStyle2 = CloStyle2
  600. PCloInhibit = CloInhibit
  601. if $cheatBimbo ! '<b>ON</b>':
  602. PCloBimbo = CloBimbo
  603. if CloBimbo = 1:bimbocl = 1
  604. else
  605. PCloBimbo = 0
  606. bimbocl = 0
  607. end
  608. if PCloTopCut > 1:
  609. if tits = 2 or tits = 3:PCloTopCut += 1
  610. if tits = 4 or tits = 5:PCloTopCut += 2
  611. if tits >= 6:PCloTopCut += 3
  612. end
  613. !Calculations for clothing beauty, multiplied by natural beauty
  614. if PCloThinness > 0:
  615. if PCloThinness = 1:
  616. PXCloThinness = 25
  617. elseif PCloThinness = 2:
  618. PXCloThinness = 50
  619. elseif PCloThinness = 3:
  620. PXCloThinness = 100
  621. elseif PCloThinness = 4:
  622. PXCloThinness = 150
  623. elseif PCloThinness = 5:
  624. PXCloThinness = 200
  625. elseif PCloThinness = 6:
  626. PXCloThinness = 300
  627. elseif PCloThinness >= 7:
  628. PXCloThinness = 400
  629. end
  630. end
  631. if PCloTopCut > 0:
  632. if PCloTopCut = 1:
  633. PXCloTopCut = 25
  634. elseif PCloTopCut = 2:
  635. PXCloTopCut = 50
  636. elseif PCloTopCut = 3:
  637. PXCloTopCut = 100
  638. elseif PCloTopCut = 4:
  639. PXCloTopCut = 150
  640. elseif PCloTopCut = 5:
  641. PXCloTopCut = 200
  642. elseif PCloTopCut = 6:
  643. PXCloTopCut = 300
  644. elseif PCloTopCut >= 7:
  645. PXCloTopCut = 400
  646. end
  647. end
  648. if PCloBra = 1:
  649. PXCloTopCut = 400
  650. elseif PCloBra = 2:
  651. PXCloTopCut = 500
  652. end
  653. if PCloSkirt > 0:
  654. if PCloSkirt = 1:
  655. PXCloSkirtShortness = 25
  656. elseif PCloSkirt = 2:
  657. PXCloSkirtShortness = 50
  658. elseif PCloSkirt = 3:
  659. PXCloSkirtShortness = 100
  660. elseif PCloSkirt = 4:
  661. PXCloSkirtShortness = 150
  662. elseif PCloSkirt = 5:
  663. PXCloSkirtShortness = 200
  664. elseif PCloSkirt = 6:
  665. PXCloSkirtShortness = 300
  666. elseif PCloSkirt >= 7:
  667. PXCloSkirtShortness = 400
  668. end
  669. end
  670. if PCloPants > 0:
  671. if PCloPants = 1:
  672. PXCloPantsShortness = 25
  673. elseif PCloPants = 2:
  674. PXCloPantsShortness = 50
  675. elseif PCloPants = 3:
  676. PXCloPantsShortness = 100
  677. elseif PCloPants = 4:
  678. PXCloPantsShortness = 150
  679. elseif PCloPants = 5:
  680. PXCloPantsShortness = 200
  681. elseif PCloPants = 6:
  682. PXCloPantsShortness = 300
  683. elseif PCloPants >= 7:
  684. PXCloPantsShortness = 400
  685. end
  686. end
  687. if PCloPanties = 1: PXCloPantsShortness = 400
  688. end
  689. if $ARGS[0] = 'wear_last_worn':
  690. gs 'clothing', 'wear', $lastwornclothingtype, lastwornclothingnumber
  691. end
  692. --- clothing ---------------------------------