underwear_bodysuits.qsrc 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. # underwear_bodysuits
  2. !!This is bodysuits file and that means underwear['type'] = 2
  3. !!bodysuits use the panty term in variables, this is intentional
  4. !!gs 'bodysuits', 'dispose'
  5. !!to remove bodysuits and destroy them
  6. !!gs 'bodysuits', 'remove'
  7. !!To remove bodysuits and store them
  8. !!gs 'bodysuits', 'wear'
  9. !!To wear bodysuits
  10. menu_off = 1
  11. if $ARGS[0] = 'view_bodysuit_list':
  12. !! ARGS 0 - view_bodysuit_list
  13. !! ARGS 1 - action type (clean, dirty, store, bathroom)
  14. if $pursepantytype ! '' or $pursebratype ! '':
  15. '<center><b>You put the '+iif($pursepantytype ! '','bodysuits','')+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_bodysuits = 0
  26. end
  27. if $ARGS[1] = 'store':
  28. metka_bodysuits = 1
  29. end
  30. if $ARGS[1] = 'unwanted':
  31. metka_bodysuits = 2
  32. end
  33. '<center><table border=1><TH><a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_list'', ''wardrobe''">Draw</a></TH><TH><a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_list'', ''store''">Storage</a></TH><TH><a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_list'', ''unwanted''">Unwanted</a></TH></table></center>'
  34. if $pantyworntype ! 'none':act 'Remove bodysuits':gs 'underwear_bodysuits', 'remove' & gt 'underwear_bodysuits', 'view_bodysuit_list', $ARGS[1]
  35. if $ARGS[1] = 'store':
  36. cloc = 1
  37. end
  38. '<center><img src="images/locations/city/citycenter/mall/Lusso.png"></center>'
  39. i = 1
  40. :looplussobodysuits
  41. if lusso_bodysuits_s[i] = metka_bodysuits and lusso_bodysuits[i] = 1:*p '<a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''<<$ARGS[1]>>'', ''lusso'', <<i>>"><img src="images/pc/items/lusso/bodysuits/<<i>>.jpg" height="150" /></a>'
  42. i += 1
  43. if i <= ARRSIZE('lusso_bodysuits'):jump 'looplussobodysuits'
  44. end
  45. if $ARGS[0] = 'view_bodysuit_item':
  46. !! ARGS 0 - view_bodysuit_item
  47. !! ARGS 1 = action type (draw, shop)
  48. !! ARGS 2 - bodysuit type
  49. !! ARGS 3 - bodysuit index
  50. !! ARGS 4 - price for shop
  51. cla
  52. '<center><img src="<<FUNC(''$pcs_outfit_image'', $ARGS[2]+''_bodysuits'', ARGS[3])>>"></center>'
  53. gs 'underwear_attributes', $ARGS[2]+'_bodysuits', ARGS[3]
  54. gs 'underwear_descriptions', 'bodysuit'
  55. if $ARGS[1] = 'shop':
  56. if dyneval('RESULT = <<$ARGS[2]>>_bodysuits[<<ARGS[3]>>]') = 1:
  57. 'You already own this item.'
  58. act 'Leave': gt $loc, $loc_arg
  59. else
  60. price = ARGS[4]
  61. 'Price: <<ARGS[4]>> <b>₽</b>'
  62. act 'Leave': gt $loc, $loc_arg
  63. if money >= price:
  64. act 'Buy (cash)':
  65. money -= price
  66. dynamic $ARGS[2] + '_bodysuits[<<ARGS[3]>>] = 1'
  67. dynamic $ARGS[2] + '_bodysuits_s[<<ARGS[3]>>] = 0'
  68. gt $loc, $loc_arg
  69. end
  70. else
  71. 'You do not have enough cash to buy this bodysuit.'
  72. end
  73. if karta + bankDebtLimit >= price:
  74. act 'Buy (card)':
  75. karta -= price
  76. dynamic $ARGS[2] + '_bodysuits[<<ARGS[3]>>] = 1'
  77. dynamic $ARGS[2] + '_bodysuits_s[<<ARGS[3]>>] = 0'
  78. gt $loc, $loc_arg
  79. end
  80. else
  81. 'You do not have enough money in your bank to buy this bodysuit.'
  82. end
  83. end
  84. else
  85. if $ARGS[1] ! 'bathroom':
  86. if metka_bodysuits ! 1:$RESULT += 'Move this bodysuit to <a href="exec:gt ''bodysuits'', ''dest1'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Storage</a><BR>'
  87. if metka_bodysuits ! 0:$RESULT += 'Move this bodysuit to <a href="exec:gt ''bodysuits'', ''dest0'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Wardrobe</a><BR>'
  88. if metka_bodysuits ! 2:$RESULT += 'Move this bodysuit to <a href="exec:gt ''bodysuits'', ''dest2'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Unwanted</a>'
  89. end
  90. act 'Return':gt 'bodysuits', 'view_bodysuit_list', $ARGS[1]
  91. if $ARGS[1] = 'store':
  92. 'This bodysuit is in storage.'
  93. elseif $ARGS[1] = 'unwanted':
  94. 'This bodysuit is unwanted.'
  95. else
  96. if $bodysuitworntype = $ARGS[2] and bodysuitwornnumber = ARGS[3]:
  97. 'You are wearing this bodysuit.'
  98. else
  99. if metka_bodysuits = 0:
  100. act 'Wear':
  101. if CloPanties = 1 and CloBra = 1:
  102. msg'Your outfit is already replacing your underwear'
  103. else
  104. if hypnoPanty > 0:
  105. cla
  106. *clr
  107. 'You pick up the bodysuit and think about trying it on... but you don''t really like wearing bodysuits.'
  108. gs 'willpower', 'misc', 'resist', 'easy'
  109. will_cost += hypnoTime
  110. if will_cost <= pcs_willpwr:
  111. act 'Put it on anyways (<<will_cost>> Willpower)':
  112. gs 'willpower', 'pay', 'resist'
  113. gs 'stat'
  114. gs 'underwear_bodysuits', 'wear2', $ARGS[2], ARGS[3]
  115. if $ARGS[1] = 'wardrobe':
  116. gt 'wardrobe', 'main'
  117. else
  118. gt $loc, $loc_arg
  119. end
  120. end
  121. else
  122. act 'Put it on anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  123. end
  124. act 'Back':
  125. gt 'wardrobe', 'main'
  126. end
  127. else
  128. gs 'underwear_bodysuits', 'wear2', $ARGS[2], ARGS[3]
  129. if $ARGS[1] = 'wardrobe':
  130. gt 'wardrobe', 'main'
  131. else
  132. gt $loc, $loc_arg
  133. end
  134. end
  135. end
  136. end
  137. end
  138. end
  139. end
  140. if $ARGS[1] ! 'store':
  141. act 'Move to storage': gt 'underwear_bodysuits', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  142. end
  143. if $ARGS[1] ! 'unwanted':
  144. act 'Move to unwanted': gt 'underwear_bodysuits', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  145. end
  146. if $ARGS[1] ! 'wardrobe':
  147. act 'Move to wardrobe': gt 'underwear_bodysuits', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  148. end
  149. end
  150. end
  151. if $ARGS[0] = 'dest0':
  152. *clr
  153. dynamic '<<$ARGS[2]>>_bodysuits_s[<<ARGS[3]>>] = 0'
  154. gt 'underwear_bodysuits', 'view_bodysuit_item', $ARGS[1], $ARGS[2], ARGS[3]
  155. end
  156. if $ARGS[0] = 'dest1':
  157. *clr
  158. dynamic '<<$ARGS[2]>>_bodysuits_s[<<ARGS[3]>>] = 1'
  159. gt 'underwear_bodysuits', 'view_bodysuit_item', $ARGS[1], $ARGS[2], ARGS[3]
  160. end
  161. if $ARGS[0] = 'dest2':
  162. *clr
  163. dynamic '<<$ARGS[2]>>_bodysuits_s[<<ARGS[3]>>] = 2'
  164. gt 'underwear_bodysuits', 'view_bodysuit_item', $ARGS[1], $ARGS[2], ARGS[3]
  165. end
  166. if $ARGS[0] = 'sum':
  167. $t[0] = 'boutique'
  168. $t[1] = 'cats'
  169. $t[2] = 'exhibitionist'
  170. $t[3] = 'fashionista'
  171. $t[4] = 'cheap'
  172. $t[5] = 'sexshop'
  173. $t[6] = 'sport'
  174. result = 0
  175. i = 0
  176. :loopsumbodysuits_i
  177. $temp = $t[i]
  178. j = 1
  179. :loopsumbodysuits_j
  180. $temp1 = '<<$temp>>_bodysuits[<<j>>]'
  181. $temp2 = '<<$temp>>_bodysuits_s[<<j>>]'
  182. dynamic 'if <<$temp1>> = 1 and <<$temp2>> = 0: result +=1'
  183. j += 1
  184. if j <= dyneval('result = arrsize(''<<$temp>>_bodysuits'')') : jump 'loopsumbodysuits_j'
  185. i += 1
  186. if i <= arrsize('$t'): jump 'loopsumbodysuits_i'
  187. if $ARGS[1] = 'dresser': if $pantyworntype ! 'none' and result > 0: result -= 1
  188. killvar('t')
  189. killvar('temp')
  190. killvar('temp1')
  191. killvar('temp2')
  192. end
  193. if $ARGS[0] = 'dispose':
  194. dynamic $pantyworntype + '_bodysuit[<<pantywornnumber>>] = 0'
  195. $lastwornbodysuittype = 'none'
  196. lastwornbodysuitnumber = 0
  197. $bodysuitworntype = 'none'
  198. bodysuitwornnumber = 0
  199. $pantyworntype = 'none'
  200. $braworntype = 'none'
  201. end
  202. if $ARGS[0] = 'remove':
  203. $lastwornbodysuittype = $bodysuitworntype
  204. lastwornbodysuitnumber = bodysuitwornnumber
  205. $bodysuitworntype = 'none'
  206. bodysuitwornnumber = 0
  207. underwear['lastworntype'] = 2
  208. $pantyworntype = 'none'
  209. $braworntype = 'none'
  210. end
  211. if $ARGS[0] = 'wear':
  212. if $ARGS[1] = '':
  213. if dyneval('RESULT = <<$lastwornbodysuittype>>_bodysuits_s[<<lastwornbodysuitnumber>>]') = 0 and $lastwornbodysuittype ! '':
  214. $bodysuitworntype = $lastwornbodysuittype
  215. bodysuitwornnumber = lastwornbodysuitnumber
  216. gs 'wear2', $lastwornpantytype, lastwornpantynumber
  217. else
  218. underwear['type'] = 0
  219. $bodysuitworntype = 'none'
  220. bodysuitwornnumber = 0
  221. end
  222. else
  223. if dyneval('RESULT = <<$ARGS[1]>>_bodysuits_s[<<ARGS[2]>>]') = 0:
  224. gs 'wear2', $ARGS[2], ARGS[3]
  225. else
  226. underwear['type'] = 0
  227. $bodysuitworntype = 'none'
  228. bodysuitwornnumber = 0
  229. end
  230. end
  231. end
  232. if $ARGS[0] = 'wear2':
  233. !! ARGS 0 - action
  234. !! ARGS 1 - bodysuits type name
  235. !! ARGS 2 - bodysuits index
  236. !! removing bra and panties or bodysuit if worn
  237. if underwear['type'] = 0:
  238. gs 'panties', 'remove'
  239. gs 'bras', 'remove'
  240. else
  241. gs 'underwear_bodysuits', 'remove'
  242. end
  243. underwear['type'] = 2
  244. $bodysuitworntype = $ARGS[1]
  245. bodysuitwornnumber = ARGS[2]
  246. $pantyworntype = 'bodysuit'
  247. $braworntype = 'bodysuit'
  248. dynamic $ARGS[1] + '_w[<<ARGS[2]>>] = 1'
  249. gs 'underwear_attributes', $ARGS[1], ARGS[2]
  250. dynamic '<<$ARGS[1]>>_s[<<ARGS[2]>>] = 0'
  251. PBraQuality = BraQuality
  252. PBraMaterial = BraMaterial
  253. PBraType = BraType
  254. PBraFun = BraFun
  255. PPanThinness = PanThinness
  256. PBraThinness = BraThinness
  257. PPanExpose = PanExpose
  258. PPanButt = PanButt
  259. PBraExpose = BraExpose
  260. end
  261. if $ARGS[0] = 'wear_last_worn':
  262. !!contingency
  263. if $lastwornbodysuittype = '': $lastwornbodysuitnumber = 'none'
  264. gs 'underwear_bodysuits', 'wear', $lastwornbodysuittype, lastwornbodysuitnumber
  265. end
  266. --- underwear_bodysuits ---------------------------------