clothing.qsrc 29 KB

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