|Search this Thread|
|16th Aug 2011, 07:59 PM||Automatic Firing? #1|
Anyone know how to make a mod that result in the firing of your sim if they miss a single day of work? There is a mod here that removes the job warning, but I don't know how to make the sim lose their job as well.
|19th Aug 2011, 03:55 AM||#2|
Assuming you want to piggyback off the "No Job Warning" mod, conker87's mod is a change to the "Phone Call - Job Warning" object (GUID: 0xDEC4A35E). When I clone it from scratch (via the GUID), I see a "Sub - Warn/Fire" BHAV, which seems to handle the "Sim used a day of Paid Vacation today" and the "Sim missed work today, and unfortunately, has been fired" messages. It checks the Sim's PTO (stored as Local 1), divides it by 100 (I don't know why) and then checks to see if it is greater than 0. If so, it decrements the PTO and says the Sim used a day of Paid Vacation today. If not, a value of 25 is subtracted from the Sim's job performance (okay, it's actually subtraction through the addition of a negative number).
Then it checks to see if Job Performance is greater than -60. If so, it gives a warning. If not, it gives the "X has been fired" message and uses a RTBN ("Run Tree by Name") node to call (and to pass values to) a BHAV located in the JobData semi-globals called "CT - Lose Job".
After sorting the "Sub - Warn/Fire" BHAV, node 9 is the check for vacation days. You could set that node to always go to node 16 (the "Has been fired warning") or you could set node 15 (Job Performance > Const 0x1002:0x00 (Value: 0xFFC4) ) to always proceed to node 16. It depends upon if you want the Sim to be able to use vacation days.
I don't mind if you call me "MSD" or something for short.
Perhaps someday I'll have leisure time back...
|19th Aug 2011, 05:11 PM||#3|
That worked! Thanks so much MSD!