mod_addedflavour_SFLA_Kit.qsrc 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. # mod_addedflavour_SFLA_Kit
  2. if $ARGS[0] = 'start' or $ARGS[0] = '':
  3. *clr & cla
  4. CLOSE ALL
  5. $locM = 'mod_addedflavour_SFLA_Kit'
  6. $locM_arg = 'start'
  7. $loc = 'mod_addedflavour_SFLA_Kit'
  8. $loc_arg = 'start'
  9. $locclass = 'kitr'
  10. $menu_loc = 'mod_addedflavour_SFLA_Kit'
  11. $menu_arg = 'start'
  12. menu_off = 0
  13. gs 'themes', 'indoors'
  14. gs 'mod_addedflavour_charsche' , 'chkschedule'
  15. gs 'stat'
  16. if sound = 0 : gs 'mod_addedflavour_SFLA_Functions' , 'soundgen'
  17. if modVar_AF_SFLA_AptRProg['Kit'] >= modVar_AF_SFLA_AptRProg['Lv2Req']:
  18. $modVar_AF_TempStr = 'Lv2'
  19. else
  20. $modVar_AF_TempStr = 'Lv1'
  21. end
  22. '<center><b><font color="maroon">Kitchen</font></b></center>'
  23. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/locations/city/citycenter/SharedFLApartment/Kit<<$modVar_AF_TempStr>>.jpg"></center>'
  24. gs 'mod_addedflavour_SFLA_Functions' , 'SFLA-UpgradeRoom-Check' , 'Kit'
  25. if modVar_AF_SFLA_AptRProg['Kit'] >= modVar_AF_SFLA_AptRProg['Lv2Req']:
  26. 'Before you sits a very modern looking Kitchen with sharp modern lines leading to modern appliances and modern storage.' + iif(rand(1,5) = 1,'...Modern..','')
  27. else
  28. 'Before you sits a very quaint looking Kitchen. It''s not much to look at but has everything you all need to live here in relative subsistence.'
  29. end
  30. gs 'mod_addedflavour_SFLA_Functions' , 'SFLA-PeoplePresent-Display' , 'mod_addedflavour_SFLA_Kit'
  31. if charsche_activity_Active[arrpos('$charsche_actlist','SFLAKitr - Dinner')] = 1 and hour = 19:
  32. *nl
  33. 'Everyone is here for the <a href="exec: gt ''mod_addedflavour_SFLA_Events'' , ''housemeal'' ">Meal</a> you made for the House'
  34. end
  35. *nl
  36. '<b>Fridge Contents:</b>'
  37. if modVar_AF_SFLA_AptPerishables['Fullmeal'] > 0 and modVar_AF_SFLA_AptRProg['Kit'] >= modVar_AF_SFLA_AptRProg['Lv2Req']:
  38. 'Enough Ingredients for <b><<modVar_AF_SFLA_AptPerishables[''Fullmeal'']>></b> household meals. ' + iif(eda >= 10 and modVar_AF_SFLA_AptPerishables['Fullmeal'] <= 2,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''fullmeal'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Meal Ingredients</a>','<font color="gray">Add Meal Ingredients</font>')
  39. elseif modVar_AF_SFLA_AptPerishables['Fullmeal'] = 0:
  40. 'There is space to add some ingrediants to make a household meal (Regular Meal). ' + iif(eda >= 10 and modVar_AF_SFLA_AptPerishables['Fullmeal'] <= 2,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''fullmeal'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Meal Ingredients</a>','<font color="gray">Add Meal Ingredients</font>')
  41. end
  42. if modVar_AF_SFLA_AptPerishables['Lightmeal'] > 0:
  43. 'The lower shelf contains <b><<modVar_AF_SFLA_AptPerishables[''Lightmeal'']>></b> light meals. ' + iif(edaD >= 1 and modVar_AF_SFLA_AptPerishables['Lightmeal'] <= 20,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''lightmeal'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Light Meals</a>','<font color="gray">Add Light Meals</font>')
  44. elseif modVar_AF_SFLA_AptPerishables['Lightmeal'] = 0:
  45. 'There is space to add some light meals (Diet Food). ' + iif(edaD >= 1 and modVar_AF_SFLA_AptPerishables['Lightmeal'] <= 20,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''lightmeal'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Light Meals</a>','<font color="gray">Add Light Meals</font>')
  46. end
  47. *nl
  48. '<b>Cupboard Contents:</b>'
  49. if modVar_AF_SFLA_AptPerishables['Biscuits'] > 0:
  50. 'A Biscuit Tin containing roughly <b><<modVar_AF_SFLA_AptPerishables[''Biscuits'']>></b> biscuits. ' + iif(pranik >= 10 and modVar_AF_SFLA_AptPerishables['Biscuits'] <= 10,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''biscuits'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Biscuits</a>','<font color="gray">Add Biscuits</font>')
  51. elseif modVar_AF_SFLA_AptPerishables['Biscuits'] = 0:
  52. 'An empty Biscuit Tin that doesn''t even have sewing supplies in it. ' + iif(pranik >= 10 and modVar_AF_SFLA_AptPerishables['Biscuits'] <= 10,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''biscuits'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Biscuits</a>','<font color="gray">Add Biscuits</font>')
  53. end
  54. if modVar_AF_SFLA_AptPerishables['Fatburners'] > 0:
  55. 'A Bottle of Fat Burning Tablets with <b><<modVar_AF_SFLA_AptPerishables[''Fatburners'']>></b> tablets inside. ' + iif(fatdel >= 12 and modVar_AF_SFLA_AptPerishables['Fatburners'] <= 5,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''fatburners'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Fat Burner Tablets</a>','<font color="gray">Add Fat Burner Tablets</font>')
  56. elseif modVar_AF_SFLA_AptPerishables['Fatburners'] = 0:
  57. 'An empty Bottle of Fat Burning Tablets. ' + iif(fatdel >= 12 and modVar_AF_SFLA_AptPerishables['Fatburners'] <= 5,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''fatburners'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Fat Burner Tablets</a>','<font color="gray">Add Fat Burner Tablets</font>')
  58. end
  59. if modVar_AF_SFLA_AptPerishables['Vitamin'] > 0:
  60. 'A Bottle of Vitamin Tablets with <b><<modVar_AF_SFLA_AptPerishables[''Vitamin'']>></b> tablets inside. ' + iif(vitamin >= 30 and modVar_AF_SFLA_AptPerishables['Vitamin'] <= 5,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''vitamin'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Vitamins</a>','<font color="gray">Add Vitamins</font>')
  61. elseif modVar_AF_SFLA_AptPerishables['Vitamin'] = 0:
  62. 'An empty Bottle of Vitamins. ' + iif(vitamin >= 30 and modVar_AF_SFLA_AptPerishables['Vitamin'] <= 5,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''vitamin'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Add Vitamins</a>','<font color="gray">Add Vitamins</font>')
  63. end
  64. if modVar_AF_SFLA_AptPerishables['Dishliquid'] > 0:
  65. 'A Bottle of Dishwashing Liquid with roughly <b><<modVar_AF_SFLA_AptPerishables[''Dishliquid'']>></b> uses remaining. ' + iif(fairy >= 20 and modVar_AF_SFLA_AptPerishables['Dishliquid'] <= 2,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''dishliquid'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Replace Dishwashing Liquid</a>','<font color="gray">Replace Dishwashing Liquid</font>')
  66. elseif modVar_AF_SFLA_AptPerishables['Dishliquid'] = 0:
  67. 'An empty Bottle of Dishwashing Liquid. ' + iif(fairy >= 20 and modVar_AF_SFLA_AptPerishables['Dishliquid'] <= 2,'<a href="exec: gs ''mod_addedflavour_SFLA_Functions'' , ''dishliquid'' , ''add'' , ''PCS'' & gt $loc , $loc_arg ">Replace Dishwashing Liquid</a>','<font color="gray">Replace Dishwashing Liquid</font>')
  68. end
  69. *nl
  70. '<b>Appliances:</b>'
  71. if modVar_AF_SFLA_AptRProg['Kit'] >= modVar_AF_SFLA_AptRProg['Lv2Req']:
  72. 'An Oven to ' + iif(hour >= 15 and hour < 18 and modVar_AF_SFLA_AptPerishables['Fullmeal'] >= 1 and charsche_activity_Active[arrpos('$charsche_actlist','SFLAKitr - Dinner')] = 0,'<a href="exec: gt ''mod_addedflavour_SFLA_Events'' , ''cookfullmeal'' ">Cook Household Meals</a>.','Cook Household Meals')
  73. if hour >= 15 and hour < 18 and modVar_AF_SFLA_AptPerishables['Fullmeal'] >= 1 and charsche_activity_Active[arrpos('$charsche_actlist','SFLAKitr - Dinner')] = 0:
  74. act 'Cook Meal for the House (0:45)' : gt 'mod_addedflavour_SFLA_Events' , 'cookfullmeal'
  75. end
  76. end
  77. 'A Microwave to make ' + iif(modVar_AF_SFLA_AptPerishables['Lightmeal'] >= 1,'<a href="exec: gt ''mod_addedflavour_SFLA_Events'' , ''eatlightmeal'' ">Light Meals</a>.','Light Meals')
  78. if modVar_AF_SFLA_AptPerishables['Lightmeal'] > 0:
  79. act 'Make Light Meal (0:30)' : gt 'mod_addedflavour_SFLA_Events' , 'eatlightmeal'
  80. end
  81. 'A Kettle for <a href="exec: gt ''mod_addedflavour_SFLA_Events'' , ''drinktea'' ">Making Tea</a>.'
  82. act 'Have a cup of tea (0:05)' : gt 'mod_addedflavour_SFLA_Events' , 'drinktea'
  83. if modVar_AF_SFLA_AptPerishables['Biscuits'] > 0:
  84. act 'Have tea with biscuits (0:05)' : gt 'mod_addedflavour_SFLA_Events' , 'teabiscuits'
  85. end
  86. 'A Water Jug to <a href="exec: gt ''mod_addedflavour_SFLA_Events'' , ''drinkwater'' ">Drink Water</a>' + iif(modVar_AF_SFLA_AptPerishables['Vitamin'] >= 1 and vitaminday ! daystart,', <a href="exec: gt ''mod_addedflavour_SFLA_Events'' , ''takevitamins'' ">Take Vitamins</a>','') + iif(modVar_AF_SFLA_AptPerishables['Fatburners'] >= 1,', <a href="exec: gt ''mod_addedflavour_SFLA_Events'' , ''takefatburners'' ">Take Fatburners</a>','') + '.'
  87. act 'Drink water (0:01)' : gt 'mod_addedflavour_SFLA_Events' , 'drinkwater'
  88. if modVar_AF_SFLA_AptPerishables['Vitamin'] > 0 and vitaminday ! daystart:
  89. act 'Take Vitamins (0:02)' : gt 'mod_addedflavour_SFLA_Events' , 'takevitamins'
  90. end
  91. if modVar_AF_SFLA_AptPerishables['Fatburners'] > 0:
  92. act 'Take Fatburners (0:02)' : gt 'mod_addedflavour_SFLA_Events' , 'takefatburners'
  93. end
  94. if refillable_bottle > 0 and refillable_bottle < 4:
  95. act 'Refill Water Bottle' : gs 'mod_addedflavour_SFLA_Events' , 'fillbottle'
  96. end
  97. if modVar_AF_SFLA_AptRProg['Kit'] >= modVar_AF_SFLA_AptRProg['Lv2Req']:
  98. if modVar_AF_SFLA_AptState['Washdishes'] > 0:
  99. 'A <a href="exec: gt ''mod_addedflavour_SFLA_Events'' , ''dishwasher'' ">Dishwasher</a> with <b><<modVar_AF_SFLA_AptState[''Washdishes'']>></b> dirty dishes piled up next to it'
  100. else
  101. 'A Dishwasher'
  102. end
  103. else
  104. if modVar_AF_SFLA_AptState['Washdishes'] > 0:
  105. 'A <a href="exec: gt ''mod_addedflavour_SFLA_Events'' , ''washingup'' ">Sink</a> with <b><<modVar_AF_SFLA_AptState[''Washdishes'']>></b> dirty dishes piled up next to it'
  106. else
  107. 'A Sink'
  108. end
  109. end
  110. act '<b>Go To Living Room</b>' : minut += 1 & gt 'mod_addedflavour_SFLA_Sitr' , 'start'
  111. gs 'mod_addedflavour_SFLA_Functions' , 'whoelse' , 'mod_addedflavour_SFLA_BaRm' , 'Any'
  112. if arrsize('modArr_AF_SFLA_SharedActPeopleArray') > 0:
  113. *nl
  114. if npc_rel['A<<modArr_AF_SFLA_SharedActPeopleArray[0]>>'] >= 75:
  115. '<b>The Bathroom is currently occupied (<a href="exec: minut += 1 & gt ''mod_addedflavour_SFLA_BaRm'' , ''start'' ">Go in anyway!</a>)</b>'
  116. else
  117. '<b>The Bathroom is currently occupied</b>'
  118. end
  119. else
  120. act '<b>Go To Bathroom</b>' : minut += 1 & gt 'mod_addedflavour_SFLA_BaRm' , 'start'
  121. end
  122. end
  123. --- mod_addedflavour_SFLA_Kit ---------------------------------