panties.qsrc 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. # panties
  2. !!This is separate panties file and that means underwear['type'] = 0
  3. !!2021/04/15
  4. !!gs 'panties', 'dispose'
  5. !!to remove panties and destroy them
  6. !!gs 'panties', 'remove'
  7. !!To remove panties and store them
  8. !!gs 'panties', 'wear'
  9. !!To wear panties
  10. menu_off = 1
  11. if $ARGS[0] = 'view_panty_list':
  12. !! ARGS 0 - view_panty_list
  13. !! ARGS 1 - action type (clean, dirty, store, bathroom)
  14. if $pursepantytype ! '' or $pursebratype ! '':
  15. '<center><b>You put the '+iif($pursepantytype ! '','panties','')+iif($pursepantytype ! '' and $pursebratype ! '',' and ','')+iif($pursebratype ! '','bra','')+' from your purse back in the wardrobe.</b></center><br>'
  16. killvar '$pursepantytype' & killvar 'pursepantynumber'
  17. killvar '$pursebratype' & killvar 'pursebranumber'
  18. end
  19. if $ARGS[1] ! 'bathroom':
  20. act 'Return': gt 'wardrobe', 'main'
  21. else
  22. act 'Return': gt $loc, $loc_arg
  23. end
  24. if $ARGS[1] = 'wardrobe':
  25. metka_panties = 0
  26. end
  27. if $ARGS[1] = 'store':
  28. metka_panties = 1
  29. end
  30. if $ARGS[1] = 'unwanted':
  31. metka_panties = 2
  32. end
  33. gs 'panties', 'filter_header', 'store'
  34. '<center><table border=1><TH><a href="exec:gt ''panties'', ''view_panty_list'', ''wardrobe''">Draw</a></TH><TH><a href="exec:gt ''panties'', ''view_panty_list'', ''store''">Storage</a></TH><TH><a href="exec:gt ''panties'', ''view_panty_list'', ''unwanted''">Unwanted</a></TH></table></center>'
  35. if $pantyworntype ! 'none':act 'Remove panties':gs 'panties', 'remove' & gt 'panties', 'view_panty_list', $ARGS[1]
  36. if $ARGS[1] = 'store':
  37. cloc = 1
  38. end
  39. if ARRSIZE('gm_panties') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/gm.png"></center>'
  40. !!To filter just this set
  41. clo_i = 0
  42. :looppantyquality_filter
  43. i = 1
  44. :loopgmpanties
  45. if gm_pantiesS[i] = metka_panties and gm_panties[i] = 1:
  46. gs 'underwear_attributes', 'gm_panties', i
  47. gs 'panties', 'panty_filter'
  48. !!sort by filter
  49. if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
  50. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  51. *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''<<$ARGS[1]>>'', ''gm'', <<i>>"><img src="images/pc/items/gm/panties/<<i>>.jpg" height="150" /></a>'
  52. end
  53. end
  54. end
  55. i += 1
  56. if i <= ARRSIZE('gm_panties'):jump 'loopgmpanties'
  57. if ARRSIZE('lusso_panties') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/Lusso.png"></center>'
  58. i = 1
  59. :looplussopanties
  60. if lusso_pantiesS[i] = metka_panties and lusso_panties[i] = 1:
  61. gs 'underwear_attributes', 'lusso_panties', i
  62. gs 'panties', 'panty_filter'
  63. !!sort by filter
  64. if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
  65. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  66. *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''<<$ARGS[1]>>'', ''lusso'', <<i>>"><img src="images/pc/items/lusso/panties/<<i>>.jpg" height="150" /></a>'
  67. end
  68. end
  69. end
  70. i += 1
  71. if i <= ARRSIZE('lusso_panties'):jump 'looplussopanties'
  72. if ARRSIZE('salacious_panties') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/pushkin/exhibitshop/shop_name.png"></center>'
  73. i = 1
  74. :loopsalaciouspanties
  75. if salacious_pantiesS[i] = metka_panties and salacious_panties[i] = 1:
  76. gs 'underwear_attributes', 'salacious_panties', i
  77. gs 'panties', 'panty_filter'
  78. !!sort by filter
  79. if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
  80. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  81. *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''<<$ARGS[1]>>'', ''salacious'', <<i>>"><img src="images/pc/items/salacious/panties/<<i>>.jpg" height="150" /></a>'
  82. end
  83. end
  84. end
  85. i += 1
  86. if i <= ARRSIZE('salacious_panties'):jump 'loopsalaciouspanties'
  87. if ARRSIZE('fashionista_panties') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/fashionista.png"></center>'
  88. i = 1
  89. :loopfashionistapanties
  90. if fashionista_pantiesS[i] = metka_panties and fashionista_panties[i] = 1:
  91. gs 'underwear_attributes', 'fashionista_panties', i
  92. gs 'panties', 'panty_filter'
  93. !!sort by filter
  94. if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
  95. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  96. *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''<<$ARGS[1]>>'', ''fashionista'', <<i>>"><img src="images/pc/items/fashionista/panties/<<i>>.jpg" height="150" /></a>'
  97. end
  98. end
  99. end
  100. i += 1
  101. if i <= ARRSIZE('fashionista_panties'):jump 'loopfashionistapanties'
  102. if ARRSIZE('cats_panties') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  103. i = 1
  104. :loopcatspanties
  105. if cats_pantiesS[i] = metka_panties and cats_panties[i] = 1:
  106. gs 'underwear_attributes', 'cats_panties', i
  107. gs 'panties', 'panty_filter'
  108. !!sort by filter
  109. if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
  110. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  111. *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''<<$ARGS[1]>>'', ''cats'', <<i>>"><img src="images/pc/items/cats/panties/<<i>>.jpg" height="150" /></a>'
  112. end
  113. end
  114. end
  115. i += 1
  116. if i <= ARRSIZE('cats_panties'):jump 'loopcatspanties'
  117. if ARRSIZE('eroto_panties') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/redlight/erotomaniac/shop_name.png"></center>'
  118. i = 1
  119. :looperotopanties
  120. if eroto_pantiesS[i] = metka_panties and eroto_panties[i] = 1:
  121. gs 'underwear_attributes', 'eroto_panties', i
  122. gs 'panties', 'panty_filter'
  123. !!sort by filter
  124. if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
  125. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  126. *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''<<$ARGS[1]>>'', ''eroto'', <<i>>"><img src="images/pc/items/eroto/panties/<<i>>.jpg" height="150" /></a>'
  127. end
  128. end
  129. end
  130. i += 1
  131. if i <= ARRSIZE('eroto_panties'):jump 'looperotopanties'
  132. if ARRSIZE('danilovich_panties') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/sports.png"></center>'
  133. i = 1
  134. :loopdanilovichpanties
  135. if danilovich_pantiesS[i] = metka_panties and danilovich_panties[i] = 1:
  136. gs 'underwear_attributes', 'danilovich_panties', i
  137. gs 'panties', 'panty_filter'
  138. !!sort by filter
  139. if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
  140. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  141. *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''<<$ARGS[1]>>'', ''danilovich'', <<i>>"><img src="images/pc/items/danilovich/panties/<<i>>.jpg" height="150" /></a>'
  142. end
  143. end
  144. end
  145. i += 1
  146. if i <= ARRSIZE('danilovich_panties'):jump 'loopdanilovichpanties'
  147. clo_i += 1
  148. if clothingfilter['quality'] = 0 and clo_i <= 7:
  149. jump 'looppantyquality_filter'
  150. end
  151. end
  152. if $ARGS[0] = 'view_panty_item':
  153. !! ARGS 0 - view_panty_item
  154. !! ARGS 1 = action type (draw, shop)
  155. !! ARGS 2 - panty type
  156. !! ARGS 3 - panty index
  157. !! ARGS 4 - price for shop
  158. cla
  159. '<center><img src="<<FUNC(''$panty_image'', $ARGS[2], ARGS[3])>>"></center>'
  160. gs 'underwear_attributes', $ARGS[2]+'_panties', ARGS[3]
  161. !! $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  162. !! $RESULT += '<<ARGS[3]>>'
  163. !! '<<$RESULT>>'
  164. gs 'underwear_descriptions', 'panties'
  165. if underwear['pair'] > 0: 'These panties form a set with bra #<<underwear[''pair'']>>.'
  166. if $ARGS[1] = 'shop':
  167. if dyneval('RESULT = <<$ARGS[2]>>_panties[<<ARGS[3]>>]') = 1:
  168. 'You already own this item.'
  169. act 'Leave': gt $loc, $loc_arg
  170. else
  171. price = ARGS[4]
  172. 'Price: <<ARGS[4]>> <b>₽</b>'
  173. act 'Leave': gt $loc, $loc_arg
  174. if money >= price:
  175. act 'Buy (cash)':
  176. money -= price
  177. dynamic $ARGS[2] + '_panties[<<ARGS[3]>>] = 1'
  178. dynamic $ARGS[2] + '_pantiesS[<<ARGS[3]>>] = 0'
  179. gt $loc, $loc_arg
  180. end
  181. else
  182. 'You do not have enough cash to buy these panties.'
  183. end
  184. if karta + bankDebtLimit >= price:
  185. act 'Buy (card)':
  186. karta -= price
  187. dynamic $ARGS[2] + '_panties[<<ARGS[3]>>] = 1'
  188. dynamic $ARGS[2] + '_pantiesS[<<ARGS[3]>>] = 0'
  189. gt $loc, $loc_arg
  190. end
  191. else
  192. 'You do not have enough money in your bank to buy these panties.'
  193. end
  194. if underwear['pair'] > 0:
  195. if dyneval('RESULT = <<$ARGS[2]>>_bra[<<underwear[''pair'']>>]') = 1:
  196. 'You own the matching bra buying these panties will complete the set.'
  197. else
  198. 'You do not own the matching bra, you can buy it and these panties together as a set.'
  199. price_set = ARGS[4]*18/10
  200. 'Price for set: <<price_set>> <b>₽</b>'
  201. if money >= price_set:
  202. act 'Buy set (cash)':
  203. money -= price_set
  204. dynamic $ARGS[2] + '_panties[<<ARGS[3]>>] = 1'
  205. dynamic $ARGS[2] + '_pantiesS[<<ARGS[3]>>] = 0'
  206. dynamic $ARGS[2] + '_bras[<<underwear[''pair'']>>] = 1'
  207. dynamic $ARGS[2] + '_brasS[<<underwear[''pair'']>>] = 0'
  208. gt $loc, $loc_arg
  209. end
  210. else
  211. 'You do not have enough cash to buy this set.'
  212. end
  213. if karta + bankDebtLimit >= price_set:
  214. act 'Buy set (card)':
  215. karta -= price_set
  216. dynamic $ARGS[2] + '_panties[<<ARGS[3]>>] = 1'
  217. dynamic $ARGS[2] + '_pantiesS[<<ARGS[3]>>] = 0'
  218. dynamic $ARGS[2] + '_bras[<<underwear[''pair'']>>] = 1'
  219. dynamic $ARGS[2] + '_brasS[<<underwear[''pair'']>>] = 0'
  220. gt $loc, $loc_arg
  221. end
  222. else
  223. 'You do not have enough money in your bank to buy this set.'
  224. end
  225. end
  226. end
  227. end
  228. else
  229. act 'Return':gt 'panties', 'view_panty_list', $ARGS[1]
  230. if $ARGS[1] = 'store':
  231. 'These panties are in storage.'
  232. gs 'panties', 'storage_options'
  233. elseif $ARGS[1] = 'unwanted':
  234. 'These panties are unwanted.'
  235. gs 'panties', 'storage_options'
  236. else
  237. if $pantyworntype = $ARGS[2] and pantywornnumber = ARGS[3]:
  238. 'You are wearing these panties.'
  239. else
  240. if metka_panties = 0:
  241. act 'Wear':
  242. if CloPanties = 1:
  243. msg'Your outfit is already replacing your panties'
  244. else
  245. if hypnoPanty > 0:
  246. cla
  247. *clr
  248. 'You pick up the panties and think about trying them on... but you don''t really like wearing panties.'
  249. gs 'willpower', 'misc', 'resist', 'easy'
  250. will_cost += hypnoTime
  251. if will_cost <= pcs_willpwr:
  252. act 'Put them on anyways (<<will_cost>> Willpower)':
  253. gs 'willpower', 'pay', 'resist'
  254. gs 'stat'
  255. gs 'panties', 'wear', $ARGS[2], ARGS[3]
  256. if $ARGS[1] = 'wardrobe':
  257. gt 'wardrobe', 'main'
  258. else
  259. gt $loc, $loc_arg
  260. end
  261. end
  262. else
  263. act 'Put them on anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  264. end
  265. act 'Back':
  266. gt 'wardrobe', 'main'
  267. end
  268. else
  269. gs 'panties', 'wear', $ARGS[2], ARGS[3]
  270. if $ARGS[1] = 'wardrobe':
  271. gt 'wardrobe', 'main'
  272. else
  273. gt $loc, $loc_arg
  274. end
  275. end
  276. end
  277. end
  278. if underwear['pair'] > 0:
  279. if dyneval('RESULT = <<$ARGS[2]>>_bras[<<underwear[''pair'']>>]') = 1:
  280. 'You own this bra and can wear this set.'
  281. act 'Wear set':
  282. if CloBra = 1:
  283. msg'You cannot wear a bra with this top'
  284. elseif CloPanties = 1:
  285. msg'You cannot wear a panties with this outfit'
  286. else
  287. if hypnoBra > 0 and hypnoPanty > 0:
  288. cla
  289. *clr
  290. 'You pick up the bra and panties and think about trying them on... but you don''t really like wearing underwear.'
  291. gs 'willpower', 'misc', 'resist'
  292. will_cost += hypnoTime
  293. if will_cost <= pcs_willpwr:
  294. act 'Wear it anyway anyways (<<will_cost>> Willpower)':
  295. gs 'willpower', 'pay', 'resist'
  296. gs 'stat'
  297. gs 'bras', 'wear', $ARGS[2], underwear['pair']
  298. gs 'panties', 'wear', $ARGS[2], ARGS[3]
  299. if $ARGS[1] = 'wardrobe':
  300. gt 'wardrobe', 'main'
  301. else
  302. gt $loc, $loc_arg
  303. end
  304. end
  305. else
  306. act 'Wear it anyway anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  307. end
  308. act 'Back':
  309. gt 'wardrobe', 'main'
  310. end
  311. elseif hypnoBra > 0:
  312. cla
  313. *clr
  314. 'You pick up the bra and think about trying them on... but you don''t really like wearing bras.'
  315. gs 'willpower', 'misc', 'resist', 'easy'
  316. will_cost += hypnoTime
  317. if will_cost <= pcs_willpwr:
  318. act 'Put them on anyways (<<will_cost>> Willpower)':
  319. gs 'willpower', 'pay', 'resist'
  320. gs 'stat'
  321. gs 'bras', 'wear', $ARGS[2], underwear['pair']
  322. gs 'panties', 'wear', $ARGS[2], ARGS[3]
  323. if $ARGS[1] = 'wardrobe':
  324. gt 'wardrobe', 'main'
  325. else
  326. gt $loc, $loc_arg
  327. end
  328. end
  329. else
  330. act 'Put them on anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  331. end
  332. act 'Back':
  333. gt 'wardrobe', 'main'
  334. end
  335. elseif hypnoPanty > 0:
  336. cla
  337. *clr
  338. 'You pick up the panties and think about trying them on... but you don''t really like wearing panties.'
  339. gs 'willpower', 'misc', 'resist', 'easy'
  340. will_cost += hypnoTime
  341. if will_cost <= pcs_willpwr:
  342. act 'Put them on anyways (<<will_cost>> Willpower)':
  343. gs 'willpower', 'pay', 'resist'
  344. gs 'stat'
  345. gs 'bras', 'wear', $ARGS[2], underwear['pair']
  346. gs 'panties', 'wear', $ARGS[2], ARGS[3]
  347. if $ARGS[1] = 'wardrobe':
  348. gt 'wardrobe', 'main'
  349. else
  350. gt $loc, $loc_arg
  351. end
  352. end
  353. else
  354. act 'Put them on anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  355. end
  356. act 'Back':
  357. gt 'wardrobe', 'main'
  358. end
  359. else
  360. gs 'bras', 'wear', $ARGS[2], underwear['pair']
  361. gs 'panties', 'wear', $ARGS[2], ARGS[3]
  362. if $ARGS[1] = 'wardrobe':
  363. gt 'wardrobe', 'main'
  364. else
  365. gt $loc, $loc_arg
  366. end
  367. end
  368. end
  369. end
  370. else
  371. 'You do not own the matching bra to make this set.'
  372. end
  373. end
  374. end
  375. end
  376. gs 'panties', 'storage_options'
  377. end
  378. end
  379. end
  380. if $ARGS[0] = 'storage_options':
  381. if $ARGS[1] ! 'store':
  382. act 'Move to storage': gt 'panties', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  383. end
  384. if $ARGS[1] ! 'unwanted':
  385. act 'Move to unwanted': gt 'panties', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  386. end
  387. if $ARGS[1] ! 'wardrobe':
  388. act 'Move to wardrobe': gt 'panties', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  389. end
  390. act '<font color="red">Throw these panties away</font>':
  391. dynamic '<<$ARGS[2]>>_panties[<<ARGS[3]>>] = 0'
  392. gt 'wardrobe', 'main'
  393. end
  394. end
  395. if $ARGS[0] = 'dest0':
  396. *clr
  397. dynamic '<<$ARGS[2]>>_pantiesS[<<ARGS[3]>>] = 0'
  398. gt 'panties', 'view_panty_item', $ARGS[1], $ARGS[2], ARGS[3]
  399. end
  400. if $ARGS[0] = 'dest1':
  401. *clr
  402. dynamic '<<$ARGS[2]>>_pantiesS[<<ARGS[3]>>] = 1'
  403. gt 'panties', 'view_panty_item', $ARGS[1], $ARGS[2], ARGS[3]
  404. end
  405. if $ARGS[0] = 'dest2':
  406. *clr
  407. dynamic '<<$ARGS[2]>>_pantiesS[<<ARGS[3]>>] = 2'
  408. gt 'panties', 'view_panty_item', $ARGS[1], $ARGS[2], ARGS[3]
  409. end
  410. if $ARGS[0] = 'sum':
  411. $t[0] = 'lusso'
  412. $t[1] = 'cats'
  413. $t[2] = 'salacious'
  414. $t[3] = 'fashionista'
  415. $t[4] = 'gm'
  416. $t[5] = 'eroto'
  417. $t[6] = 'danilovich'
  418. result = 0
  419. i = 0
  420. :loopsumpanties_i
  421. $temp = $t[i]
  422. j = 1
  423. :loopsumpanties_j
  424. $temp1 = '<<$temp>>_panties[<<j>>]'
  425. $temp2 = '<<$temp>>_pantiesS[<<j>>]'
  426. dynamic 'if <<$temp1>> = 1 and <<$temp2>> = 0: result +=1'
  427. j += 1
  428. if j <= dyneval('result = arrsize(''<<$temp>>_panties'')') : jump 'loopsumpanties_j'
  429. i += 1
  430. if i <= arrsize('$t'): jump 'loopsumpanties_i'
  431. if $ARGS[1] = 'dresser': if $pantyworntype ! 'none' and result > 0: result -= 1
  432. killvar('t')
  433. killvar('temp')
  434. killvar('temp1')
  435. killvar('temp2')
  436. end
  437. if $ARGS[0] = 'dispose':
  438. if underwear['type'] = 2: gs 'underwear_bodysuits', 'dispose'
  439. dynamic $pantyworntype + '_panties[<<pantywornnumber>>] = 0'
  440. $lastwornpantytype = 'none'
  441. lastwornpantynumber = 0
  442. $pantyworntype = 'none'
  443. pantywornnumber = 0
  444. PPanMaterial = 0
  445. PPantyFun = 0
  446. PPanQuality = 0
  447. PPanThinness = 0
  448. PPanCoverFront = 4
  449. PPanCoverBack = 4
  450. gs 'clothing', 'exposure_calc'
  451. end
  452. if $ARGS[0] = 'remove':
  453. if underwear['type'] = 2: gs 'underwear_bodysuits', 'remove'
  454. $lastwornpantytype = $pantyworntype
  455. lastwornpantynumber = pantywornnumber
  456. $pantyworntype = 'none'
  457. pantywornnumber = 0
  458. underwear['lastworntype'] = 0
  459. PPanMaterial = 0
  460. PPantyFun = 0
  461. PPanQuality = 0
  462. PPanThinness = 0
  463. PPanCoverFront = 4
  464. PPanCoverBack = 4
  465. gs 'clothing', 'exposure_calc'
  466. end
  467. if $ARGS[0] = 'wear':
  468. if underwear['lastworntype'] = 2: gs 'underwear_bodysuits', 'wear'
  469. if $ARGS[1] = '':
  470. if dyneval('RESULT = <<$lastwornpantytype>>_pantiesS[<<lastwornpantynumber>>]') = 0 and $lastwornpantytype ! '':
  471. gs 'panties', 'wear2', $lastwornpantytype, lastwornpantynumber
  472. else
  473. $pantyworntype = 'none'
  474. pantywornnumber = 0
  475. end
  476. else
  477. if dyneval('RESULT = <<$ARGS[1]>>_pantiesS[<<ARGS[2]>>]') = 0:
  478. gs 'panties', 'wear2', $ARGS[1], ARGS[2]
  479. else
  480. $pantyworntype = 'none'
  481. pantywornnumber = 0
  482. end
  483. end
  484. end
  485. if $ARGS[0] = 'wear2':
  486. !! ARGS 0 - action
  487. !! ARGS 1 - panties type name
  488. !! ARGS 2 - panties index
  489. !! removing panties or bodysuit if worn
  490. if underwear['type'] = 0:
  491. gs 'panties', 'remove'
  492. else
  493. gs 'underwear_bodysuits', 'remove'
  494. end
  495. underwear['type'] = 0
  496. $pantyworntype = $ARGS[1]
  497. pantywornnumber = ARGS[2]
  498. gs 'underwear_attributes', $ARGS[1], ARGS[2]
  499. dynamic '<<$ARGS[1]>>_pantiesS[<<ARGS[2]>>] = 0'
  500. PPanMaterial = PanMaterial
  501. PPantyFun = PantyFun
  502. PPanQuality = PanQuality
  503. PPanThinness = PanThinness
  504. PPanCoverFront = PanCoverFront
  505. PPanCoverBack = PanCoverBack
  506. gs 'clothing', 'exposure_calc'
  507. end
  508. if $ARGS[0] = 'wear_last_worn':
  509. !!contingency
  510. if $lastwornpantytype = '': $lastwornpantytype = 'none'
  511. gs 'panties', 'wear', $lastwornpantytype, lastwornpantynumber
  512. end
  513. if $ARGS[0] = 'filter_header':
  514. !!Exclude filters
  515. $Headerstring = '<TD>'
  516. if clothingfilter['sport'] = 0:
  517. $Headerstring += '<a href="exec:clothingfilter[''sport''] = 1 & clothingfilter[''sport_only''] = 0 & gt ''panties'', ''view_panty_list'', $ward_list_store"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  518. else
  519. $Headerstring += '<a href="exec:clothingfilter[''sport''] = 0 & gt ''panties'', ''view_panty_list'', $ward_list_store"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  520. end
  521. !!sort by filters
  522. $Headerstring += '<TD>'
  523. if clothingfilter['number'] = 0:
  524. clothingfilter['quality'] = 1 & clothingfilter['inhibition'] = 1
  525. $Headerstring += '<img src="images/system/icons/clothing/number.png"></TD>'
  526. else
  527. $Headerstring += '<a href="exec:clothingfilter[''number''] = 0 & clothingfilter[''quality''] = 1 & clothingfilter[''inhibition''] = 1 & gt ''panties'', ''view_panty_list'', $ward_list_store"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
  528. end
  529. $Headerstring += '<TD>'
  530. if clothingfilter['quality'] = 0:
  531. $Headerstring += '<img src="images/system/icons/clothing/quality.png"></TD>'
  532. else
  533. $Headerstring += '<a href="exec:clothingfilter[''quality''] = 0 & clothingfilter[''number''] = 1 & clothingfilter[''inhibition''] = 1 & gt ''panties'', ''view_panty_list'', $ward_list_store"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
  534. end
  535. !! Show only filers
  536. $Headerstring[1] = '<TD>'
  537. if clothingfilter['sport_only'] = 0:
  538. $Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 1 & clothingfilter[''sport''] = 0 & gt ''panties'', ''view_panty_list'', $ward_list_store"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  539. else
  540. $Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 0 & gt ''panties'', ''view_panty_list'', $ward_list_store"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  541. end
  542. $Headerstring[2] = ''
  543. if $ARGS[1] ! 'store':
  544. $Headerstring[2] += '<TH></TH>'
  545. end
  546. if $ward_list_file = 'clothing':
  547. $Headerstring[2] += '<TH></TH>'
  548. end
  549. $Headerstring[2] += '<TH>Include</TH>'
  550. if $ARGS[1] ! 'store':
  551. $Headerstring[2] += '<TH></TH><TH></TH>'
  552. end
  553. $Headerstring[2] += '<TH>Sort by</TH><TH></TH>'
  554. $Headerstring[3] = ''
  555. if $ARGS[1] ! 'store':
  556. $Headerstring[3] += '<TH></TH>'
  557. end
  558. if $ward_list_file = 'clothing':
  559. $Headerstring[3] += '<TH></TH>'
  560. end
  561. $Headerstring[3] += '<TH>Only show</TH>'
  562. '<center><table><<$Headerstring[2]>>'
  563. '<TR><border=1><<$Headerstring>>'
  564. '<TR><border=0><<$Headerstring[3]>>'
  565. '<TR><border=1><<$Headerstring[1]>></table></center>'
  566. end
  567. if $ARGS[0] = 'panty_filter':
  568. !!Exclude filters
  569. clothingfilter['inc'] = 1
  570. !!filters, if inc set to 0 they will not display
  571. if clothingfilter['sport'] = 1 and PanFun = 2:
  572. clothingfilter['inc'] = 0
  573. end
  574. !!only filters
  575. clothingfilter['only'] = 0
  576. !!filters, if only set to 1 they will only display those set
  577. if clothingfilter['sport_only'] = 1 and PanFun = 2:
  578. clothingfilter['only'] = 1
  579. end
  580. if clothingfilter['only'] = clothingfilter['sport_only']:
  581. clothingfilter['only'] = 1
  582. else
  583. clothingfilter['only'] = 0
  584. end
  585. end
  586. if $ARGS[0] = 'shop_filter_header':
  587. !! exclude filters
  588. $Headerstring = '<TD>'
  589. if clothingfilter['sport'] = 0:
  590. $Headerstring += '<a href="exec:clothingfilter[''sport''] = 1 & clothingfilter[''sport_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  591. else
  592. $Headerstring += '<a href="exec:clothingfilter[''sport''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  593. end
  594. !! sort by filters
  595. $Headerstring += '<TD>'
  596. if clothingfilter['number'] = 0:
  597. clothingfilter['quality'] = 1
  598. $Headerstring += '<img src="images/system/icons/clothing/number.png"></TD>'
  599. else
  600. $Headerstring += '<a href="exec:clothingfilter[''number''] = 0 & clothingfilter[''quality''] = 1 & clothingfilter[''inhibition''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
  601. end
  602. $Headerstring += '<TD>'
  603. if clothingfilter['quality'] = 0:
  604. $Headerstring += '<img src="images/system/icons/clothing/quality.png"></TD>'
  605. else
  606. $Headerstring += '<a href="exec:clothingfilter[''quality''] = 0 & clothingfilter[''number''] = 1 & clothingfilter[''inhibition''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
  607. end
  608. !! Show only filers
  609. $Headerstring[1] = '<TD>'
  610. if clothingfilter['sport_only'] = 0:
  611. $Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 1 & clothingfilter[''sport''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  612. else
  613. $Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  614. end
  615. $Headerstring[2] = '<TH></TH><TH></TH><TH></TH><TH>Include</TH><TH></TH><TH></TH><TH></TH><TH></TH><TH></TH><TH>Sort by</TH><TH></TH>'
  616. $Headerstring[3] = '<TH></TH><TH></TH><TH></TH><TH>Only show</TH>'
  617. '<center><table><<$Headerstring[2]>>'
  618. '<TR><border=1><<$Headerstring>>'
  619. '<TR><border=0><<$Headerstring[3]>>'
  620. '<TR><border=1><<$Headerstring[1]>></table></center>'
  621. end
  622. if $ARGS[0] = 'shop_filter':
  623. !!Exclude filters
  624. clothingfilter['inc'] = 1
  625. !!filters, if inc set to 0 they will not display
  626. if clothingfilter['sport'] = 1 and PanFun = 2:
  627. clothingfilter['inc'] = 0
  628. end
  629. !!only filters
  630. clothingfilter['only'] = 0
  631. !!filters, if only set to 1 they will only display those set
  632. if clothingfilter['sport_only'] = 1 and PanFun = 2:
  633. clothingfilter['only'] += 1
  634. end
  635. end
  636. --- panties ---------------------------------