nichUtil.qsrc 33 KB

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