Welcome to
Mod The Sims
Online: 2603
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 2 (Who?), Viewed: 2593 times.
Search this Thread
Old 16th Aug 2011, 07:59 PM DefaultAutomatic Firing? #1
Phaenoh
Original Poster

Sprinkles and Streaks!



Join Date: Apr 2007
Posts: 4,256
Thanks: 94923 in 166 Posts
50 Achievements

View My Journal


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.

http://www.modthesims.info/download.php?t=40061
Old 19th Aug 2011, 03:55 AM #2
maybesomethingdunno
Site Helper

Join Date: Apr 2005
Posts: 1,979
Thanks: 4868 in 16 Posts
23 Achievements

View My Journal


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...
Last edited by maybesomethingdunno : 19th Aug 2011 at 05:05 AM.
Old 19th Aug 2011, 05:11 PM #3
Phaenoh
Original Poster

Sprinkles and Streaks!



Join Date: Apr 2007
Posts: 4,256
Thanks: 94923 in 166 Posts
50 Achievements

View My Journal


That worked! Thanks so much MSD!
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.