PDA

View Full Version : No days off for graduation


claudiasharon
27th Jan 2012, 02:43 PM
I am trying to make a mod to eliminate the days off the sims' family get when their kids go to graduate, but the only file I have been able to find looked like it'd have to be a scripting mod. Am I just missing something or is it more complex than I thought?

douglasveiga
27th Jan 2012, 10:01 PM
I am trying to make a mod to eliminate the days off the sims' family get when their kids go to graduate, but the only file I have been able to find looked like it'd have to be a scripting mod. Am I just missing something or is it more complex than I thought?

i think you need a core mod, because everybody in the Househood will get the TakePaidTimeOff.

you can see the script at: Sims3.Gameplay.Careers.School.GraduateSim(SimDescription simDesc)


foreach (SimDescription current in simDesc.Household.SimDescriptions)
{
Occupation occupation = current.Occupation;
if (occupation != null && !occupation.HasVacationOrLeave)
{
occupation.TakePaidTimeOff(1);
}
if (current.CareerManager != null)
{
School school = current.CareerManager.School;
if (school != null && !school.HasVacationOrLeave)
{
school.TakePaidTimeOff(1);
}
}
}

claudiasharon
28th Jan 2012, 03:29 AM
Yeah I tried to make a scripting mod for it but had trouble getting it to compile, I kept getting errors.