clothing.qsrc 29 KB

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