1
0

clothing.qsrc 29 KB

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