panties.qsrc 23 KB

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