1
0

nichChore.qsrc 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  1. # nichChore
  2. !! $nichChoreID:
  3. !! 0: hallway
  4. !! 1: guest bathroom
  5. !! 2: servant bedroom
  6. !! 3: servant bathroom
  7. !! 4: laundry
  8. !! 5: tanya bedroom
  9. !! 6: master bathroom
  10. !! 7: master bedroom
  11. !! 8: living room
  12. !! 9: kitchen
  13. !!10: study
  14. !! nichChoreTimeF: Factor to multiply basetime with
  15. if $ARGS[0] = 'inspect':
  16. if $ARGS[1] = 'hallway':
  17. $location_type = 'event'
  18. menu_off = 1
  19. nichChoreID = 0
  20. nichChoreTimeF = 1
  21. $nichChoreType = 'floor'
  22. $nichChoreLoc = 'hallway'
  23. $nichChoreActCaption = 'Inspect Hallway'
  24. nichTimeBQuick = 10
  25. nichTimeBNormal = 20
  26. nichTimeBDiligent = 30
  27. if nichChoreState[nichChoreID] = 0:
  28. $nichTempPic = 'images/locations/city/citycenter/nichApartment/hallway.jpg'
  29. $nichChoreDesc = 'The hallway has been cleaned recently. There is no need to clean it again.'
  30. elseif nichChoreState[nichChoreID] <= 5:
  31. $nichTempPic = 'images/locations/city/citycenter/nichApartment/hallwayDirt1.jpg'
  32. $nichChoreDesc = 'The floor is a little bit dirty.'
  33. elseif nichChoreState[nichChoreID] <= 15:
  34. nichChoreTimeF = 2
  35. $nichTempPic = 'images/locations/city/citycenter/nichApartment/hallwayDirt2.jpg'
  36. $nichChoreDesc = 'The floor is somewhat dirty. One has to be careful not to step into the dirt.'
  37. else
  38. nichChoreTimeF = 4
  39. $nichTempPic = 'images/locations/city/citycenter/nichApartment/hallwayDirt3.jpg'
  40. $nichChoreDesc = 'The floor is very dirty. Wearing shoes here would be wise because otherwise hosiery could be ruined.'
  41. end
  42. elseif $ARGS[1] = 'bathGuest':
  43. $location_type = 'event'
  44. menu_off = 1
  45. nichChoreID = 1
  46. nichChoreTimeF = 1
  47. $nichChoreType = 'bath'
  48. $nichChoreLoc = 'hallway'
  49. $nichChoreActCaption = 'Inspect Room'
  50. nichTimeBQuick = 10
  51. nichTimeBNormal = 20
  52. nichTimeBDiligent = 30
  53. if nichChoreState[nichChoreID] = 0:
  54. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathroomGuest.jpg'
  55. $nichChoreDesc = 'The cloakroom hasn''t been used since it was last cleaned. There are no used towels in the basket, the end of the toilet paper is folded and the sink is in pristine condition. There is no need to clean up.'
  56. elseif nichChoreState[nichChoreID] <= 5:
  57. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathGuestDirt1.jpg'
  58. $nichChoreDesc = 'Judging from a used towel being in the towel basket and some tiny splashes of water somebody has used this room lately. Although it being very clean Nicholas surely expects you to clean it.'
  59. elseif nichChoreState[nichChoreID] <= 15:
  60. nichChoreTimeF = 2
  61. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathGuestDirt2.jpg'
  62. $nichChoreDesc = 'This room has been used several times since it has been cleaned for the last time. The sink is somewhat dirty, the toilet paper needs to be filled up and the fresh towels are nearly used up.'
  63. else
  64. nichChoreTimeF = 4
  65. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathGuestDirt3.jpg'
  66. $nichChoreDesc = 'This room is dirty, which can not only be seen but also smelled. The toilet paper is used up, the sink has some water, soap and hair in it and the toilet hasn''t been flushed correctly.'
  67. end
  68. elseif $ARGS[1] = 'servant':
  69. $location_type = 'event'
  70. menu_off = 1
  71. nichChoreID = 2
  72. nichChoreTimeF = 1
  73. $nichChoreType = 'bed'
  74. $nichChoreLoc = 'servant'
  75. $nichChoreActCaption = 'Inspect Room'
  76. nichTimeBQuick = 5
  77. nichTimeBNormal = 10
  78. nichTimeBDiligent = -1
  79. if nichChoreState[nichChoreID] = 0:
  80. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bedroomServant.jpg'
  81. $nichChoreDesc = 'Your room is all cleaned up. Everything is at its place, the bed is tidied up and there is no visible dust on the furniture.'
  82. elseif nichChoreState[nichChoreID] <= 5:
  83. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bedServantDirty1.jpg'
  84. $nichChoreDesc = 'Your room appears to be clean. You should make your bed though.'
  85. elseif nichChoreState[nichChoreID] <= 15:
  86. nichChoreTimeF = 2
  87. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bedServantDirty2.jpg'
  88. $nichChoreDesc = 'Some items are lying on the ground and your bed looks untidy.'
  89. else
  90. nichChoreTimeF = 4
  91. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bedServantDirty3.jpg'
  92. $nichChoreDesc = 'It appears as if most of your possessions are lying on the ground and your bed looks untidy. Also there is some visible dust on the shelves.'
  93. end
  94. elseif $ARGS[1] = 'bathServant':
  95. $location_type = 'event'
  96. menu_off = 1
  97. nichChoreID = 3
  98. nichChoreTimeF = 1
  99. $nichChoreType = 'bath'
  100. $nichChoreLoc = 'bathServant'
  101. $nichChoreActCaption = 'Inspect Room'
  102. nichTimeBQuick = 10
  103. nichTimeBNormal = 20
  104. nichTimeBDiligent = -1
  105. if nichChoreState[nichChoreID] = 0:
  106. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathroomServant.jpg'
  107. $nichChoreDesc = 'Apart from tiny inperfections you can''t avoid while using your shower and toilet your bathroom is perfectly clean.'
  108. elseif nichChoreState[nichChoreID] <= 5:
  109. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathServantDirty1.jpg'
  110. $nichChoreDesc = 'There is a small amount of lime in the shower and you should scrub the toilet. The floor could also use some cleaning.'
  111. elseif nichChoreState[nichChoreID] <= 15:
  112. nichChoreTimeF = 2
  113. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathServantDirty2.jpg'
  114. $nichChoreDesc = 'Your beauty products appliances clutter your sink. In addition there is some amount of lime in the shower and you should scrub the toilet. The floor could also use some cleaning.'
  115. else
  116. nichChoreTimeF = 4
  117. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathServantDirty3.jpg'
  118. $nichChoreDesc = 'The condition of this bathroom is worse than most truck stop restrooms. It smells badly and is in dire need of cleaning.'
  119. end
  120. elseif $ARGS[1] = 'laundry':
  121. $location_type = 'event'
  122. menu_off = 1
  123. nichChoreID = 4
  124. nichChoreTimeF = 1
  125. $nichChoreType = 'laundry'
  126. $nichChoreLoc = 'bathServant'
  127. $nichChoreActCaption = 'Inspect Laundry'
  128. nichTimeBQuick = 60
  129. nichTimeBNormal = 120
  130. nichTimeBDiligent = 240
  131. if nichChoreState[nichChoreID] = 0:
  132. $nichTempPic = 'images/locations/city/citycenter/nichApartment/laundry0.jpg'
  133. $nichChoreDesc = 'There is no laundry to do right now.'
  134. elseif nichChoreState[nichChoreID] <= 15:
  135. $nichTempPic = 'images/locations/city/citycenter/nichApartment/laundry1.jpg'
  136. $nichChoreDesc = 'A small pile of laundry lies in front of the washing machine. It is hardly enough to fill the machine halfway.'
  137. elseif nichChoreState[nichChoreID] <= 25:
  138. $nichTempPic = 'images/locations/city/citycenter/nichApartment/laundry2.jpg'
  139. $nichChoreDesc = 'A pile of laundry lies in front of the washing machine waiting to be washed.'
  140. elseif nichChoreState[nichChoreID] <= 35:
  141. $nichTempPic = 'images/locations/city/citycenter/nichApartment/laundry3.jpg'
  142. $nichChoreDesc = 'A big pile of laundry lies in front of the washing machine. You will have to fill the machine several times to get it all done.'
  143. else
  144. $nichTempPic = 'images/locations/city/citycenter/nichApartment/laundry4.jpg'
  145. $nichChoreDesc = 'The pile of laundry in front of the washing machine is enormous. It appears as if the majority of Nicholas'' clothes is here instead of his wardrobe.'
  146. end
  147. elseif $ARGS[1] = 'tanya':
  148. $location_type = 'event'
  149. menu_off = 1
  150. nichChoreID = 5
  151. nichChoreTimeF = 1
  152. $nichChoreType = 'bed'
  153. $nichChoreLoc = 'tanya'
  154. $nichChoreActCaption = 'Inspect Room'
  155. nichTimeBQuick = 5
  156. nichTimeBNormal = 10
  157. nichTimeBDiligent = -1
  158. if nichChoreState[nichChoreID] = 0:
  159. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bedroomTanja.jpg'
  160. $nichChoreDesc = 'Tanyas room is cleaned up. There is no need to clean it again.'
  161. elseif nichChoreState[nichChoreID] <= 5:
  162. $nichTempPic = 'images/locations/city/citycenter/nichApartment/tanyaDirty1.jpg'
  163. $nichChoreDesc = 'The floor of Tanyas room is cleaned up, but she has cluttered her make-up all over her desk and her bed should be done.'
  164. elseif nichChoreState[nichChoreID] <= 15:
  165. nichChoreTimeF = 2
  166. $nichTempPic = 'images/locations/city/citycenter/nichApartment/tanyaDirty2.jpg'
  167. $nichChoreDesc = 'Tanyas bed needs to be done and she has cluttered some of her dirty clothes all over her floor. You should put them into the laundry.'
  168. else
  169. nichChoreTimeF = 4
  170. $nichTempPic = 'images/locations/city/citycenter/nichApartment/tanyaDirty3.jpg'
  171. $nichChoreDesc = 'Even entering Tanyas room is difficult since she has cluttered dirty and clean clothes all over the floor.'
  172. end
  173. elseif $ARGS[1] = 'masterbath':
  174. $location_type = 'event'
  175. menu_off = 1
  176. nichChoreID = 6
  177. nichChoreTimeF = 1
  178. $nichChoreType = 'bath'
  179. $nichChoreLoc = 'masterbath'
  180. $nichChoreActCaption = 'Inspect Room'
  181. nichTimeBQuick = 20
  182. nichTimeBNormal = 40
  183. nichTimeBDiligent = 60
  184. if nichChoreState[nichChoreID] = 0:
  185. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathroomMaster.jpg'
  186. $nichChoreDesc = 'Since the bathroom gets used over the day some tiny bits of spilled water and a small amount of untidiness can''t be avoided. There is no need for you to clean this bathroom now.'
  187. elseif nichChoreState[nichChoreID] <= 5:
  188. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathMasterDirty1.jpg'
  189. $nichChoreDesc = 'There are various items cluttered around the sink, the floor could be cleaned and the bathtub could be scrubbed.'
  190. elseif nichChoreState[nichChoreID] <= 15:
  191. nichChoreTimeF = 2
  192. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathMasterDirty2.jpg'
  193. $nichChoreDesc = 'The floor is covered in water and lime, the bathtub needs to be scrubbed and the toilet and the sink also require attention.'
  194. else
  195. nichChoreTimeF = 4
  196. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bathMasterDirty3.jpg'
  197. $nichChoreDesc = 'The bathroom is very dirty. There is also a unpleasant smell in the air.'
  198. end
  199. elseif $ARGS[1] = 'master':
  200. $location_type = 'event'
  201. menu_off = 1
  202. nichChoreID = 7
  203. nichChoreTimeF = 1
  204. $nichChoreType = 'bed'
  205. $nichChoreLoc = 'master'
  206. $nichChoreActCaption = 'Inspect Room'
  207. nichTimeBQuick = 5
  208. nichTimeBNormal = 10
  209. nichTimeBDiligent = -1
  210. if nichChoreState[nichChoreID] = 0:
  211. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bedroomMaster.jpg'
  212. $nichChoreDesc = 'The bedroom of Nicholas is in pristine condition. There is no need to clean it now.'
  213. elseif nichChoreState[nichChoreID] <= 5:
  214. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bedMasterDirty1.jpg'
  215. $nichChoreDesc = 'The bed of Nicholas need to be made. You could also sweep the floor.'
  216. elseif nichChoreState[nichChoreID] <= 15:
  217. nichChoreTimeF = 2
  218. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bedMasterDirty2.jpg'
  219. $nichChoreDesc = 'There are some clothes cluttered over the floor. You should put them into the laundry. The bed also needs to be made.'
  220. else
  221. nichChoreTimeF = 4
  222. $nichTempPic = 'images/locations/city/citycenter/nichApartment/bedMasterDirty3.jpg'
  223. $nichChoreDesc = 'There are clothes cluttered over the floor and the bed. The bed needs to be made and you should clean the floor.'
  224. end
  225. elseif $ARGS[1] = 'living':
  226. $location_type = 'event'
  227. menu_off = 1
  228. nichChoreID = 8
  229. nichChoreTimeF = 1
  230. $nichChoreType = 'furniture'
  231. $nichChoreLoc = 'living'
  232. $nichChoreActCaption = 'Inspect Room'
  233. nichTimeBQuick = 30
  234. nichTimeBNormal = 60
  235. nichTimeBDiligent = 120
  236. if nichChoreState[nichChoreID] = 0:
  237. $nichTempPic = 'images/locations/city/citycenter/nichApartment/living.jpg'
  238. $nichChoreDesc = 'The living room of Nicholas is in pristine condition. There is no need to clean it now.'
  239. elseif nichChoreState[nichChoreID] <= 5:
  240. $nichTempPic = 'images/locations/city/citycenter/nichApartment/livingDirty1.jpg'
  241. $nichChoreDesc = 'Some whine glasses and other items are standing around the living room. You could also remove dust from the furniture and clean the floor.'
  242. elseif nichChoreState[nichChoreID] <= 15:
  243. nichChoreTimeF = 2
  244. $nichTempPic = 'images/locations/city/citycenter/nichApartment/livingDirty2.jpg'
  245. $nichChoreDesc = 'A visible layer of dust covers the floor and some of the pieces of furniture.'
  246. else
  247. nichChoreTimeF = 4
  248. $nichTempPic = 'images/locations/city/citycenter/nichApartment/livingDirty3.jpg'
  249. $nichChoreDesc = 'There are many clusters of hair and dust all over the living room. Shou need to clean the floor and the furniture.'
  250. end
  251. elseif $ARGS[1] = 'kitchen':
  252. $location_type = 'event'
  253. menu_off = 1
  254. nichChoreID = 9
  255. nichChoreTimeF = 1
  256. $nichChoreType = 'kitchen'
  257. $nichChoreLoc = 'kitchen'
  258. $nichChoreActCaption = 'Inspect Room'
  259. nichTimeBQuick = 30
  260. nichTimeBNormal = 60
  261. nichTimeBDiligent = 120
  262. if nichChoreState[nichChoreID] = 0:
  263. $nichTempPic = 'images/locations/city/citycenter/nichApartment/kitchen.jpg'
  264. $nichChoreDesc = 'The kitchen is in pristine condition. There is no need to clean it now.'
  265. elseif nichChoreState[nichChoreID] <= 5:
  266. $nichTempPic = 'images/locations/city/citycenter/nichApartment/kitchenDirty1.jpg'
  267. $nichChoreDesc = 'There is some dirty dishes in the sink and the stove could use some cleaning.'
  268. elseif nichChoreState[nichChoreID] <= 15:
  269. nichChoreTimeF = 2
  270. $nichTempPic = 'images/locations/city/citycenter/nichApartment/kitchenDirty2.jpg'
  271. $nichChoreDesc = 'A pile of dishes fills the sink and the sorrounding area. The floor could use some cleaning and the stove is pretty dirty.'
  272. else
  273. nichChoreTimeF = 4
  274. $nichTempPic = 'images/locations/city/citycenter/nichApartment/kitchenDirty3.jpg'
  275. $nichChoreDesc = 'The kitchen is filled with dirty dishes. The stove is dirty and you should really clean up the floor. A bad smell is in the air.'
  276. end
  277. elseif $ARGS[1] = 'study':
  278. $location_type = 'event'
  279. menu_off = 1
  280. nichChoreID = 10
  281. nichChoreTimeF = 1
  282. $nichChoreType = 'furniture'
  283. $nichChoreLoc = 'study'
  284. $nichChoreActCaption = 'Inspect Room'
  285. nichTimeBQuick = 15
  286. nichTimeBNormal = 30
  287. nichTimeBDiligent = 60
  288. if nichChoreState[nichChoreID] = 0:
  289. $nichTempPic = 'images/locations/city/citycenter/nichApartment/study.jpg'
  290. $nichChoreDesc = 'The study is in pristine condition. There is no need to clean it now.'
  291. elseif nichChoreState[nichChoreID] <= 5:
  292. $nichTempPic = 'images/locations/city/citycenter/nichApartment/studyDirty1.jpg'
  293. $nichChoreDesc = 'Nicholas keeps his study in a tidy condition. Nevertheless there is a tiny amount of dust on the shelves.'
  294. elseif nichChoreState[nichChoreID] <= 15:
  295. nichChoreTimeF = 2
  296. $nichTempPic = 'images/locations/city/citycenter/nichApartment/studyDirty2.jpg'
  297. $nichChoreDesc = 'A small amount of dust is on the shelves. You could also clean the keyboard of Nicholas '' computer.'
  298. else
  299. nichChoreTimeF = 4
  300. $nichTempPic = 'images/locations/city/citycenter/nichApartment/studyDirty3.jpg'
  301. $nichChoreDesc = 'The furniture is covered in a thick layer of dust dust.'
  302. end
  303. end
  304. nichtTimeQuick = nichTimeBQuick * nichChoreTimeF
  305. nichTimeNormal = nichTimeBNormal * nichChoreTimeF
  306. nichTimeDiligent = nichTimeBDiligent * nichChoreTimeF
  307. if ARGS[2] = 1: jump 'nichChoreSkipInspect'
  308. act '<<$nichChoreActCaption>>':
  309. :nichChoreSkipInspect
  310. *clr & cla
  311. '<center><img <<$set_imgh>> src="<<$nichTempPic >>"></center>'
  312. '<<$nichChoreDesc>>'
  313. if nichOutfitState = 0:
  314. '<b><font color = red>You have to change into an appropriate outfit before cleaning up.</font></b>'
  315. elseif nichChoreState[nichChoreID] > 0:
  316. act '(<<nichtTimeQuick>> minutes) Clean quickly':
  317. gt 'nichChore', 'work', 1
  318. end
  319. act '(<<nichTimeNormal>> minutes) Clean normally':
  320. gt 'nichChore', 'work', 2
  321. end
  322. if nichTimeDiligent > 0:
  323. act '(<<nichTimeDiligent>> minutes) Clean diligently':
  324. gt 'nichChore', 'work', 3
  325. end
  326. end
  327. end
  328. if nichChoreMode = 0:
  329. act 'Don''t clean':
  330. gt $loc, 'return'
  331. end
  332. else
  333. gs 'nichChore', 'cleanApartmentActions',0
  334. end
  335. end
  336. elseif $ARGS[0] = 'work':
  337. !! Relies on some vars being set by 'nichChore','inspect'.
  338. !! ARG[1]:
  339. !! 1: quick
  340. !! 2: normal
  341. !! 3: diligent
  342. nichRand = rand(1,100)
  343. killvar '$nichChoreResultCode'
  344. killvar 'nichChoreResulChance'
  345. $nichTempPic = func('nichUtil','cleanPic',$nichChoreType,$nichChoreLoc)
  346. nichChoreResult = 0
  347. if nichChoreID = 0:
  348. if ARGS[1] = 1:
  349. $nichChoreDesc = 'You decide to clean the hallway as quickly as possible, not wasting your time with harder to reach spots or visiting a place twice.'
  350. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the floor at all. It is still as dirty as before.' & nichChoreResult = nichChoreState[nichChoreID]"
  351. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  352. if nichChoreState[nichChoreID] > 10:
  353. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the floor is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  354. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  355. end
  356. elseif ARGS[1] = 2:
  357. $nichChoreDesc = 'You carefully clean the hallway, making sure you also remove the dirt in hard to reach corners.'
  358. else
  359. $nichChoreDesc = 'You carefully clean the hallway, making sure you also remove the dirt in hard to reach corners. Afterwards you apply a special polish to protect the wooden floor from visible aging.'
  360. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Much to your delight the polish visibly enhances the appearance of the floor.' & nichChoreResult = -1"
  361. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  362. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The polish has no visible effect. The floor looks very clean nevertheless.'"
  363. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  364. end
  365. elseif nichChoreID = 1:
  366. if ARGS[1] = 1:
  367. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  368. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the room at all. It is still as dirty as before.' & nichChoreResult = nichChoreState[nichChoreID]"
  369. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  370. if nichChoreState[nichChoreID] > 10:
  371. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  372. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  373. end
  374. elseif ARGS[1] = 2:
  375. $nichChoreDesc = 'You carefully clean the room, using the recommended cleaning agents for the toilet, the sink and the floor. You also make sure that the towels are neatly folded.'
  376. else
  377. $nichChoreDesc = 'You carefully clean the room, using the recommended cleaning agents for the toilet, the sink and the floor. You also apply a special perfume to improve the smell and fold some of the towels into hearts and swans.'
  378. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'You managed to create a perfect ambiente for every guest who wants to use this room.' & nichChoreResult = -1"
  379. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  380. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The effect is not as stunning as you hoped it to be but the room is at least perfectly clean.'"
  381. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  382. end
  383. elseif nichChoreID = 2:
  384. if ARGS[1] = 1:
  385. $nichChoreDesc = 'You clean your room as quickly as possible.'
  386. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the room at all. It is still as dirty as before.' & nichChoreResult = nichChoreState[nichChoreID]"
  387. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  388. if nichChoreState[nichChoreID] > 10:
  389. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  390. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  391. end
  392. elseif ARGS[1] = 2:
  393. $nichChoreDesc = 'Your carefully clean your room.'
  394. end
  395. elseif nichChoreID = 3:
  396. if ARGS[1] = 1:
  397. $nichChoreDesc = 'You clean the room as quickly as possible.'
  398. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the room at all. It is still as dirty as before.' & nichChoreResult = nichChoreState[nichChoreID]"
  399. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  400. if nichChoreState[nichChoreID] > 10:
  401. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  402. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  403. end
  404. elseif ARGS[1] = 2:
  405. $nichChoreDesc = 'Your carefully clean the room.'
  406. end
  407. elseif nichChoreID = 4:
  408. if ARGS[1] = 1:
  409. $nichChoreDesc = 'You think about seperating the clothes before you wash them, but then you decide to put them into the washing machine all at once. While the washing machine washes them you wash the delicates by hand by putting all of them into the sink at the same time. After the washing washine is done you place its load in the dryer. Afterwards you iron the clothes quickly.'
  410. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are done you realize that one of the shirts of Nicholas has some visible spots of color on it. There is no way you could fix that. Some other clothes are also affected, but you might get them clean by washing them again.' & nichChoreModLaundry1 += 1 & nichChoreResult = max (0,nichChoreState[nichChoreID] - 5)"
  411. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10
  412. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Taking a look at the laundry you realize that you didn''t manage to clean it properly. You will have to do it all over again.' & nichChoreResult = nichChoreState[nichChoreID]"
  413. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 40
  414. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "nichChoreResult = max (0,nichChoreState[nichChoreID] - 15)"
  415. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10000
  416. elseif ARGS[1] = 2:
  417. $nichChoreDesc = 'You start by seperating the laundry by color. While the washing machine washes the dark and then the light clothes you wash the delicates by hand. Whenever the washing washine is done you place its load in the dryer. Everything that comes from the dryer you iron.'
  418. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "nichChoreResult = max (0,nichChoreState[nichChoreID] - 20)"
  419. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10000
  420. else
  421. $nichChoreDesc = 'You start by seperating the laundry by color and fabric. One after one you have the washing machine wash the dark cotton, white cotton, dark cloth and light cloth. Meanwhile you wash the delicates by hand. Whenever the washing washine is done you place its load in the dryer. Everything that come from the dryer you iron, making sure you don''t miss a single crease.'
  422. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'In the end the clothes smell great and are completely free of wrinkley. Nicholas surely will be pleased.' & nichChoreModLaundry2 += 1 & nichChoreResult = max (0,nichChoreState[nichChoreID] - 30)"
  423. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  424. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "nichChoreResult = max (0,nichChoreState[nichChoreID] - 30)"
  425. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10000
  426. end
  427. elseif nichChoreID = 5:
  428. if ARGS[1] = 1:
  429. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  430. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the room at all. It is still as dirty as before.' & nichChoreResult = nichChoreState[nichChoreID]"
  431. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  432. if nichChoreState[nichChoreID] > 10:
  433. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  434. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  435. end
  436. elseif ARGS[1] = 2:
  437. $nichChoreDesc = 'You carefully clean the room, making sure you place every posession of Tanya at the right place so she can easily find it again.'
  438. end
  439. elseif nichChoreID = 6:
  440. if ARGS[1] = 1:
  441. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  442. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the room at all. It is still as dirty as before.' & nichChoreResult = nichChoreState[nichChoreID]"
  443. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  444. if nichChoreState[nichChoreID] > 10:
  445. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  446. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  447. end
  448. elseif ARGS[1] = 2:
  449. $nichChoreDesc = 'You carefully clean the room, using the recommended cleaning agents for the toilet, the sink and the floor. You also make sure that the towels are neatly folded.'
  450. else
  451. $nichChoreDesc = 'You carefully clean the room, using the recommended cleaning agents for the toilet, the bathtub, the shower, the sink and the floor. You also apply a special perfume to improve the smell and fold some of the towels into hearts and swans.'
  452. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'You managed to create a perfect ambiente for every family member who wants to use this room.' & nichChoreResult = -1"
  453. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  454. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The effect is not as stunning as you hoped it to be but the room is at least perfectly clean.'"
  455. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  456. end
  457. elseif nichChoreID = 7:
  458. if ARGS[1] = 1:
  459. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  460. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the room at all. It is still as dirty as before.' & nichChoreResult = nichChoreState[nichChoreID]"
  461. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  462. if nichChoreState[nichChoreID] > 10:
  463. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  464. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  465. end
  466. elseif ARGS[1] = 2:
  467. $nichChoreDesc = 'You carefully clean the room, making sure you place every posession of Nicholas at the right place so he can easily find it again.'
  468. end
  469. elseif nichChoreID = 8:
  470. if ARGS[1] = 1:
  471. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  472. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the room at all. It is still as dirty as before.' & nichChoreResult = nichChoreState[nichChoreID]"
  473. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  474. if nichChoreState[nichChoreID] > 10:
  475. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  476. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  477. end
  478. elseif ARGS[1] = 2:
  479. $nichChoreDesc = 'You carefully clean the room, making sure you catch every tiny bit of dust.'
  480. else
  481. $nichChoreDesc = 'You carefully clean the room, using the recommended cleaning agents for the the floor and the various pieces of furniture.'
  482. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'You managed to create a perfect ambiente for every family member who wants to use this room.' & nichChoreResult = -1"
  483. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  484. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The effect is not as stunning as you hoped it to be but the room is at least perfectly clean.'"
  485. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  486. end
  487. elseif nichChoreID = 9:
  488. if ARGS[1] = 1:
  489. $nichChoreDesc = 'You jam all dirty dishes in the dishwasher at once and hastily clean up the stove and the floor.'
  490. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the room at all. It is still as dirty as before and the dishes didn''t get clean either.' & nichChoreResult = nichChoreState[nichChoreID]"
  491. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  492. if nichChoreState[nichChoreID] > 10:
  493. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  494. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  495. end
  496. elseif ARGS[1] = 2:
  497. $nichChoreDesc = 'You carefully clean the room, making sure you clean the silverware by hand and using the recommended cleaning agents to clean the stove and the floor.'
  498. else
  499. $nichChoreDesc = 'You carefully clean the room. In order to get the silverware sparkling you use a special silver polish and you also clean the whine glasses by hand to remove every tiny spot of imperfection.'
  500. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The effect is very convincing. Nicholas will be pleased you payed extra attention to detail.' & nichChoreResult = -1"
  501. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  502. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The effect is not as stunning as you hoped it to be but the room and the dishes are at least perfectly clean.'"
  503. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  504. end
  505. elseif nichChoreID = 10:
  506. if ARGS[1] = 1:
  507. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  508. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that you didn''t improve the condition of the room at all. It is still as dirty as before.' & nichChoreResult = nichChoreState[nichChoreID]"
  509. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  510. if nichChoreState[nichChoreID] > 10:
  511. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  512. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  513. end
  514. elseif ARGS[1] = 2:
  515. $nichChoreDesc = 'You carefully clean the room, making sure you catch every tiny bit of dust.'
  516. else
  517. $nichChoreDesc = 'You carefully clean the room, using the recommended cleaning agents for the the floor and the various pieces of furniture.'
  518. !! TODO: Hidden room reveal
  519. end
  520. end
  521. !! Default to an empty event to prevent infinite loops
  522. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = ''
  523. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10000
  524. nichI = 0
  525. :nichChoreResultLoop
  526. if nichRand <= nichChoreResulChance[nichI]:
  527. '<center><img <<$set_imgh>> src="<<$nichTempPic>>"></center>'
  528. $nichChoreDesc
  529. dynamic $nichChoreResultCode[nichI]
  530. else
  531. nichRand -= nichChoreResulChance[nichI]
  532. nichI += 1
  533. jump 'nichChoreResultLoop'
  534. end
  535. if ARGS[1] = 1:
  536. minut += nichtTimeQuick
  537. cleaning_exp += rand (0,1)
  538. elseif ARGS[1] = 2:
  539. minut += nichTimeNormal
  540. cleaning_exp += rand (1,3)
  541. else
  542. minut += nichTimeDiligent
  543. cleaning_exp += rand (1,5)
  544. end
  545. nichChoreState[nichChoreID] = nichChoreResult
  546. gs 'stat'
  547. killvar 'nichChoreResult'
  548. killvar '$nichChoreDesc'
  549. killvar '$nichChoreResultCode'
  550. killvar 'nichChoreResulChance'
  551. if nichChoreMode = 0:
  552. act 'Finish':
  553. gt $loc, 'return'
  554. end
  555. else
  556. gs 'nichChore', 'cleanApartmentActions',1
  557. end
  558. elseif $ARGS[0] = 'cleanApartment':
  559. if $ARGS[1] = '' or $ARGS[1] = 'start':
  560. nichChoreMode = 1
  561. if $nichChoreCurrent = '':
  562. $nichChoreCurrent = 'hallway'
  563. end
  564. gt 'nichChore', 'inspect', $nichChoreCurrent, 1
  565. elseif $ARGS[1] = 'end':
  566. killvar 'nichChoreMode'
  567. killvar '$nichChoreCurrent'
  568. gt $loc
  569. end
  570. elseif $ARGS[0] = 'cleanApartmentActions':
  571. !! ARGS[1]: whether to show the Clean Again-option (because it does not make sense if the room wasnt cleaned once)
  572. if nichChoreState[nichChoreID] > 0 and ARGS[1] = 1:
  573. act 'Clean again':
  574. gt 'nichChore', 'inspect', $nichChoreCurrent, 1
  575. end
  576. end
  577. if nichChoreID = 0:
  578. act 'Continue to guest cloakroom':
  579. $nichChoreCurrent = 'bathGuest'
  580. gt 'nichChore', 'inspect', 'bathGuest', 1
  581. end
  582. elseif nichChoreID = 1:
  583. act 'Continue to your bedroom':
  584. $nichChoreCurrent = 'servant'
  585. gt 'nichChore', 'inspect', 'servant', 1
  586. end
  587. elseif nichChoreID = 2:
  588. act 'Continue to your bathroom':
  589. $nichChoreCurrent = 'bathServant'
  590. gt 'nichChore', 'inspect', 'bathServant', 1
  591. end
  592. elseif nichChoreID = 3:
  593. act 'Check laundry':
  594. $nichChoreCurrent = 'laundry'
  595. gt 'nichChore', 'inspect', 'laundry', 1
  596. end
  597. elseif nichChoreID = 4:
  598. act 'Continue to Tanyas bedroom':
  599. $nichChoreCurrent = 'tanya'
  600. gt 'nichChore', 'inspect', 'tanya', 1
  601. end
  602. elseif nichChoreID = 5:
  603. act 'Continue to the master bathroom':
  604. $nichChoreCurrent = 'masterbath'
  605. gt 'nichChore', 'inspect', 'masterbath', 1
  606. end
  607. elseif nichChoreID = 6:
  608. act 'Continue to Nicholas'' bedroom':
  609. $nichChoreCurrent = 'master'
  610. gt 'nichChore', 'inspect', 'master', 1
  611. end
  612. elseif nichChoreID = 7:
  613. act 'Continue to the living room':
  614. $nichChoreCurrent = 'living'
  615. gt 'nichChore', 'inspect', 'living', 1
  616. end
  617. elseif nichChoreID = 8:
  618. act 'Continue to the kitchen':
  619. $nichChoreCurrent = 'kitchen'
  620. gt 'nichChore', 'inspect', 'kitchen', 1
  621. end
  622. elseif nichChoreID = 9:
  623. act 'Continue to the study':
  624. $nichChoreCurrent = 'study'
  625. gt 'nichChore', 'inspect', 'study', 1
  626. end
  627. elseif nichChoreID = 10:
  628. act 'Finish':
  629. gt 'nichChore', 'cleanApartment', 'end'
  630. end
  631. end
  632. if nichChoreID < 10:
  633. act 'Pause cleaning':
  634. gt $loc, 'return'
  635. end
  636. end
  637. end
  638. !!killvar 'nichChoreID'
  639. !!killvar 'nichChoreTimeF'
  640. !!killvar '$nichChoreType'
  641. !!killvar '$nichChoreLoc'
  642. !!killvar '$nichChoreDesc'
  643. !!killvar 'nichTimeBQuick'
  644. !!killvar 'nichTimeBNormal'
  645. !!killvar 'nichTimeBDiligent'
  646. !!killvar 'nichtTimeQuick'
  647. !!killvar 'nichTimeNormal'
  648. !!killvar 'nichTimeDiligently'
  649. --- nichChore ---------------------------------