SimAntics

Notes on various aspects of SimAntics programming.


SimAntics Data Holders - An Overview

An overview of Data Holders (variables) for SimAntics BHAV modding. With some background information about objects and how they are identified in The Sims 2.

  • Object ID (or OID)
  • Neighbor ID (or NID)
  • Objects Perform Actions
  • Object Types and Object Instances
  • Object Lifecycle
  • Why "idle-loop" is important
  • In a BHAV, what is "My"?
  • What is "Stack Object ID"?
  • Other Data Holders
  • NIDs, OIDs and Log Files
PDF

Literals, Temps, Locals, Params and Attributes

An exploration of some of the "data holders" used to store and manipulate numbers.

  • Literals
  • Temps
  • Whole Numbers Only Please
  • Overflow Issues
  • Temps Vs Locals
  • Stack Number out of Range 'Gotcha'
  • Why Stack Numbers
  • Parameters
  • Labels
  • Parameters Revisited
  • Stack Object - A Special Parameter
  • Object Attributes
PDF

Looping Multi-Tile Objects with Set To Next

Looping all tiles in a multi-tile object should be easy, there's a Set To Next for the task. If only ...

Link

Measuring Distance

The Distance primitive, while taking into account different levels, does not allow for objects in different rooms ...

Link

Hope these notes are of use to someone. Enjoy!