More random Sims and modding stuff because I still don't have a functioning PC (yet):
Everything in The Sims 2 is objects. Sims are objects, objects are objects, interactions and tokens are objects. It's all objects and if you're clever enough you can run object's A code on object B
Keep track of Temp 0 when working on BHAV's. A lot of primitives and (semi)globals will store data in it so store it in a local or 3 when you do a lot with temp 0. When the needed data is put in temp 0, transfer it to a local or just anything that isn't temp 0
If you're putting temp 0 into param x, remember that the temp 0 being used when param x is being utilized in your BHAV, is not the temp 0 as it was when you called that BHAV, but temp 0 as its current state in the stack. Simply said: if in BHAV A, temp 0 is 45 and you call BHAV B inside of BHAV A, then if you then do some data operations that use temp 0 and change it to 36, then when you call param x after doing so, the temp 0 represented by param x isn't 45 but 36 (this would work better as illustration). Aka: using a temp as a param, means your param behaves the same as any temp. Param x := temp 0 means "param x is just temp 0 wearing a fake mustache"
The Sims 2 uses a temperature range between -100 and 100 and using a lua call, you can retrieve the current temperature and use it for your own evil purpose
When using the manage inventory prim, be sure to clear the index when looping through
You can totally just work out your BHAV on paper when your pc is shitting bricks
You can have more than 4 params for a BHAV, you just can't configure them using the wizard so it's not that useful in practice
Motive decay modifiers are most often configured using code that came with FT, so it's not MAC-compatible
Test your code on Anygamestarter running a Super Collection configuration if you can get it to work.
Use EP checks to make things MAC-Compatible
Trouble resetting a Sim? Are they having weird stuck SFX and are they on their home lot? moveobjects on, delete the Sim, save and reload the lot. The Sim will show back up. I used to use it as a type of "maxmotives" back when I only had the Basegame. It works.
Use expression Graphic and the Refresh prim to change an object's visuals by pointing them to other Scenegraph resources. Honestly worth a tutorial. It's cool