Automated Walk To School

This global mod directs sims at specific schools or over a certain age, to walk to/from school and not take the school bus.

Sims will walk to/from school under the following conditions

  • If either car portal is missing, Sims will always walk to school
  • The owner of a car will always drive to school
  • A child has less than a specified number of days left in their life stage (default is 0, ie disabled)
  • A teen has less than a specified number of days left in their life stage (default is 0, ie disabled)
  • A sim at any age at a specific school (default is none)

If a Sim will walk to/from school, the following changes are made to the school bus

  • No school bus alert at -2 hours
  • No school bus at -1 hour
  • Automated push "Walk to School" at -1 hour, and set game speed to slow
  • No school bus for return, Sim walks home from a portal

Conflicts

This global mod changes four BHAVs and two STR#s, and adds eight BHAVs and three BCONs to the "JobDataSchoolsGlobals" (0x7FBE051B) group, so will conflict with any mod that does the same.

Known to conflict with "InTeenimater_FlavorPak_BackToSchool" - if using this flavour pack, set entry 0x02 in BCON 0x2010 (see below) to 0x01 and make sure this mod loads after InTeen

BHAVs Edited

  • 0x201D "Sub - Return to World"
  • 0x201F "Sub - Process"
  • 0x2028 "Interaction - Friend - Come Home"
  • 0x204D "Interaction - Walk to School"

STR#s Edited

  • 0x012D "Dialog Strings" - two entries added at 0x20 and 0x21
  • 0x012F "Call Named Tree prim string set" - four entries added at 0x10 to 0x13

BHAVs Added

  • 0x20C0 "Sub - Always Walk To School?" - logic to decide if a sim walks to school
  • 0x20C1 "Sub - Push Walk/Drive To School" - pushes the "Walk/Drive To School" interaction onto a sim
  • 0x20C2 "Sub - Walk Home From School" - brings a sim home from school by walking them in at a portal
  • 0x20C3 "Sub - Drive To School? T0=Car OID" - logic to decide if a sim drives to school
  • 0x20C4 "CT - Spawn Route Accessory" - logic to place a school bag into a Sims hand after they change into their school uniform
  • 0x20C5 "CT - Remove Route Accessory" - logic to remove any carried school bag as they get into the school bus or walk off the lot
  • 0x20C6 "Sub - Does Parent Walk To School?" - logic to decide is a sibling walks to school
  • 0x20C7 "Sub - Does Sibling Walk To School?" - logic to decide is a parent walks to school (work)

BCONs Added

  • 0x2010 "Always Walk To School Tuning" - configuration, see below
  • 0x2011 "Never Walk To School Tuning" - configuration, see below
  • 0x2012 "School Bags" - configuration, GUIDs of carried bags for children/teens at public/private school. See comments in the BCON for details

Configuration

BCON 0x2010 "Always Walk To School Tuning"

  • 0x00 "Child Days Left" - number of days left in the life stage that a child will always walk to/from school, set to 0 to disable
  • 0x01 "Teen Days Left" - number of days left in the life stage that a teen will always walk to/from school, set to 0 to disable
  • 0x02 "InTeen - Back To School" - if playing with the InTeen flavour pack "Back To School" set this to 1
  • 0x03 "Elder Sibling Walks Check" - should a young child walk to school if an elder sibling does, set to 0 to disable
  • 0x04 "Parent Edu Career Level Walks To School" - should a young child walk to school if an parent works at the school, set to 0 to disable
  • 0x05 "Number Of Specific Schools" - number of school GUID pairs following, set to 0 to disable
  • 0x06/0x07 "School GUID Lo/Hi" - GUID pairs (lo then hi, so Private School 0xCC8F4C11 is 0x4C11 then 0xCC8F) of schools where sims will walk to/from school at all ages

For example,

  • to have all teens walk to school - change entry 0x01 to a big number, eg 9999. It just needs to be bigger than entry 0x07 "Teen Max" in BCON 0x1000 "Tuning" of the 0x7F07FBBC "Controller - Age" object
  • to have children and teens walk to public school - change entry 0x03 to 0x01, entry 0x04 to 0x88B5 and entry 0x05 to 0xD067

Notes

The mod requires InTeen Check 2.


Simblr Links


Credits

  • The developers of SimPE.

Files