1
0

nichUtil.qsrc 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896
  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,2)+'.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. elseif $ARGS[2] = 'psovaginal':
  484. $RESULT = $nichTempFolder + 'sexL/pstrapon/pstrapon'+rand(0,3)+'.jpg'
  485. end
  486. elseif $ARGS[1] = 'sexH':
  487. if $ARGS[2] = 'spy':
  488. if $ARGS[3] = '' or $ARGS[3] = 'nicholas':
  489. $RESULT = $nichTempFolder + 'sexNich/nich'+rand(0,5)+'.jpg'
  490. elseif $ARGS[3] = 'bf1':
  491. $RESULT = $nichTempFolder + 'sexBf/bf1/sex'+rand(0,4)+'.jpg'
  492. elseif $ARGS[3] = 'bf2':
  493. $RESULT = $nichTempFolder + 'sexBf/bf2/sex'+rand(0,2)+'.jpg'
  494. end
  495. end
  496. end
  497. killvar '$nichTempFolder'
  498. end
  499. !! sets nichPCHair to:
  500. !! 0 if PC has brown, dark red or black hair (any natural color which is not blonde)
  501. !! 1 if PC is blonde
  502. !! 2 if PC has any other hair color
  503. if $ARGS[0] = 'updatePcHair':
  504. if pcs_haircol = 3:
  505. nichPCHair = 1
  506. elseif pcs_haircol > 3:
  507. nichPCHair = 2
  508. else
  509. nichPCHair = 0
  510. end
  511. end
  512. if $ARGS[0] = 'npcActivityAdd':
  513. $nichNpcActArr[ARRSIZE('$nichNpcActArr')] = $ARGS[1]
  514. nichNpcActTime[ARRSIZE('nichNpcActTime')] = ARGS[2]*60 + ARGS[3]
  515. end
  516. !! The activity the NPC is currently doing at a given time.
  517. !! The times are read as up to but not including.
  518. !! If you add an activity:
  519. !! 1. Add it here and make sure activities stay in chronological order.
  520. !! 2. Add the activity to the function whereis
  521. !! 3. Add the activity to the the description of the corresponding character (e.g. nichNicholas)
  522. !! 4. Add the activity to the corresponding location (if its inside the appartment)
  523. if $ARGS[0] = 'npcActivity':
  524. if $ARGS[1] = 'nicholas':
  525. !!Morning routine
  526. if week <= 5:
  527. gs 'nichUtil', 'npcActivityAdd', 'sleep', 6 , 45
  528. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 7 , 15
  529. gs 'nichUtil', 'npcActivityAdd', 'study', 7 , 45
  530. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 8 , 30
  531. else
  532. gs 'nichUtil', 'npcActivityAdd', 'sleep', 7 , 45
  533. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 8 , 15
  534. gs 'nichUtil', 'npcActivityAdd', 'study', 8 , 45
  535. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 9 , 30
  536. end
  537. !!day avtivity
  538. if week <= 4:
  539. gs 'nichUtil', 'npcActivityAdd', 'leaveWork', 8 , 35
  540. gs 'nichUtil', 'npcActivityAdd', 'work', 18 , 0
  541. gs 'nichUtil', 'npcActivityAdd', 'returnWork', 18 , 05
  542. elseif week = 5:
  543. gs 'nichUtil', 'npcActivityAdd', 'leaveWork', 8 , 35
  544. gs 'nichUtil', 'npcActivityAdd', 'work', 16 , 0
  545. gs 'nichUtil', 'npcActivityAdd', 'returnWork', 16 , 05
  546. elseif week = 6:
  547. gs 'nichUtil', 'npcActivityAdd', 'leaveShopping', 9 , 35
  548. gs 'nichUtil', 'npcActivityAdd', 'shopping', 16 , 0
  549. gs 'nichUtil', 'npcActivityAdd', 'returnShopping', 16 , 05
  550. else
  551. gs 'nichUtil', 'npcActivityAdd', 'living', 16 , 0
  552. end
  553. !!evening
  554. if week <= 4:
  555. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  556. gs 'nichUtil', 'npcActivityAdd', 'study', 20 , 30
  557. if week = 1:
  558. gs 'nichUtil', 'npcActivityAdd', 'study', 22 , 0
  559. elseif week = 2 or week = 4:
  560. if nichNTRelation < 10:
  561. gs 'nichUtil', 'npcActivityAdd', 'tanya', 22 , 0
  562. else
  563. gs 'nichUtil', 'npcActivityAdd', 'study', 22 , 0
  564. end
  565. elseif week = 3:
  566. gs 'nichUtil', 'npcActivityAdd', 'living', 22 , 0
  567. end
  568. gs 'nichUtil', 'npcActivityAdd', 'bathEvening', 22 , 15
  569. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  570. elseif week = 5 or week = 6:
  571. gs 'nichUtil', 'npcActivityAdd', 'study', 18 , 0
  572. gs 'nichUtil', 'npcActivityAdd', 'bathClub', 18 , 30
  573. gs 'nichUtil', 'npcActivityAdd', 'leaveClub', 18 , 35
  574. gs 'nichUtil', 'npcActivityAdd', 'club', 23 , 45
  575. gs 'nichUtil', 'npcActivityAdd', 'returnClub', 23 , 50
  576. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  577. else
  578. gs 'nichUtil', 'npcActivityAdd', 'study', 18 , 0
  579. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  580. gs 'nichUtil', 'npcActivityAdd', 'gala', 21 , 30
  581. gs 'nichUtil', 'npcActivityAdd', 'bathEvening', 21 , 45
  582. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  583. end
  584. elseif $ARGS[1] = 'gala':
  585. !!Morning routine
  586. if week <= 5:
  587. gs 'nichUtil', 'npcActivityAdd', 'sleep', 6 , 45
  588. !! 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
  589. gs 'nichUtil', 'npcActivityAdd', 'snooze', 7 , 15
  590. !! Gala is in bath while Nicholas is in his study
  591. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 7 , 45
  592. !! note: breakfast time should be the same for all three characters
  593. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 8 , 30
  594. else
  595. gs 'nichUtil', 'npcActivityAdd', 'sleep', 7 , 45
  596. gs 'nichUtil', 'npcActivityAdd', 'snooze', 8 , 15
  597. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 8 , 45
  598. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 9 , 30
  599. end
  600. !! daily activity
  601. if week = 1 or week = 3:
  602. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  603. elseif week = 2:
  604. !! Gala goes to spa on Tuesdays
  605. gs 'nichUtil', 'npcActivityAdd', 'living', 9 , 0
  606. gs 'nichUtil', 'npcActivityAdd', 'leaveSpa', 9 , 5
  607. gs 'nichUtil', 'npcActivityAdd', 'spa', 15 , 30
  608. gs 'nichUtil', 'npcActivityAdd', 'returnSpa', 15 , 35
  609. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  610. elseif week = 4:
  611. !! Gala visits a friend on Thursdays
  612. gs 'nichUtil', 'npcActivityAdd', 'living', 9 , 0
  613. gs 'nichUtil', 'npcActivityAdd', 'leaveFriend', 9 , 5
  614. gs 'nichUtil', 'npcActivityAdd', 'friend', 17 , 30
  615. gs 'nichUtil', 'npcActivityAdd', 'returnFriend', 17 , 35
  616. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  617. elseif week = 5:
  618. !! TODO: Friday plans
  619. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  620. elseif week = 6:
  621. !! TODO: Saturday plans
  622. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 05
  623. else
  624. !! TODO: Sunday plans
  625. gs 'nichUtil', 'npcActivityAdd', 'living', 18 , 0
  626. end
  627. !!evening
  628. if week <= 4:
  629. !! dinner has to be the same time for all three characters
  630. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  631. gs 'nichUtil', 'npcActivityAdd', 'living', 20 , 30
  632. gs 'nichUtil', 'npcActivityAdd', 'bathEvening', 22 , 15
  633. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  634. elseif week = 5 or week = 6:
  635. !! Gala will prepare herself for the club in the bedroom
  636. !! she will accompany Nicholas there, so their times have to be the same
  637. gs 'nichUtil', 'npcActivityAdd', 'prepareClub', 18 , 30
  638. gs 'nichUtil', 'npcActivityAdd', 'leaveClub', 18 , 35
  639. gs 'nichUtil', 'npcActivityAdd', 'club', 23 , 45
  640. gs 'nichUtil', 'npcActivityAdd', 'returnClub', 23 , 50
  641. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  642. else
  643. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  644. !! Nicholas will do her at this time, so she must have the corresponding entry
  645. gs 'nichUtil', 'npcActivityAdd', 'nicholas', 21 , 30
  646. gs 'nichUtil', 'npcActivityAdd', 'bathEvening', 21 , 45
  647. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  648. end
  649. elseif $ARGS[1] = 'tanya':
  650. !!Morning routine
  651. if week <= 5:
  652. gs 'nichUtil', 'npcActivityAdd', 'sleep', 7 , 45
  653. !! note: breakfast time should be the same for all three characters
  654. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 8 , 30
  655. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 9 , 15
  656. else
  657. gs 'nichUtil', 'npcActivityAdd', 'sleep', 8 , 45
  658. !! note: breakfast time should be the same for all three characters
  659. gs 'nichUtil', 'npcActivityAdd', 'breakfast', 9 , 30
  660. gs 'nichUtil', 'npcActivityAdd', 'bathMorning', 10 , 15
  661. end
  662. !! TODO: daily activities
  663. !! Tanya will go to university from 10:15-14:00
  664. if nichTanyaUni >= 100 and nichTanyaUniStart ! daystart:
  665. if week <= 5:
  666. gs 'nichUtil', 'npcActivityAdd', 'leaveUni', 10 , 20
  667. gs 'nichUtil', 'npcActivityAdd', 'uni', 14 , 0
  668. if week = 2 or week = 5:
  669. gs 'nichUtil', 'npcActivityAdd', 'returnUni', 14 , 5
  670. end
  671. end
  672. else
  673. if week = 1:
  674. gs 'nichUtil', 'npcActivityAdd', 'tanya', 13 , 55
  675. gs 'nichUtil', 'npcActivityAdd', 'leaveBallet', 14 , 0
  676. elseif week = 3:
  677. gs 'nichUtil', 'npcActivityAdd', 'tanya', 12 , 0
  678. gs 'nichUtil', 'npcActivityAdd', 'leaveFriend', 12 , 5
  679. elseif week = 4:
  680. gs 'nichUtil', 'npcActivityAdd', 'tanya', 12 , 0
  681. gs 'nichUtil', 'npcActivityAdd', 'leaveShopping', 12 , 5
  682. end
  683. end
  684. if week = 1:
  685. gs 'nichUtil', 'npcActivityAdd', 'ballet', 16 , 30
  686. gs 'nichUtil', 'npcActivityAdd', 'returnBallet', 16 , 35
  687. elseif week = 3:
  688. gs 'nichUtil', 'npcActivityAdd', 'friend', 17 , 0
  689. gs 'nichUtil', 'npcActivityAdd', 'returnFriend', 17 , 5
  690. elseif week = 4:
  691. gs 'nichUtil', 'npcActivityAdd', 'shopping', 16 , 15
  692. gs 'nichUtil', 'npcActivityAdd', 'returnShopping', 16 , 20
  693. end
  694. gs 'nichUtil', 'npcActivityAdd', 'tanya', 18 , 05
  695. if week <= 4 or week = 7:
  696. gs 'nichUtil', 'npcActivityAdd', 'dinner', 18 , 30
  697. end
  698. !! TODO: evening activities
  699. gs 'nichUtil', 'npcActivityAdd', 'tanya', 20 , 30
  700. if week = 2 or week = 4:
  701. !! Needs to have corresponding entries to Nicholas entries.
  702. if nichNTRelation < 10:
  703. gs 'nichUtil', 'npcActivityAdd', 'nicholas', 22 , 0
  704. elseif nichTanyaBF > 0:
  705. gs 'nichUtil', 'npcActivityAdd', 'boyfriend', 23 , 0
  706. else
  707. gs 'nichUtil', 'npcActivityAdd', 'tanya', 22 , 0
  708. end
  709. else
  710. gs 'nichUtil', 'npcActivityAdd', 'tanya', 22 , 0
  711. end
  712. gs 'nichUtil', 'npcActivityAdd', 'sleep', 24 , 0
  713. end
  714. $RESULT = $nichNpcActArr[0]
  715. nichNpcActC = 0
  716. :nichNpcActivityLoop
  717. if nichNpcActTime[nichNpcActC] <= hour * 60 + minut:
  718. nichNpcActC += 1
  719. if nichNpcActC < ARRSIZE('nichNpcActTime'): jump 'nichNpcActivityLoop'
  720. end
  721. $RESULT = $nichNpcActArr[nichNpcActC]
  722. killvar '$nichNpcActArr'
  723. killvar 'nichNpcActTime'
  724. killvar '$nichNpcActC'
  725. end
  726. if $ARGS[0] = 'whereIs':
  727. $RESULT = 'nowhere'
  728. if $ARGS[1] = 'nicholas':
  729. $nichTemp = func('nichUtil','npcActivity','nicholas')
  730. if $nichTemp = 'sleep' or $nichTemp = 'gala':
  731. $RESULT = 'masterBedroom'
  732. elseif $nichTemp = 'bathMorning' or $nichTemp = 'bathClub' or $nichTemp = 'bathEvening':
  733. $RESULT = 'masterBathroom'
  734. elseif $nichTemp = 'breakfast' or $nichTemp = 'living' or $nichTemp = 'dinner':
  735. $RESULT = 'living'
  736. elseif $nichTemp = 'leaveWork' or $nichTemp = 'returnWork' or $nichTemp = 'leaveShopping' or $nichTemp = 'returnShopping' or $nichTemp = 'leaveClub' or $nichTemp = 'returnClub':
  737. $RESULT = 'hallway'
  738. elseif $nichTemp = 'work':
  739. $RESULT = 'work'
  740. elseif $nichTemp = 'study':
  741. $RESULT = 'study'
  742. elseif $nichTemp = 'tanya':
  743. $RESULT = 'bedroomTanya'
  744. elseif $nichTemp = 'club':
  745. $RESULT = 'club'
  746. elseif $nichTemp = 'shopping':
  747. $RESULT = 'shopping'
  748. end
  749. elseif $ARGS[1] = 'gala':
  750. $nichTemp = func('nichUtil','npcActivity','gala')
  751. if $nichTemp = 'sleep' or $nichTemp = 'snooze' or $nichTemp = 'nicholas' or $nichTemp = 'prepareClub':
  752. $RESULT = 'masterBedroom'
  753. elseif $nichTemp = 'bathMorning' or $nichTemp = 'bathEvening':
  754. $RESULT = 'masterBathroom'
  755. elseif $nichTemp = 'breakfast' or $nichTemp = 'living' or $nichTemp = 'dinner':
  756. $RESULT = 'living'
  757. elseif $nichTemp = 'leaveSpa' or $nichTemp = 'returnSpa' or $nichTemp = 'leaveFriend' or $nichTemp = 'returnFriend' or $nichTemp = 'leaveClub' or $nichTemp = 'returnClub':
  758. $RESULT = 'hallway'
  759. elseif $nichTemp = 'club':
  760. $RESULT = 'club'
  761. elseif $nichTemp = 'friend':
  762. $RESULT = 'friend'
  763. end
  764. elseif $ARGS[1] = 'tanya':
  765. $nichTemp = func('nichUtil','npcActivity','tanya')
  766. if $nichTemp = 'sleep' or $nichTemp = 'nicholas' or $nichTemp = 'tanya' or $nichTemp = 'boyfriend':
  767. $RESULT = 'bedroomTanya'
  768. elseif $nichTemp = 'bathMorning' or $nichTemp = 'bathEvening':
  769. $RESULT = 'masterBathroom'
  770. elseif $nichTemp = 'breakfast' or $nichTemp = 'living' or $nichTemp = 'dinner':
  771. $RESULT = 'living'
  772. elseif $nichTemp = 'leaveUni' or $nichTemp = 'returnUni' or $nichTemp = 'leaveBallet' or $nichTemp = 'returnBallet' or $nichTemp = 'leaveFriend' or $nichTemp = 'returnFriend' or $nichTemp = 'leaveShopping' or $nichTemp = 'returnShopping':
  773. $RESULT = 'hallway'
  774. elseif $nichTemp = 'uni':
  775. $RESULT = 'uni'
  776. elseif $nichTemp = 'ballet':
  777. $RESULT = 'ballet'
  778. elseif $nichTemp = 'friend':
  779. $RESULT = 'friend'
  780. elseif $nichTemp = 'shopping':
  781. $RESULT = 'shopping'
  782. end
  783. elseif $ARGS[1] = 'cook':
  784. if hour >= 10 and hour < 20:
  785. $RESULT = 'kitchen'
  786. end
  787. end
  788. end
  789. if $ARGS[0] = 'isHome':
  790. $nichTemp = func('nichUtil','whereIs',$ARGS[1])
  791. RESULT = 0
  792. 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':
  793. RESULT = 1
  794. end
  795. end
  796. if $ARGS[0] = 'isPresent':
  797. $npcLocation = FUNC('nichUtil','whereIs',$ARGS[1])
  798. if $npcLocation = $ARGS[2]:
  799. RESULT = 1
  800. else
  801. RESULT = 0
  802. end
  803. end
  804. --- nichUtil ---------------------------------