1
0

nichChore.qsrc 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  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. !! ARGS[1]:
  339. !! 1: quick
  340. !! 2: normal
  341. !! 3: diligent
  342. !! ARGS[2]:
  343. !! 0: special events enabled (default)
  344. !! 1: special events disabled
  345. !! Events which have to happen before the work result is computed
  346. if ARGS[2] ! 1:
  347. if nichChoreID = 5:
  348. !! Tanyas room
  349. if nichTanyaOpinion > 0 and nichTanyaOpinion < 30 and nichTanyaDominance >= 20:
  350. !! if Tanya and Sveta are in a relationship and Tanya is dominant
  351. nichTanyPresent = FUNC('nichUtil','isPresent','tanya','bedroomTanya')
  352. if nichTanyPresent ! 0:
  353. !!and if Tanya is actually in the room
  354. nichRand = rand(1,100)
  355. if nichRand <= 30 or nichDebug = 1:
  356. '<center><img <<$set_imgh>> src="images/characters/city/tanya/encounter/dom1.jpg"></center>'
  357. 'Has you start cleaning Tanya approaches you from behind and smack you on your butt.'
  358. '"Hey <<$pcs_nickname>>, don''t miss this edge over there." she points at a small mess she obviously created on purpose.'
  359. act 'Comply':
  360. nichTanyaDominance += 2
  361. 'Once you are done cleaning up the first spot Tanya points you to another one. She obviously enjoys bossing you around, taking several opportunities to hit you on you butt again.'
  362. minut += 10
  363. cla
  364. act 'Continue cleaning':
  365. gt 'nichChore', 'work', ARGS[1], 1
  366. end
  367. end
  368. act 'Tell her to stop this':
  369. nichTanyaDominance -= 3
  370. 'She looks a little bit dissapointed as you tell her that you are not in the mood for this right now and want to focus on your work.'
  371. cla
  372. act 'Continue cleaning':
  373. gt 'nichChore', 'work', ARGS[1], 1
  374. end
  375. end
  376. exit
  377. end
  378. end
  379. end
  380. end
  381. end
  382. nichRand = rand(1,100)
  383. killvar '$nichChoreResultCode'
  384. killvar 'nichChoreResulChance'
  385. $nichTempPic = func('nichUtil','cleanPic',$nichChoreType,$nichChoreLoc)
  386. nichChoreResult = 0
  387. if nichChoreID = 0:
  388. if ARGS[1] = 1:
  389. $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.'
  390. $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]"
  391. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  392. if nichChoreState[nichChoreID] > 10:
  393. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the floor is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  394. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  395. end
  396. elseif ARGS[1] = 2:
  397. $nichChoreDesc = 'You carefully clean the hallway, making sure you also remove the dirt in hard to reach corners.'
  398. else
  399. $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.'
  400. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Much to your delight the polish visibly enhances the appearance of the floor.' & nichChoreResult = -1"
  401. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  402. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The polish has no visible effect. The floor looks very clean nevertheless.'"
  403. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  404. end
  405. elseif nichChoreID = 1:
  406. if ARGS[1] = 1:
  407. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  408. $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]"
  409. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  410. if nichChoreState[nichChoreID] > 10:
  411. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  412. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  413. end
  414. elseif ARGS[1] = 2:
  415. $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.'
  416. else
  417. $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.'
  418. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'You managed to create a perfect ambiente for every guest who wants to use this room.' & nichChoreResult = -1"
  419. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  420. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The effect is not as stunning as you hoped it to be but the room is at least perfectly clean.'"
  421. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  422. end
  423. elseif nichChoreID = 2:
  424. if ARGS[1] = 1:
  425. $nichChoreDesc = 'You clean your room as quickly as possible.'
  426. $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]"
  427. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  428. if nichChoreState[nichChoreID] > 10:
  429. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  430. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  431. end
  432. elseif ARGS[1] = 2:
  433. $nichChoreDesc = 'Your carefully clean your room.'
  434. end
  435. elseif nichChoreID = 3:
  436. if ARGS[1] = 1:
  437. $nichChoreDesc = 'You clean the room as quickly as possible.'
  438. $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]"
  439. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  440. if nichChoreState[nichChoreID] > 10:
  441. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  442. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  443. end
  444. elseif ARGS[1] = 2:
  445. $nichChoreDesc = 'Your carefully clean the room.'
  446. end
  447. elseif nichChoreID = 4:
  448. if ARGS[1] = 1:
  449. $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.'
  450. $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)"
  451. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10
  452. $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]"
  453. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 40
  454. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "nichChoreResult = max (0,nichChoreState[nichChoreID] - 15)"
  455. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10000
  456. elseif ARGS[1] = 2:
  457. $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.'
  458. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "nichChoreResult = max (0,nichChoreState[nichChoreID] - 20)"
  459. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10000
  460. else
  461. $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.'
  462. $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)"
  463. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  464. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "nichChoreResult = max (0,nichChoreState[nichChoreID] - 30)"
  465. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10000
  466. end
  467. elseif nichChoreID = 5:
  468. if ARGS[1] = 1:
  469. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  470. $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]"
  471. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  472. if nichChoreState[nichChoreID] > 10:
  473. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  474. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  475. end
  476. elseif ARGS[1] = 2:
  477. $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.'
  478. end
  479. elseif nichChoreID = 6:
  480. if ARGS[1] = 1:
  481. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  482. $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]"
  483. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  484. if nichChoreState[nichChoreID] > 10:
  485. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  486. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  487. end
  488. elseif ARGS[1] = 2:
  489. $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.'
  490. else
  491. $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.'
  492. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'You managed to create a perfect ambiente for every family member who wants to use this room.' & nichChoreResult = -1"
  493. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  494. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The effect is not as stunning as you hoped it to be but the room is at least perfectly clean.'"
  495. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  496. end
  497. elseif nichChoreID = 7:
  498. if ARGS[1] = 1:
  499. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  500. $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]"
  501. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  502. if nichChoreState[nichChoreID] > 10:
  503. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  504. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  505. end
  506. elseif ARGS[1] = 2:
  507. $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.'
  508. end
  509. elseif nichChoreID = 8:
  510. if ARGS[1] = 1:
  511. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  512. $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]"
  513. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  514. if nichChoreState[nichChoreID] > 10:
  515. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  516. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  517. end
  518. elseif ARGS[1] = 2:
  519. $nichChoreDesc = 'You carefully clean the room, making sure you catch every tiny bit of dust.'
  520. else
  521. $nichChoreDesc = 'You carefully clean the room, using the recommended cleaning agents for the the floor and the various pieces of furniture.'
  522. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'You managed to create a perfect ambiente for every family member who wants to use this room.' & nichChoreResult = -1"
  523. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  524. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The effect is not as stunning as you hoped it to be but the room is at least perfectly clean.'"
  525. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  526. end
  527. elseif nichChoreID = 9:
  528. if ARGS[1] = 1:
  529. $nichChoreDesc = 'You jam all dirty dishes in the dishwasher at once and hastily clean up the stove and the floor.'
  530. $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]"
  531. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  532. if nichChoreState[nichChoreID] > 10:
  533. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  534. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  535. end
  536. elseif ARGS[1] = 2:
  537. $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.'
  538. else
  539. $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.'
  540. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'The effect is very convincing. Nicholas will be pleased you payed extra attention to detail.' & nichChoreResult = -1"
  541. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = pcs_cleaning
  542. $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.'"
  543. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 100
  544. end
  545. elseif nichChoreID = 10:
  546. if ARGS[1] = 1:
  547. $nichChoreDesc = 'You clean the room as quickly as possible, cleaning every spot only once and using as few different cleaning agents as possible.'
  548. $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]"
  549. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  550. if nichChoreState[nichChoreID] > 10:
  551. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = "*pl 'Once you are finished you realize that the room is now cleaner, but not perfectly clean.' & nichChoreResult = nichChoreState[nichChoreID] - 10"
  552. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 30
  553. end
  554. elseif ARGS[1] = 2:
  555. $nichChoreDesc = 'You carefully clean the room, making sure you catch every tiny bit of dust.'
  556. else
  557. $nichChoreDesc = 'You carefully clean the room, using the recommended cleaning agents for the the floor and the various pieces of furniture.'
  558. !! TODO: Hidden room reveal
  559. end
  560. end
  561. !! Default to an empty event to prevent infinite loops
  562. $nichChoreResultCode[ARRSIZE('$nichChoreResultCode')] = ''
  563. nichChoreResulChance[ARRSIZE('nichChoreResulChance')] = 10000
  564. nichI = 0
  565. :nichChoreResultLoop
  566. if nichRand <= nichChoreResulChance[nichI]:
  567. '<center><img <<$set_imgh>> src="<<$nichTempPic>>"></center>'
  568. $nichChoreDesc
  569. dynamic $nichChoreResultCode[nichI]
  570. else
  571. nichRand -= nichChoreResulChance[nichI]
  572. nichI += 1
  573. jump 'nichChoreResultLoop'
  574. end
  575. if ARGS[1] = 1:
  576. minut += nichtTimeQuick
  577. cleaning_exp += rand (0,1)
  578. elseif ARGS[1] = 2:
  579. minut += nichTimeNormal
  580. cleaning_exp += rand (1,3)
  581. else
  582. minut += nichTimeDiligent
  583. cleaning_exp += rand (1,5)
  584. end
  585. nichChoreState[nichChoreID] = nichChoreResult
  586. gs 'stat'
  587. killvar 'nichChoreResult'
  588. killvar '$nichChoreDesc'
  589. killvar '$nichChoreResultCode'
  590. killvar 'nichChoreResulChance'
  591. if nichChoreMode = 0:
  592. act 'Finish':
  593. gt $loc, 'return'
  594. end
  595. else
  596. gs 'nichChore', 'cleanApartmentActions',1
  597. end
  598. elseif $ARGS[0] = 'cleanApartment':
  599. if $ARGS[1] = '' or $ARGS[1] = 'start':
  600. nichChoreMode = 1
  601. if $nichChoreCurrent = '':
  602. $nichChoreCurrent = 'hallway'
  603. end
  604. gt 'nichChore', 'inspect', $nichChoreCurrent, 1
  605. elseif $ARGS[1] = 'end':
  606. killvar 'nichChoreMode'
  607. killvar '$nichChoreCurrent'
  608. gt $loc
  609. end
  610. elseif $ARGS[0] = 'cleanApartmentActions':
  611. !! ARGS[1]: whether to show the Clean Again-option (because it does not make sense if the room wasnt cleaned once)
  612. if nichChoreState[nichChoreID] > 0 and ARGS[1] = 1:
  613. act 'Clean again':
  614. gt 'nichChore', 'inspect', $nichChoreCurrent, 1
  615. end
  616. end
  617. if nichChoreID = 0:
  618. act 'Continue to guest cloakroom':
  619. $nichChoreCurrent = 'bathGuest'
  620. gt 'nichChore', 'inspect', 'bathGuest', 1
  621. end
  622. elseif nichChoreID = 1:
  623. act 'Continue to your bedroom':
  624. $nichChoreCurrent = 'servant'
  625. gt 'nichChore', 'inspect', 'servant', 1
  626. end
  627. elseif nichChoreID = 2:
  628. act 'Continue to your bathroom':
  629. $nichChoreCurrent = 'bathServant'
  630. gt 'nichChore', 'inspect', 'bathServant', 1
  631. end
  632. elseif nichChoreID = 3:
  633. act 'Check laundry':
  634. $nichChoreCurrent = 'laundry'
  635. gt 'nichChore', 'inspect', 'laundry', 1
  636. end
  637. elseif nichChoreID = 4:
  638. act 'Continue to Tanyas bedroom':
  639. $nichChoreCurrent = 'tanya'
  640. gt 'nichChore', 'inspect', 'tanya', 1
  641. end
  642. elseif nichChoreID = 5:
  643. act 'Continue to the master bathroom':
  644. $nichChoreCurrent = 'masterbath'
  645. gt 'nichChore', 'inspect', 'masterbath', 1
  646. end
  647. elseif nichChoreID = 6:
  648. act 'Continue to Nicholas'' bedroom':
  649. $nichChoreCurrent = 'master'
  650. gt 'nichChore', 'inspect', 'master', 1
  651. end
  652. elseif nichChoreID = 7:
  653. act 'Continue to the living room':
  654. $nichChoreCurrent = 'living'
  655. gt 'nichChore', 'inspect', 'living', 1
  656. end
  657. elseif nichChoreID = 8:
  658. act 'Continue to the kitchen':
  659. $nichChoreCurrent = 'kitchen'
  660. gt 'nichChore', 'inspect', 'kitchen', 1
  661. end
  662. elseif nichChoreID = 9:
  663. act 'Continue to the study':
  664. $nichChoreCurrent = 'study'
  665. gt 'nichChore', 'inspect', 'study', 1
  666. end
  667. elseif nichChoreID = 10:
  668. act 'Finish':
  669. gt 'nichChore', 'cleanApartment', 'end'
  670. end
  671. end
  672. if nichChoreID < 10:
  673. act 'Pause cleaning':
  674. gt $loc, 'return'
  675. end
  676. end
  677. end
  678. !!killvar 'nichChoreID'
  679. !!killvar 'nichChoreTimeF'
  680. !!killvar '$nichChoreType'
  681. !!killvar '$nichChoreLoc'
  682. !!killvar '$nichChoreDesc'
  683. !!killvar 'nichTimeBQuick'
  684. !!killvar 'nichTimeBNormal'
  685. !!killvar 'nichTimeBDiligent'
  686. !!killvar 'nichtTimeQuick'
  687. !!killvar 'nichTimeNormal'
  688. !!killvar 'nichTimeDiligently'
  689. --- nichChore ---------------------------------