nichUtil.qsrc 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  1. # nichUtil
  2. !! Used variables-
  3. !! Prefix- nich
  4. !! nichWork- 0= does not work for nicholas and never has, 1=has agreed to work for Nicholas but has not introduced herself yet, 2= currently works for nicholas, 3= quit job in good faith and could get hired again, 4= quit job in bad faith or got thrown out and nicholas is blocked
  5. !! nichWorkState- 0= sample days, 1= fully employed
  6. !! nichPerformance- ranging from 0 (fired) to 100 (best)
  7. !! nichHired- the day Sveta was hired
  8. !! nichVacationFrom- the first free day if Sveta gets some time off
  9. !! nichVactionTil- the last free day if Sveta gets some time off (=nichVacationFrom if she has one free day)
  10. !! nichLastWorkDay- the last day Sveta was in the appartment... needed because otherwise the player could avoid work performance checks by just not showing up here
  11. !! nichOutfitState- 0=not wearing an appropriate outfit, 1=wearing an appropriate outfit
  12. !! nichSalaryBase
  13. !! nichSalaryNext
  14. !! nichSalaryOutstanding
  15. if $ARGS[0] = '' or $ARGS[0] = 'start':
  16. 'This page should never appear. Please report this bug including a description of how you got here.'
  17. elseif $ARGS[0] = 'debug':
  18. if $ARGS[1] = 'debugToggle':
  19. nichDebug = 1 - nichDebug
  20. elseif $ARGS[1] = 'galaTrainingToggle':
  21. nichGalaTraining = 1 - nichGalaTraining
  22. elseif $ARGS[1] = 'chore':
  23. if $ARGS[3] = 'min':
  24. nichChoreState[ARGS[2]] = 0
  25. elseif $ARGS[3] = '1':
  26. nichChoreState[ARGS[2]] += 1
  27. elseif $ARGS[3] = '5':
  28. nichChoreState[ARGS[2]] += 5
  29. end
  30. elseif $ARGS[1] = 'evaluation':
  31. if $ARGS[2] = 'silent':
  32. gs 'nichNicholas','evaluation', 'silent'
  33. end
  34. elseif $ARGS[1] = 'shortcut':
  35. if $ARGS[2] = 'meetTanya':
  36. !! abonement is a var from fit
  37. gs 'nichUtil','clearVars'
  38. abonement = 30
  39. nichWork = 0
  40. nichTanyaOpinion = 0
  41. nichTanyaFuckCounter = 0
  42. gt 'fit','start'
  43. elseif $ARGS[2] = 'getHired':
  44. nichWork = 0
  45. nichTanyaOpinion = 1
  46. nichJobRefused = 0
  47. nichTanyaFuckCounter = 6
  48. hour = 16
  49. gt 'down'
  50. end
  51. end
  52. '<center><b>Nicholas'' Apartment Storyline Debug</b></center>'
  53. '<i><b>Debug mode</b>: display debug messages and force random events to fire as often as possible</i>'
  54. if nichDebug = 1:
  55. 'Debug mode: <a href="exec: gt ''nichUtil'', ''debug'', ''debugToggle''">Enabled</a>'
  56. else
  57. 'Debug mode: <a href="exec: gt ''nichUtil'', ''debug'', ''debugToggle''">Disabled</a>'
  58. end
  59. *nl
  60. '<i><b>Shortcuts</b></i>'
  61. '<i>The following options will set and change a whole bunch of variables and might transport you to another place. Important: every shortcut has been created with a debug scenario in mind and won''t set/reset every storyline-variable. Expect weird behavior.</i>'
  62. '<a href="exec: gt ''nichUtil'', ''debug'',''shortcut'',''meetTanya''">Meet Tanya</a>: Sets you up to meet Tanya. Go to the dressing room. She is the ''cute girl''. Meeting her has a random chance unless you have activated debug mode.'
  63. '<a href="exec: gt ''nichUtil'', ''debug'',''shortcut'',''getHired''">Get hired</a>: You visited Tanya often enough for her to offer you the job as the live-in maid.'
  64. *nl
  65. '<i><b>Job performance</b></i>'
  66. 'Overall performance (higher=better): <<nichPerformance>>'
  67. '<a href="exec: gt ''nichUtil'', ''debug'', ''evaluation'', ''silent''">Get silent performance evaluation</a>'
  68. '<a href="exec: gt ''nichNicholas'', ''evaluation''">Get detailed performance evaluation</a>'
  69. *nl
  70. '<i><b>Chore state</b>: higher numbers are worse</i>'
  71. 'Hallway: <<nichChoreState[0]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 0, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 0, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 0, ''5''">+5</a>'
  72. 'Guest cloakroom: <<nichChoreState[1]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 1, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 1, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 1, ''5''">+5</a>'
  73. 'Maid bedroom: <<nichChoreState[2]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 2, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 2, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 2, ''5''">+5</a>'
  74. 'Maid bathroom: <<nichChoreState[3]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 3, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 3, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 3, ''5''">+5</a>'
  75. 'Laundry: <<nichChoreState[4]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 4, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 4, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 4, ''5''">+5</a>'
  76. 'Tanya bedroom: <<nichChoreState[5]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 5, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 5, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 5, ''5''">+5</a>'
  77. 'Master bathroom: <<nichChoreState[6]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 6, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 6, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 6, ''5''">+5</a>'
  78. 'Master bedroom: <<nichChoreState[7]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 7, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 7, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 7, ''5''">+5</a>'
  79. 'Living room: <<nichChoreState[8]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 8, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 8, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 8, ''5''">+5</a>'
  80. 'Kitchen: <<nichChoreState[9]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 9, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 9, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 9, ''5''">+5</a>'
  81. 'Study: <<nichChoreState[10]>> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 10, ''min''">min</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 10, ''1''">+1</a> <a href="exec: gt ''nichUtil'', ''debug'', ''chore'', 10, ''5''">+5</a>'
  82. *nl
  83. '<i><b>NPCs</b></i>'
  84. '<b>Gala</b>'
  85. if nichGalaTraining = 1:
  86. 'Gala Training: <a href="exec: gt ''nichUtil'', ''debug'', ''galaTrainingToggle''">Enabled</a>'
  87. else
  88. 'Gala Training: <a href="exec: gt ''nichUtil'', ''debug'', ''galaTrainingToggle''">Disabled</a>'
  89. end
  90. '<b>Tanya</b>'
  91. 'You fucked Tanya <<nichTanyaFuckCounter>> times'
  92. 'The last time you fucked Tanya was '+(daystart-nichTanyaFuckLast)+' days ago'
  93. 'Tanya has a dominance of <<nichTanyaDominance>> (range: -100 - 100)'
  94. act 'DEBUG: New Workday':
  95. gs 'nichUtil', 'startWorkday'
  96. end
  97. act 'Back':
  98. gt $menu_loc
  99. end
  100. elseif $ARGS[0] = 'startWorkday':
  101. nichMissedWorkdays = daystart - nichLastWorkDay - 1
  102. if nickHired + 1 = daystart:
  103. !! this is the first workday ever
  104. nichMissedWorkdays = 0
  105. elseif nichVactionTil + 1 = daystart:
  106. !! this is the first day Sveta has to work after a vacation... maybe work piled up?
  107. nichMissedWorkdays = nichMissedWorkdays - nichVactionTil + nichVacationFrom -1
  108. elseif nichVactionTil >= daystart and nichVacationFrom <= daystart:
  109. !! Sveta does not have to work today
  110. nichMissedWorkdays = nichVacationFrom - nichLastWorkDay - 1
  111. end
  112. if nichMissedWorkdays > 0:
  113. !!Sveta has missed a workday... very bad
  114. nichPerformance -= 40 * nichMissedWorkdays
  115. if nichPerformance <= 0:
  116. nichNote = 1
  117. !!'You see a note hanging at the door to your room.'
  118. !!'"<<$pcs_nichname>>, you missed work. This is unacceptable. Take your stuff and leave. You are fired. -Nicholas"'
  119. !!'You see all your belongings standing in front of the door prepared for your departure.'
  120. !!gt 'nichUtil', 'fired'
  121. else
  122. nichNote = 2
  123. !!'You see a note hanging at the door to your room.'
  124. !!'"<<$pcs_nichname>>, you missed work. This is unacceptable. I expect this not to happen again. -Nicholas"'
  125. end
  126. elseif daystart > nichEvaluationLastReq and nichEvaluationLast < nichEvaluationLastReq:
  127. !! Sveta has missed her last evaluation
  128. !! Perform silent evaluation right now
  129. gs 'nichNicholas','evaluation', 'silent'
  130. !! Dont forget that this evaluation was for yesterday
  131. nichEvaluationLast = daystart - 1
  132. nichPerformance -= 20
  133. if nichPerformance <= 0:
  134. nichNote = 11
  135. !!'You see a note hanging at the door to your room.'
  136. !!'"<<$pcs_nichname>>, you missed your last evaluation. This is unacceptable. Take your stuff and leave. You are fired. -Nicholas"'
  137. !!'You see all your belongings standing in front of the door prepared for your departure.'
  138. !!gt 'nichUtil', 'fired'
  139. else
  140. nichNote = 12
  141. !!'You see a note hanging at the door to your room.'
  142. !!'"<<$pcs_nichname>>, you missed your last evaluation. This is unacceptable. I expect this not to happen again. -Nicholas"'
  143. end
  144. end
  145. nichLastWorkDay = daystart
  146. if nichWorkState > 0:
  147. nichEvaluationLastReq = 0
  148. else
  149. nichEvaluationLastReq = daystart
  150. end
  151. !! 0: hallway
  152. nichChoreState[0] += 5
  153. !! 1: guest bathroom
  154. nichChoreState[1] += 5
  155. !! 2: servant bedroom
  156. nichChoreState[2] += 5
  157. !! 3: servant bathroom
  158. nichChoreState[3] += 5
  159. !! 4: laundry
  160. nichChoreState[4] += 5
  161. !! 5: tanya bedroom, if nichTanyaRoom = 1 she will clean it herself
  162. if nichTanyaRoom = 0:
  163. nichChoreState[5] += 5
  164. end
  165. !! 6: master bathroom
  166. nichChoreState[6] += 5
  167. !! 7: master bedroom
  168. nichChoreState[7] += 5
  169. !! 8: living room
  170. nichChoreState[8] += 5
  171. !! 9: kitchen
  172. nichChoreState[9] += 5
  173. !!10: study
  174. nichChoreState[10] += 5
  175. !! Salary
  176. !! Sveta can collect it from a letter in her room
  177. if day = 1:
  178. nichSalaryOutstanding += nichSalaryNext
  179. nichSalaryNext = nichSalaryBase
  180. end
  181. !! NPC behaviour
  182. !! Gala will give up talking smack about Sveta after 5 days
  183. if nichGalaOpponent >= 10 and nichGalaOpponent < 20 and daystart > nichGalaOpponentDay + 5:
  184. nichGalaOpponent = 20
  185. elseif nichGalaOpponent = 30:
  186. nichGalaOpponent = 31
  187. end
  188. !! get rid of all variables concerning Nicholas except for nichWork
  189. elseif $ARGS[0] = 'clearVars':
  190. !!System vars
  191. !!Do not kill nichDebug
  192. killvar 'nichRand'
  193. killvar '$nichTempPic'
  194. killvar '$nichTemp'
  195. !!Work vars
  196. !!Do not kill nichWork
  197. killvar 'nichWorkState'
  198. killvar 'nichNote'
  199. killvar 'nichLastWorkDay'
  200. killvar 'nichMissedWorkdays'
  201. killvar 'nichAfterBFEvent'
  202. killvar 'nichEvaluationLast'
  203. killvar 'nichEvaluationLastReq'
  204. killvar 'nichHotelReferral'
  205. killvar 'nickHired'
  206. killvar 'nichHireMode'
  207. killvar 'nichJobRefused'
  208. killvar 'nichJobRefusedTReact'
  209. killvar 'nichPerformance'
  210. killvar 'nichSalaryNext'
  211. killvar 'nichCleanAppropriate'
  212. killvar 'nichOutfitState'
  213. !!NPC vars
  214. killvar 'nichKnowsCook'
  215. killvar 'nichCookPresent'
  216. killvar '$nichGalaAct'
  217. killvar '$nichNichAct'
  218. killvar '$nichTanyAct'
  219. killvar 'nichGalaPresent'
  220. killvar 'nichNichPresent'
  221. killvar 'nichTanyPresent'
  222. killvar 'nichGalaKnowsPT'
  223. killvar 'nichGalaOpinion'
  224. killvar 'nichGalaOpponent'
  225. killvar 'nichGalaOpponentDay'
  226. killvar 'nichGalaTraining'
  227. killvar 'nichGalaTrainCounter'
  228. killvar 'nichGalaTrainLast'
  229. killvar 'nichFlirtCounter'
  230. killvar 'nichFlirtLast'
  231. killvar 'nichNTRelation'
  232. killvar 'nichSex'
  233. !!Do not kill nichTanyaUni
  234. !!Do not kill Tanyas fuck vars since Sveta might meet her after leaving her job
  235. killvar 'nichTanyaSpyLast'
  236. killvar 'nichTanyaSpyCounter'
  237. elseif $ARGS[0] = 'fired':
  238. 'It takes you a few moments to process what just happened:'
  239. 'You have just been fired. And kind of lost your home, too.'
  240. home_owned[7] = 0
  241. nichWork = 4
  242. work = 0
  243. gs 'nichUtil', 'clearVars'
  244. act 'Take your belongings and leave the apartment':gt 'down'
  245. end
  246. !! initializes variables when hired, might mess everything up if called at any other time
  247. if $ARGS[0] = 'hired':
  248. home_owned[7] = 1
  249. nichWork = 2
  250. nichWorkState = 0
  251. nichPerformance = 45
  252. nickHired = daystart
  253. !!Todo: check the following
  254. nichVacationFrom = daystart
  255. nichVactionTil = daystart
  256. nichLastWorkDay = daystart
  257. nichEvaluationLast = daystart
  258. nichEvaluationLastReq = daystart
  259. nichMaidBathG = 0
  260. nichMaidLaundry = 0
  261. nichMaidDishes = 0
  262. nichMaidGroceries = 0
  263. nichMaidHallway = 0
  264. nichMaidLivingDust = 0
  265. nichMaidLivingFloor = 0
  266. nichMaidLivingItems = 0
  267. nichMaidLivingWindows = 0
  268. nichLastInspepection = -1
  269. nichChoreState[0] = 0
  270. nichSalaryBase = 10000
  271. $npc_nickname['A52'] = 'Master '+$npc_firstname['A52']
  272. end
  273. !! convert the old vars to the new system
  274. if $ARGS[0] = 'convert':
  275. killvar 'MaidWorkDay'
  276. killvar 'MaidWork'
  277. killvar 'TanHallClean'
  278. killvar 'TanRoomClean'
  279. killvar 'TanBathClean'
  280. killvar 'TanMasterClean'
  281. killvar 'TanLivingClean'
  282. killvar 'TanMaidRoomClean'
  283. killvar 'TanKitchenClean'
  284. killvar 'TanMadeBreakfast'
  285. killvar 'tanwork'
  286. killvar 'tan_work_rep'
  287. killvar 'tan_work_evaluation'
  288. end
  289. if $ARGS[0] = 'updateNotice':
  290. '<b><font color = red>Update Notice</font></b>'
  291. 'It appears as if you are currently the live-in maid of Nicholas.'
  292. *nl
  293. 'This story-line has changed drastically in the last updates.'
  294. *nl
  295. 'Please select one option:'
  296. '1. Start over: You can play the whole story-line all over again as if it has never happened.'
  297. '2. Stay hired: You will stay the maid of Nicholas and your job performance will be translated to the new system. You will be in a sexual relationship with Tanya.'
  298. gs 'nichUtil','convert'
  299. act 'Start over':
  300. gt $loc, $metka
  301. end
  302. act 'Stay hired':
  303. gs 'nichUtil', 'hired'
  304. nichPerformance = tan_work_rep * 5
  305. nichTanyaOpinion = 1
  306. gt $loc, $metka
  307. end
  308. end
  309. if $ARGS[0] = 'checkOutfit':
  310. if $clothingworntype = 'uniform':
  311. nichOutfitState = 1
  312. else
  313. nichOutfitState = 0
  314. end
  315. end
  316. !! Creates the actions for cleaning rooms
  317. if $ARGS[0] = 'cleanOptions':
  318. $nichTempPic = func('nichUtil','cleanPic',$nichChoreType,$nichChoreLoc)
  319. if nichOutfitState = 0:
  320. '<b><font color = red>You have to change into an appropriate outfit before cleaning up.</font></b>'
  321. elseif nichChoreState[nichChoreID] > 0:
  322. act '(<<nichtTimeQuick>> minutes) Clean quickly':
  323. *clr & cla
  324. '<center><img <<$set_imgh>> src="<<$nichTempPic>>"></center>'
  325. minut += nichtTimeQuick
  326. nichChoreState[nichChoreID] = 0
  327. cleaning_exp += rand (0,1)
  328. gs'stat'
  329. act 'Finish':
  330. gt $loc, 'return'
  331. end
  332. end
  333. act '(<<nichTimeNormal>> minutes) Clean normally':
  334. *clr & cla
  335. 'DEBUG: '+$nichTempPic
  336. '<center><img <<$set_imgh>> src="<<$nichTempPic>>"></center>'
  337. minut += nichTimeNormal
  338. nichChoreState[nichChoreID] = 0
  339. cleaning_exp += rand (1,3)
  340. act 'Finish':
  341. gt $loc, 'return'
  342. end
  343. end
  344. act '(<<nichTimeDiligently>> minutes) Clean diligently':
  345. *clr & cla
  346. '<center><img <<$set_imgh>> src="<<$nichTempPic>>"></center>'
  347. minut += nichTimeDiligently
  348. nichChoreState[nichChoreID] = 0
  349. cleaning_exp += rand (1,5)
  350. act 'Finish':
  351. gt $loc, 'return'
  352. end
  353. end
  354. end
  355. act 'Don''t clean':
  356. gt $loc, 'return'
  357. end
  358. end
  359. !! Returns the path to a picture of a maid cleaning something. If there are more than one pictures matching the citeria one of them is chosen at random.
  360. !! Arguments:
  361. !! 1 (required): What to clean/do (bed, floor, furniture,bath,kitchen)
  362. !! 2 (optional): Where (servant (=bedroom servant), living, kitchen, hallway, masterbath, study, bathGuest)
  363. !! 3 (optional): How to clean (quickly, normally, diligently)
  364. if $ARGS[0] = 'cleanPic':
  365. killvar '$nichTempPic'
  366. if $ARGS[1] = 'bed':
  367. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid7.jpg'
  368. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid21.jpg'
  369. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid31.jpg'
  370. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid79.jpg'
  371. if $ARGS[2] = 'servant' or $ARGS[2] = 'tanya':
  372. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid27.jpg'
  373. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid34.jpg'
  374. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid71.jpg'
  375. elseif $ARGS[2] = 'master':
  376. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid56.jpg'
  377. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid79.jpg'
  378. end
  379. elseif $ARGS[1] = 'floor':
  380. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid5.jpg'
  381. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid9.jpg'
  382. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid15.jpg'
  383. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid16.jpg'
  384. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid58.jpg'
  385. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid60.jpg'
  386. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid61.jpg'
  387. elseif $ARGS[1] = 'bath':
  388. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid26.jpg'
  389. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid35.jpg'
  390. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid80.jpg'
  391. elseif $ARGS[1] = 'kitchen':
  392. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid19.jpg'
  393. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid23.jpg'
  394. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid24.jpg'
  395. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid38.jpg'
  396. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid52.jpg'
  397. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid66.jpg'
  398. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid67.jpg'
  399. elseif $ARGS[1] = 'furniture':
  400. if $ARGS[2] = 'living':
  401. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid0.jpg'
  402. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid4.jpg'
  403. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid41.jpg'
  404. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid59.jpg'
  405. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid70.jpg'
  406. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid73.jpg'
  407. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid74.jpg'
  408. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid76.jpg'
  409. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid78.jpg'
  410. elseif $ARGS[2] = 'study':
  411. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid30.jpg'
  412. end
  413. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid8.jpg'
  414. elseif $ARGS[1] = 'laundry':
  415. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid12.jpg'
  416. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid13.jpg'
  417. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid25.jpg'
  418. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid49.jpg'
  419. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid54.jpg'
  420. $nichTempPic[ARRSIZE('$nichTempPic')] = 'maid69.jpg'
  421. end
  422. if ARRSIZE('$nichTempPic') = 0:
  423. !!generic fallback in case no matching picture was found
  424. $RESULT = 'images/pc/activities/maidCleaning/maid0.jpg'
  425. else
  426. $RESULT = 'images/pc/activities/maidCleaning/'+$nichTempPic[rand(0,ARRSIZE('$nichTempPic')-1)]
  427. end
  428. 'Debug: Picture '+$RESULT
  429. !!killvar 'nichTemp'
  430. killvar '$nichTempPic'
  431. end
  432. !! Returns the path to a picture of Tanya.
  433. !! Arguments:
  434. !! 1 (required): General activity ("idle" for something not sex-related, "sexL" for lesbian sex, "sexH" for sex with a man)
  435. !! 2 (required for sex): Specific activity (prefix a: Tanya acts, prefix p: Tanya gets acted upon; "")
  436. !! 3 (optional): Partner for sex-options (0 or unset: PC, 1: PC and ignore PC appearance)
  437. if $ARGS[0] = 'tanyaPic':
  438. gs 'nichUtil','updatePcHair'
  439. $nichTempFolder = 'images/characters/city/tanya/'
  440. if $ARGS[1] = 'idle':
  441. $RESULT = $nichTempFolder + 'idle/idle'+rand(0,5)+'.jpg'
  442. end
  443. if $ARGS[1] = 'cuddle':
  444. $RESULT = $nichTempFolder + 'sex/cuddle'+rand(0,4)+'.jpg'
  445. end
  446. if $ARGS[1] = 'sexL' or $ARGS[1] = 'sexH':
  447. !! Pictures which work for both lesbian and heterosexual sex
  448. if $ARGS[2] = 'after':
  449. !! pictures of Tanya relaxing after sex
  450. $RESULT = $nichTempFolder + 'sex/relax'+rand(0,5)+'.jpg'
  451. elseif $ARGS[2] = 'pose':
  452. $RESULT = $nichTempFolder + 'sex/pose'+rand(0,1)+'.jpg'
  453. elseif $ARGS[2] = 'undress':
  454. $RESULT = $nichTempFolder + 'sex/undress'+rand(0,3)+'.jpg'
  455. end
  456. end
  457. if $ARGS[1] = 'sexL':
  458. if $ARGS[2] = 'kiss':
  459. $RESULT = $nichTempFolder + 'sexL/kiss/kiss'+rand(0,5)+'.jpg'
  460. elseif $ARGS[2] = 'aeatout':
  461. $RESULT = $nichTempFolder + 'sexL/aeatout/aeatout'+rand(0,3)+'.jpg'
  462. elseif $ARGS[2] = 'peatout':
  463. $RESULT = $nichTempFolder + 'sexL/peatout/peatout'+rand(0,6)+'.jpg'
  464. elseif $ARGS[2] = 'arimjob':
  465. $RESULT = $nichTempFolder + 'sexL/arimjob/arimjob'+rand(0,3)+'.jpg'
  466. elseif $ARGS[2] = 'primjob':
  467. $RESULT = $nichTempFolder + 'sexL/primjob/primjob'+rand(0,1)+'.jpg'
  468. elseif $ARGS[2] = 'astrapon':
  469. $RESULT = $nichTempFolder + 'sexL/astrapon/astrapon'+rand(0,5)+'.jpg'
  470. elseif $ARGS[2] = 'pstrapon':
  471. $RESULT = $nichTempFolder + 'sexL/pstrapon/pstrapon'+rand(0,3)+'.jpg'
  472. end
  473. elseif $ARGS[1] = 'sexH':
  474. if $ARGS[2] = 'spy':
  475. if $ARGS[3] = '' or $ARGS[3] = 'nicholas':
  476. $RESULT = $nichTempFolder + 'sexNich/nich'+rand(0,5)+'.jpg'
  477. elseif $ARGS[3] = 'bf1':
  478. $RESULT = $nichTempFolder + 'sexBf/bf1/sex'+rand(0,4)+'.jpg'
  479. elseif $ARGS[3] = 'bf2':
  480. $RESULT = $nichTempFolder + 'sexBf/bf2/sex'+rand(0,2)+'.jpg'
  481. end
  482. end
  483. end
  484. '<<$RESULT>>'
  485. killvar '$nichTempFolder'
  486. end
  487. !! sets nichPCHair to:
  488. !! 0 if PC has brown, dark red or black hair (any natural color which is not blonde)
  489. !! 1 if PC is blonde
  490. !! 2 if PC has any other hair color
  491. if $ARGS[0] = 'updatePcHair':
  492. if pcs_haircol = 3:
  493. nichPCHair = 1
  494. elseif pcs_haircol > 3:
  495. nichPCHair = 2
  496. else
  497. nichPCHair = 0
  498. end
  499. end
  500. if $ARGS[0] = 'npcActivityAdd':
  501. $nichNpcActArr[ARRSIZE('$nichNpcActArr')] = $ARGS[1]
  502. nichNpcActTime[ARRSIZE('nichNpcActTime')] = ARGS[2]*60 + ARGS[3]
  503. end
  504. !! The activity the NPC is currently doing at a given time.
  505. !! The times are read as up to but not including.
  506. !! If you add an activity:
  507. !! 1. Add it here and make sure activities stay in chronological order.
  508. !! 2. Add the activity to the function whereis
  509. !! 3. Add the activity to the the description of the corresponding character (e.g. nichNicholas)
  510. !! 4. Add the activity to the corresponding location (if its inside the appartment)
  511. if $ARGS[0] = 'npcActivity':
  512. if $ARGS[1] = 'nicholas':
  513. !!Morning routine
  514. if week <= 5:
  515. gs 'nichUtil', 'npcActivityAdd', 'sleep', 6 , 45
  516. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 7 , 15
  517. gs 'nichUtil', 'npcActivityAdd', 'study', 7 , 45
  518. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 8 , 30
  519. else
  520. gs 'nichUtil', 'npcActivityAdd', 'sleep', 7 , 45
  521. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 8 , 15
  522. gs 'nichUtil', 'npcActivityAdd', 'study', 8 , 45
  523. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 9 , 30
  524. end
  525. !!day avtivity
  526. if week <= 4:
  527. gs 'nichUtil', 'npcActivityAdd', 'leaveWork', 8 , 35
  528. gs 'nichUtil', 'npcActivityAdd', 'work', 18 , 0
  529. gs 'nichUtil', 'npcActivityAdd', 'returnWork', 18 , 05
  530. elseif week = 5:
  531. gs 'nichUtil', 'npcActivityAdd', 'leaveWork', 8 , 35
  532. gs 'nichUtil', 'npcActivityAdd', 'work', 16 , 0
  533. gs 'nichUtil', 'npcActivityAdd', 'returnWork', 16 , 05
  534. elseif week = 6:
  535. gs 'nichUtil', 'npcActivityAdd', 'leaveShopping', 9 , 35
  536. gs 'nichUtil', 'npcActivityAdd', 'shopping', 16 , 0
  537. gs 'nichUtil', 'npcActivityAdd', 'returnShopping', 16 , 05
  538. else
  539. gs 'nichUtil', 'npcActivityAdd', 'living', 16 , 0
  540. end
  541. !!evening
  542. if week <= 4:
  543. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  544. gs 'nichUtil', 'npcActivityAdd', 'study', 20 , 30
  545. if week = 1:
  546. gs 'nichUtil', 'npcActivityAdd', 'study', 22 , 0
  547. elseif week = 2 or week = 4:
  548. if nichNTRelation < 10:
  549. gs 'nichUtil', 'npcActivityAdd', 'tanya', 22 , 0
  550. else
  551. gs 'nichUtil', 'npcActivityAdd', 'study', 22 , 0
  552. end
  553. elseif week = 3:
  554. gs 'nichUtil', 'npcActivityAdd', 'living', 22 , 0
  555. end
  556. gs 'nichUtil', 'npcActivityAdd', 'bathEvening', 22 , 15
  557. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  558. elseif week = 5 or week = 6:
  559. gs 'nichUtil', 'npcActivityAdd', 'study', 18 , 0
  560. gs 'nichUtil', 'npcActivityAdd', 'bathClub', 18 , 30
  561. gs 'nichUtil', 'npcActivityAdd', 'leaveClub', 18 , 35
  562. gs 'nichUtil', 'npcActivityAdd', 'club', 23 , 45
  563. gs 'nichUtil', 'npcActivityAdd', 'returnClub', 23 , 50
  564. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  565. else
  566. gs 'nichUtil', 'npcActivityAdd', 'study', 18 , 0
  567. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  568. gs 'nichUtil', 'npcActivityAdd', 'gala', 21 , 30
  569. gs 'nichUtil', 'npcActivityAdd', 'bathEvening', 21 , 45
  570. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  571. end
  572. elseif $ARGS[1] = 'gala':
  573. !!Morning routine
  574. if week <= 5:
  575. gs 'nichUtil', 'npcActivityAdd', 'sleep', 6 , 45
  576. !! gala will wake up the same time Nicholas does (->alarm clock) but she will wait for him to be finished in bath before she goes there
  577. gs 'nichUtil', 'npcActivityAdd', 'snooze', 7 , 15
  578. !! Gala is in bath while Nicholas is in his study
  579. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 7 , 45
  580. !! note: breakfast time should be the same for all three characters
  581. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 8 , 30
  582. else
  583. gs 'nichUtil', 'npcActivityAdd', 'sleep', 7 , 45
  584. gs 'nichUtil', 'npcActivityAdd', 'snooze', 8 , 15
  585. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 8 , 45
  586. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 9 , 30
  587. end
  588. !! daily activity
  589. if week = 1 or week = 3:
  590. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  591. elseif week = 2:
  592. !! Gala goes to spa on Tuesdays
  593. gs 'nichUtil', 'npcActivityAdd', 'living', 9 , 0
  594. gs 'nichUtil', 'npcActivityAdd', 'leaveSpa', 9 , 5
  595. gs 'nichUtil', 'npcActivityAdd', 'spa', 15 , 30
  596. gs 'nichUtil', 'npcActivityAdd', 'returnSpa', 15 , 35
  597. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  598. elseif week = 4:
  599. !! Gala visits a friend on Thursdays
  600. gs 'nichUtil', 'npcActivityAdd', 'living', 9 , 0
  601. gs 'nichUtil', 'npcActivityAdd', 'leaveFriend', 9 , 5
  602. gs 'nichUtil', 'npcActivityAdd', 'friend', 17 , 30
  603. gs 'nichUtil', 'npcActivityAdd', 'returnFriend', 17 , 35
  604. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  605. elseif week = 5:
  606. !! TODO: Friday plans
  607. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  608. elseif week = 6:
  609. !! TODO: Saturday plans
  610. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  611. else
  612. !! TODO: Sunday plans
  613. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 0
  614. end
  615. !!evening
  616. if week <= 4:
  617. !! dinner has to be the same time for all three characters
  618. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  619. gs 'nichUtil', 'npcActivityAdd', 'living', 20 , 30
  620. gs 'nichUtil', 'npcActivityAdd', 'bathEvening', 22 , 15
  621. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  622. elseif week = 5 or week = 6:
  623. !! Gala will prepare herself for the club in the bedroom
  624. !! she will accompany Nicholas there, so their times have to be the same
  625. gs 'nichUtil', 'npcActivityAdd', 'prepareClub', 18 , 30
  626. gs 'nichUtil', 'npcActivityAdd', 'leaveClub', 18 , 35
  627. gs 'nichUtil', 'npcActivityAdd', 'club', 23 , 45
  628. gs 'nichUtil', 'npcActivityAdd', 'returnClub', 23 , 50
  629. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  630. else
  631. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  632. !! Nicholas will do her at this time, so she must have the corresponding entry
  633. gs 'nichUtil', 'npcActivityAdd', 'nicholas', 21 , 30
  634. gs 'nichUtil', 'npcActivityAdd', 'bathEvening', 21 , 45
  635. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  636. end
  637. elseif $ARGS[1] = 'tanya':
  638. !!Morning routine
  639. if week <= 5:
  640. gs 'nichUtil', 'npcActivityAdd', 'sleep', 7 , 45
  641. !! note: breakfast time should be the same for all three characters
  642. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 8 , 30
  643. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 9 , 15
  644. else
  645. gs 'nichUtil', 'npcActivityAdd', 'sleep', 8 , 45
  646. !! note: breakfast time should be the same for all three characters
  647. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 9 , 30
  648. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 10 , 15
  649. end
  650. !! TODO: daily activities
  651. !! Tanya will go to university from 10:15-14:00
  652. if nichTanyaUni >= 100 and nichTanyaUniStart ! daystart:
  653. if week <= 5:
  654. gs 'nichUtil', 'npcActivityAdd', 'leaveUni', 10 , 20
  655. gs 'nichUtil', 'npcActivityAdd', 'uni', 14 , 0
  656. if week = 2 or week = 5:
  657. gs 'nichUtil', 'npcActivityAdd', 'returnUni', 14 , 5
  658. end
  659. end
  660. else
  661. if week = 1:
  662. gs 'nichUtil', 'npcActivityAdd', 'tanya', 13 , 55
  663. gs 'nichUtil', 'npcActivityAdd', 'leaveBallet', 14 , 0
  664. elseif week = 3:
  665. gs 'nichUtil', 'npcActivityAdd', 'tanya', 12 , 0
  666. gs 'nichUtil', 'npcActivityAdd', 'leaveFriend', 12 , 5
  667. elseif week = 4:
  668. gs 'nichUtil', 'npcActivityAdd', 'tanya', 12 , 0
  669. gs 'nichUtil', 'npcActivityAdd', 'leaveShopping', 12 , 5
  670. end
  671. end
  672. if week = 1:
  673. gs 'nichUtil', 'npcActivityAdd', 'ballet', 16 , 30
  674. gs 'nichUtil', 'npcActivityAdd', 'returnBallet', 16 , 35
  675. elseif week = 3:
  676. gs 'nichUtil', 'npcActivityAdd', 'friend', 17 , 0
  677. gs 'nichUtil', 'npcActivityAdd', 'returnFriend', 17 , 5
  678. elseif week = 4:
  679. gs 'nichUtil', 'npcActivityAdd', 'shopping', 16 , 15
  680. gs 'nichUtil', 'npcActivityAdd', 'returnShopping', 16 , 20
  681. end
  682. gs 'nichUtil', 'npcActivityAdd', 'tanya', 18 , 05
  683. if week <= 4 or week = 7:
  684. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  685. end
  686. !! TODO: evening activities
  687. gs 'nichUtil', 'npcActivityAdd', 'tanya', 20 , 30
  688. if week = 2 or week = 4:
  689. !! Needs to have corresponding entries to Nicholas entries.
  690. if nichNTRelation < 10:
  691. gs 'nichUtil', 'npcActivityAdd', 'nicholas', 22 , 0
  692. elseif nichTanyaBF > 0:
  693. gs 'nichUtil', 'npcActivityAdd', 'boyfriend', 23 , 0
  694. else
  695. gs 'nichUtil', 'npcActivityAdd', 'tanya', 22 , 0
  696. end
  697. else
  698. gs 'nichUtil', 'npcActivityAdd', 'tanya', 22 , 0
  699. end
  700. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  701. end
  702. $RESULT = $nichNpcActArr[0]
  703. nichNpcActC = 0
  704. :nichNpcActivityLoop
  705. if nichNpcActTime[nichNpcActC] <= hour * 60 + minut:
  706. nichNpcActC += 1
  707. if nichNpcActC < ARRSIZE('nichNpcActTime'): jump 'nichNpcActivityLoop'
  708. end
  709. $RESULT = $nichNpcActArr[nichNpcActC]
  710. killvar '$nichNpcActArr'
  711. killvar 'nichNpcActTime'
  712. killvar '$nichNpcActC'
  713. end
  714. if $ARGS[0] = 'whereIs':
  715. $RESULT = 'nowhere'
  716. if $ARGS[1] = 'nicholas':
  717. $nichTemp = func('nichUtil','npcActivity','nicholas')
  718. if $nichTemp = 'sleep' or $nichTemp = 'gala':
  719. $RESULT = 'masterBedroom'
  720. elseif $nichTemp = 'bathMorning' or $nichTemp = 'bathClub' or $nichTemp = 'bathEvening':
  721. $RESULT = 'masterBathroom'
  722. elseif $nichTemp = 'breakfast' or $nichTemp = 'living' or $nichTemp = 'dinner':
  723. $RESULT = 'living'
  724. elseif $nichTemp = 'leaveWork' or $nichTemp = 'returnWork' or $nichTemp = 'leaveShopping' or $nichTemp = 'returnShopping' or $nichTemp = 'leaveClub' or $nichTemp = 'returnClub':
  725. $RESULT = 'hallway'
  726. elseif $nichTemp = 'work':
  727. $RESULT = 'work'
  728. elseif $nichTemp = 'study':
  729. $RESULT = 'study'
  730. elseif $nichTemp = 'tanya':
  731. $RESULT = 'bedroomTanya'
  732. elseif $nichTemp = 'club':
  733. $RESULT = 'club'
  734. elseif $nichTemp = 'shopping':
  735. $RESULT = 'shopping'
  736. end
  737. elseif $ARGS[1] = 'gala':
  738. $nichTemp = func('nichUtil','npcActivity','gala')
  739. if $nichTemp = 'sleep' or $nichTemp = 'snooze' or $nichTemp = 'nicholas' or $nichTemp = 'prepareClub':
  740. $RESULT = 'masterBedroom'
  741. elseif $nichTemp = 'bathMorning' or $nichTemp = 'bathEvening':
  742. $RESULT = 'masterBathroom'
  743. elseif $nichTemp = 'breakfast' or $nichTemp = 'living' or $nichTemp = 'dinner':
  744. $RESULT = 'living'
  745. elseif $nichTemp = 'leaveSpa' or $nichTemp = 'returnSpa' or $nichTemp = 'leaveFriend' or $nichTemp = 'returnFriend' or $nichTemp = 'leaveClub' or $nichTemp = 'returnClub':
  746. $RESULT = 'hallway'
  747. elseif $nichTemp = 'club':
  748. $RESULT = 'club'
  749. elseif $nichTemp = 'friend':
  750. $RESULT = 'friend'
  751. end
  752. elseif $ARGS[1] = 'tanya':
  753. $nichTemp = func('nichUtil','npcActivity','tanya')
  754. if $nichTemp = 'sleep' or $nichTemp = 'nicholas' or $nichTemp = 'tanya' or $nichTemp = 'boyfriend':
  755. $RESULT = 'bedroomTanya'
  756. elseif $nichTemp = 'bathMorning' or $nichTemp = 'bathEvening':
  757. $RESULT = 'masterBathroom'
  758. elseif $nichTemp = 'breakfast' or $nichTemp = 'living' or $nichTemp = 'dinner':
  759. $RESULT = 'living'
  760. elseif $nichTemp = 'leaveUni' or $nichTemp = 'returnUni' or $nichTemp = 'leaveBallet' or $nichTemp = 'returnBallet' or $nichTemp = 'leaveFriend' or $nichTemp = 'returnFriend' or $nichTemp = 'leaveShopping' or $nichTemp = 'returnShopping':
  761. $RESULT = 'hallway'
  762. elseif $nichTemp = 'uni':
  763. $RESULT = 'uni'
  764. elseif $nichTemp = 'ballet':
  765. $RESULT = 'ballet'
  766. elseif $nichTemp = 'friend':
  767. $RESULT = 'friend'
  768. elseif $nichTemp = 'shopping':
  769. $RESULT = 'shopping'
  770. end
  771. elseif $ARGS[1] = 'cook':
  772. if hour >= 10 and hour < 20:
  773. $RESULT = 'kitchen'
  774. end
  775. end
  776. end
  777. if $ARGS[0] = 'isHome':
  778. $nichTemp = func('nichUtil','whereIs',$ARGS[1])
  779. RESULT = 0
  780. if $nichTemp = 'masterBedroom' or $nichTemp = 'masterBathroom' or $nichTemp = 'bedroomTanya' or $nichTemp = 'bedroomServant' or $nichTemp = 'bathroomServant' or $nichTemp = 'bedroomGuest' or $nichTemp = 'study' or $nichTemp = 'living' or $nichTemp = 'kitchen':
  781. RESULT = 1
  782. end
  783. end
  784. if $ARGS[0] = 'isPresent':
  785. $npcLocation = FUNC('nichUtil','whereIs',$ARGS[1])
  786. if $npcLocation = $ARGS[2]:
  787. RESULT = 1
  788. else
  789. RESULT = 0
  790. end
  791. end
  792. --- nichUtil ---------------------------------