Sims 2 Variables

From SimsWiki
Jump to: navigation, search

This section will record all the different variables and attributes you will likely come across. You will most often be using these through the Expression primitive [prim 0x0002]. These tables are your reference to go with that wizard. However you will also find these in various other OpCodes, some without wizards. In those cases, the numeric value before the title name is the number which represents that type of variable to be placed in an appropriate Operand.

Contents

Special Variables

There are two special variables which many instructions can only operate on. You will will especially get very used to saving the previous value of the Stack Object in order to put something else in there, then putting back the original value afterwards.

My

Stack Object

General Variable Reference

Variables
0x00 My attribute
0x01 Stack Object's attribute
0x02 My (semi) attribute
0x03 My
0x04 Stack Object's
0x05 Stack Object's (semi) attribute
0x06 Global
0x07 Literal
0x08 Temp
0x09 Param
0x0A Stack Object ID
0x0B Temp (temp)
0x0C Check tree advert: Range
0x0D Stack Object's Temp
0x0E My motive
0x0F Stack Object's motive
0x10 Stack Object's slot
0x11 Stack Object's motive (temp)
0x12 My person data
0x13 Stack Object's person data
0x14 My slot
0x15 Stack Object's definition
0x16 Stack Obj attribute (param)
0x17 room (Temp 0)
0x18 Neighbor in stack object
0x19 Local
0x1A Const
0x1B Unused
0x1C Check tree advert: Personality variance
0x1D Check tree advert: Minimum
0x1E My person data (temp)
0x1F Stack Object's person data (temp)
0x20 Neighbor's person data
0x21
0x22
0x23
0x24
0x25
0x26
0x27
0x28
0x29
0x2A
0x2B
0x2C
0x2D
0x2E
0x2F
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox