sewing.qsrc 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # sewing
  2. if $ARGS[0] = 'start':
  3. cla & *clr
  4. '<center><img <<$set_imgh>> src="images/pc/activities/sewing/kit.jpg"></center>'
  5. 'You pull your sewing kit out from under your bed.'
  6. *nl
  7. if mc_inventory['sewing_fabric'] > 1:
  8. 'You have <<mc_inventory[''sewing_fabric'']>> pieces of sewing fabric left.'
  9. elseif mc_inventory['sewing_fabric'] = 1:
  10. 'You have 1 piece of sewing fabric left.'
  11. else
  12. 'You have no fabric left to use as material.'
  13. end
  14. if pcs_sewng > 50 and mc_inventory['sewing_fabric'] >= 1: 'You can resize your own clothing when viewing items in the wardrobe list <a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe''">here</a>.'
  15. act 'Leave':gt $loc, $loc_arg
  16. act 'Practice sewing (0:30)':
  17. minut += 30
  18. gs 'stat'
  19. cla & *clr
  20. '<center><img <<$set_imgh>> src="images/pc/activities/sewing/practice.jpg"></center>'
  21. if pcs_sewng < 40:
  22. gs 'exp_gain', 'sewng', 2
  23. 'You practice your sewing skills.'
  24. else
  25. 'You spend some time practicing stitches and other sewing techniques, but you don''t feel like you''re getting any better.'
  26. *nl
  27. 'You think you need real projects to work on to increase your skill, either in a class or on your own.'
  28. end
  29. act'Finish':gt 'sewing', 'start'
  30. end
  31. act 'Sew trinkets (0:30)':
  32. minut += 30
  33. gs 'stat'
  34. cla & *clr
  35. act 'Finish':gt 'sewing', 'start'
  36. if mc_inventory['sewing_fabric'] < 1:
  37. 'You do not have any material to sew anything. You should buy some from the supermarket.'
  38. elseif mc_inventory['trinkets_home'] = 30 and (YouCanGar = 0 or mc_inventory['trinkets_garage'] = 100):
  39. 'You do not have any further storage space, you need to sell some trinkets to make room before sewing more of them.'
  40. else
  41. sew_trinket_success = rand(1,240)
  42. mc_inventory['sewing_fabric'] -= 1
  43. if pcs_sewng >= 40:gs 'exp_gain', 'sewng', rand(pcs_intel/20, pcs_intel/10)
  44. if pcs_sewng < 40:gs 'exp_gain', 'sewng', rand(pcs_intel/25, pcs_intel/15)
  45. if sew_trinket_success > pcs_sewng*4:
  46. '<center><img <<$set_imgh>> src="images/pc/activities/sewing/practice.jpg"></center>'
  47. 'You do your best trying to sew together a trinket at a quality you can sell, but somewhere along the way, you mess it up. The material is ruined, and you''re frustrated as hell, but at least you feel like you learned something.'
  48. else
  49. if mc_inventory['trinkets_home'] >= 30 and (YouCanGar = 0 or mc_inventory['trinkets_garage'] >= 100):
  50. '<center><img <<$set_imgh>> src="images/pc/activities/sewing/kit.jpg"></center>'
  51. 'You put together another trinket but then realize you have too many trinkets already. ' + iif(YouCanGar > 0, 'Even the space in your stepfather''s garage is full. ', '') + 'With a deep sense of regret, you throw it away, having no place to store it. At least you learned more about sewing...'
  52. else
  53. '<center><img <<$set_imgh>> src="images/pc/activities/sewing/trinket.jpg"></center>'
  54. *p 'You spend some time trying to sew something together. After a half hour, you find yourself rewarded for your effort with a small trinket that''s actually of decently high quality. '
  55. if mc_inventory['trinkets_home'] < 30:
  56. mc_inventory['trinkets_home'] += 1
  57. 'Storing it away, you figure you ' + iif(mc_inventory['trinkets_home'] < 30, 'still have space for about <<30 - mc_inventory[''trinkets_home'']>>', 'probably don''t have room for any') + ' more of these in your room.' + iif(mc_inventory['trinkets_home'] >= 30 and YouCanGar > 0, ' If you make any more of these, you''ll need to start storing them in your stepfather''s garage.', '')
  58. *nl
  59. 'You wonder if you can sell them somewhere.'
  60. else
  61. mc_inventory['trinkets_garage'] += 1
  62. 'The storage space in your room is full, but you can still store it in your stepfather''s garage, ' + iif(mc_inventory['trinkets_garage'] < 100, 'along with probably another <<100 - mc_inventory['trinkets_garage']>>.', 'though it doesn''t look like there''s space for any more beyond that there either.')
  63. *nl
  64. 'You wonder how many you can sell at the train station.'
  65. end
  66. end
  67. end
  68. end
  69. end
  70. end
  71. if $ARGS[0] = 'tapestry':
  72. if newgobelen = 0:
  73. *clr & cla
  74. menu_off = 1
  75. mc_inventory['sewing_fabric'] -= 1
  76. newgobelen = 1
  77. minut += 15
  78. gs 'stat'
  79. 'You spend 15 minutes at the embroidery frame, preparing the fabric and outlining the pattern for the tapestry.'
  80. act 'Set the tapestry aside': gt $loc, $loc_arg
  81. else
  82. *clr & cla
  83. menu_off = 1
  84. minut+=60
  85. '<center><img <<$set_imgh>> src="images/pc/activities/sewing/practice.jpg"></center>'
  86. gs 'exp_gain', 'sewng', rand(pcs_intel/10, pcs_intel/5)
  87. gobramax = (pcs_sewng - 70) * 6
  88. gobramin = (pcs_sewng - 70) * 2
  89. newgobelen += rand(gobramin,gobramax)
  90. gs 'stat'
  91. if newgobelen < 1000:'You spend an hour working on your tapestry, which is now <<newgobelen/10>> percent finished.'
  92. if newgobelen >= 1000:
  93. killvar 'newgobelen'
  94. mc_inventory['tapestry'] += 1
  95. 'Your work on the tapestry is done.'
  96. end
  97. act 'Set the tapestry aside': gt $loc, $loc_arg
  98. end
  99. end
  100. --- sewing ---------------------------------