1
0

changingroom.qsrc 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # changingroom
  2. menu_off = 1
  3. if $ARGS[0] = 'view_swim_list':
  4. if $loc = 'fit' or $loc = 'bass' or temper >= 15:
  5. if $clothingworntype ! 'swimwear':
  6. if $clothingworntype = 'nude':
  7. if $lastwornclothingtype ! 'swimwear':
  8. $normalclothingworntype = $lastwornclothingtype
  9. normalclothingwornno = lastwornclothingnumber
  10. end
  11. else
  12. $normalclothingworntype = $clothingworntype
  13. normalclothingwornno = clothingwornnumber
  14. end
  15. end
  16. i = 1
  17. h = 0
  18. :loopswimwear
  19. if swimwear[i] = 1 and swimwearS[i] = 0 and ($clothingworntype ! 'swimwear' or clothingwornnumber ! i):h += 1 & *p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''swimwear'', <<i>>"><img <<$set_imgh>> src="images/pc/clothing/12swimwear/<<i>>.jpg" height="250" /></a>'
  20. i += 1
  21. if i <= ARRSIZE('swimwear'):jump 'loopswimwear'
  22. if h = 0:'<center>You do not own any swimwear.</center>'
  23. elseif temper < 15:
  24. '<center>It''s below 15C - far too cold to get changed into swimwear. You should wait until the weather warms up.</center>'
  25. end
  26. act 'Leave':gt $loc, $metka
  27. if $clothingworntype = 'swimwear':
  28. act 'Put your regular clothes back on':
  29. gs 'underwear', 'wear'
  30. gs 'clothing', 'wear', $normalclothingworntype, normalclothingwornno
  31. gt $loc, $metka
  32. end
  33. end
  34. end
  35. if $ARGS[0] = 'view_swim_item':
  36. !! ARGS 0 - view_clothing_item
  37. !! ARGS 1 - clothing type
  38. !! ARGS 2 - clothing index
  39. cla
  40. '<center><img <<$set_imgh>> src="<<FUNC(''$clothing_image'', $ARGS[1], ARGS[2])>>"></center>'
  41. '<<$ARGS[1]>> no.<<ARGS[2]>>'
  42. FUNC('$attributes_swimwear', $ARGS[1], ARGS[2])
  43. FUNC('$clothing_name', $ARGS[1], ARGS[2])
  44. $RESULT = '(strength '
  45. dynamic '$RESULT += <<$ARGS[1]>>H[<<ARGS[2]>>]'
  46. $RESULT += ')'
  47. '<<$RESULT>>'
  48. act 'Return':gt 'changingroom', 'view_swim_list'
  49. !! if the clothing is worn out
  50. if dyneval('RESULT = <<$ARGS[1]>>H[<<ARGS[2]>>]') <= 0:
  51. 'This item is worn and is not suitable for further wear.'
  52. act 'Throw it away':
  53. dynamic '<<$ARGS[1]>>[<<ARGS[2]>>] = 0'
  54. gt 'changingroom', 'view_swim_list'
  55. end
  56. elseif CloInhibit > pcs_inhib:
  57. 'You don''t feel daring enough to wear swimwear this revealing.'
  58. else
  59. if CloInhibit + 10 > pcs_inhib: 'You find this swimwear to be more revealing than you are completely comfortable with but that makes it quite exciting too.'
  60. act 'Wear':
  61. gs 'underwear', 'remove'
  62. gs 'clothing', 'wear', $ARGS[1], ARGS[2]
  63. gt $loc, $metka
  64. end
  65. end
  66. end
  67. --- changingroom ---------------------------------