1
0

changingroom.qsrc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # changingroom
  2. if $ARGS[0] = 'view_swim_list':
  3. if $loc = 'fit' or $loc = 'bass' or ($loc = 'etoexhib' and temper >= 15) or (temper >= 15 and month >= 5 and month <= 9):
  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 $loc ! 'etoexhib' and (month < 5 or month > 9):
  23. '<center>There''s no point in changing as you cannot go swimming or sunbathing here at this time of year, you need to wait until May.</center>'
  24. else
  25. '<center>You cannot go swimming or sunbathing when the temperature below 15C, so there is no point in getting changed.</center>'
  26. end
  27. if $clothingworntype = 'swimwear':
  28. act 'Put your regular clothes back on':
  29. gs 'underwear', 'wear'
  30. gs 'clothing', 'wear', $normalclothingworntype, normalclothingwornno
  31. gt 'changingroom', 'view_swim_list'
  32. end
  33. end
  34. act 'Leave':gt $loc, $metka
  35. end
  36. if $ARGS[0] = 'view_swim_item':
  37. !! ARGS 0 - view_clothing_item
  38. !! ARGS 1 - clothing type
  39. !! ARGS 2 - clothing index
  40. cla
  41. '<center><img <<$set_imgh>> src="<<FUNC(''$clothing_image'', $ARGS[1], ARGS[2])>>"></center>'
  42. '<<$ARGS[1]>> no.<<ARGS[2]>>'
  43. FUNC('$attributes_swimwear', $ARGS[1], ARGS[2])
  44. FUNC('$clothing_name', $ARGS[1], ARGS[2])
  45. $RESULT = '(strength '
  46. dynamic '$RESULT += <<$ARGS[1]>>H[<<ARGS[2]>>]'
  47. $RESULT += ')'
  48. '<<$RESULT>>'
  49. act 'Return':gt 'changingroom', 'view_swim_list'
  50. !! if the clothing is worn out
  51. if dyneval('RESULT = <<$ARGS[1]>>H[<<ARGS[2]>>]') <= 0:
  52. 'This item is worn and is not suitable for further wear.'
  53. act 'Throw it away':
  54. dynamic '<<$ARGS[1]>>[<<ARGS[2]>>] = 0'
  55. gt 'changingroom', 'view_swim_list'
  56. end
  57. elseif CloInhibit > pcs_inhib:
  58. 'You don''t feel daring enough to wear swimwear this revealing.'
  59. else
  60. 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.'
  61. act 'Wear':
  62. gs 'underwear', 'remove'
  63. gs 'clothing', 'wear', $ARGS[1], ARGS[2]
  64. gt 'changingroom', 'view_swim_list'
  65. end
  66. end
  67. end
  68. --- changingroom ---------------------------------