changingroom 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # changingroom
  2. if $ARGS[0] = 'view_swim_list':
  3. if $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. else
  23. '<center>You cannot go swimming or sunbathing now, so there is no point in getting changed.</center>'
  24. end
  25. if $clothingworntype = 'swimwear':
  26. act 'Put your regular clothes back on':
  27. gs 'underwear', 'wear'
  28. gs 'clothing', 'wear', $normalclothingworntype, normalclothingwornno
  29. gt 'changingroom', 'view_swim_list'
  30. end
  31. end
  32. act 'Leave':gt $loc, $metka
  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 CloExhibit > pcs_exhibition:
  56. 'You don''t feel daring enough to wear swimwear this revealing.'
  57. else
  58. if CloExhibit + 10 > pcs_exhibition: '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 'changingroom', 'view_swim_list'
  63. end
  64. end
  65. end
  66. --- changingroom ---------------------------------