changingroom.qsrc 2.4 KB

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