clothing.qsrc 29 KB

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