Difference between revisions of "Sims 2 Variables"
From SimsWiki
MogHughson (Talk | contribs) (→General Variable Reference) |
MogHughson (Talk | contribs) (→General Variable Reference) |
||
(23 intermediate revisions by one user not shown) | |||
Line 11: | Line 11: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | !colspan=" | + | !colspan="3" | Variables |
|- | |- | ||
| | | | ||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
− | |0x00||[[My attribute]] | + | |0x00||[[Sims 2 My attribute|My attribute]] |
|- | |- | ||
− | |0x01||[[My attribute|Stack Object's attribute]] | + | |0x01||[[Sims 2 My attribute|Stack Object's attribute]] |
|- | |- | ||
− | |0x02||[[My (semi) attribute]] | + | |0x02||[[Sims 2 My attribute|My (semi) attribute]] |
|- | |- | ||
− | |0x03||[[My]] | + | |0x03||[[Sims 2 My|My]] |
|- | |- | ||
− | |0x04||[[My|Stack Object's]] | + | |0x04||[[Sims 2 My|Stack Object's]] |
|- | |- | ||
− | |0x05||[[My | + | |0x05||[[Sims 2 My attribute|Stack Object's (semi) attribute]] |
|- | |- | ||
− | |0x06||[[Global]] | + | |0x06||[[Sims 2 Global|Global]] |
|- | |- | ||
− | |0x07||[[Literal]] | + | |0x07||[[Sims 2 Literal|Literal]] |
|- | |- | ||
− | |0x08||[[Temp]] | + | |0x08||[[Sims 2 Temp|Temp]] |
|- | |- | ||
− | |0x09||[[Param]] | + | |0x09||[[Sims 2 Param|Param]] |
|- | |- | ||
− | |0x0A||[[Stack Object ID]] | + | |0x0A||[[Sims 2 Stack Object ID|Stack Object ID]] |
|- | |- | ||
− | |0x0B||[[Temp (temp)]] | + | |0x0B||[[Sims 2 Temp (temp)|Temp (temp)]] |
|- | |- | ||
− | |0x0C||[[Check tree advert: Range]] | + | |0x0C||[[Sims 2 Check tree advert: Range|Check tree advert: Range]] |
|- | |- | ||
− | |0x0D||[[Stack Object's Temp]] | + | |0x0D||[[Sims 2 Stack Object's Temp|Stack Object's Temp]] |
+ | |- | ||
+ | |0x0E||[[Sims 2 My motive|My motive]] | ||
+ | |- | ||
+ | |0x0F||[[Sims 2 My motive|Stack Object's motive]] | ||
|} | |} | ||
| | | | ||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
− | | | + | |0x10||[[Sims 2 My slot|Stack Object's slot]] |
|- | |- | ||
− | | | + | |0x11||[[Sims 2 Stack Object’s motive (temp)|Stack Object's motive (temp)]] |
|- | |- | ||
− | | | + | |0x12||[[Sims 2 My person data|My person data]] |
|- | |- | ||
− | | | + | |0x13||[[Sims 2 My person data|Stack Object's person data]] |
|- | |- | ||
− | | | + | |0x14||[[Sims 2 My slot|My slot]] |
|- | |- | ||
− | | | + | |0x15||[[Sims 2 Stack Object's definition|Stack Object's definition]] |
|- | |- | ||
− | | | + | |0x16||[[Sims 2 Stack Obj attribute (param)|Stack Obj attribute (param)]] |
|- | |- | ||
− | | | + | |0x17||[[Sims 2 room (Temp 0)|room (Temp 0)]] |
|- | |- | ||
− | | | + | |0x18||[[Sims 2 Neighbor in stack object|Neighbor in stack object]] |
|- | |- | ||
− | | | + | |0x19||[[Sims 2 Local|Local]] |
|- | |- | ||
− | | | + | |0x1A||[[Sims 2 Const|Const]] |
|- | |- | ||
− | | | + | |0x1B||Unused |
|- | |- | ||
− | | | + | |0x1C||[[Sims 2 Check tree advert: Personality variance|Check tree advert: Personality variance]] |
|- | |- | ||
− | | | + | |0x1D||[[Sims 2 Check tree advert: Minimum|Check tree advert: Minimum]] |
− | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | + | |0x1E||[[Sims 2 My person data (temp)|My person data (temp)]] | |
|- | |- | ||
− | | | + | |0x1F||[[Sims 2 Stack Object's person data (temp)|Stack Object's person data (temp)]] |
+ | |} | ||
+ | | | ||
+ | {|class="wikitable" | ||
|- | |- | ||
− | | | + | |0x20||[[Sims 2 My person data|Neighbor's person data]] |
|- | |- | ||
− | | | + | |0x21|| |
|- | |- | ||
− | | | + | |0x22|| |
|- | |- | ||
− | | | + | |0x23|| |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | + | |0x24|| | |
|- | |- | ||
− | | | + | |0x25|| |
|- | |- | ||
− | | | + | |0x26|| |
|- | |- | ||
− | | | + | |0x27|| |
|- | |- | ||
− | | | + | |0x28|| |
|- | |- | ||
− | | | + | |0x29|| |
|- | |- | ||
− | | | + | |0x2A|| |
|- | |- | ||
− | | | + | |0x2B|| |
|- | |- | ||
− | | | + | |0x2C|| |
|- | |- | ||
− | | | + | |0x2D|| |
|- | |- | ||
− | | | + | |0x2E|| |
|- | |- | ||
− | | | + | |0x2F|| |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 23:48, 11 September 2010
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 |
[edit] 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.
[edit] My
[edit] Stack Object
[edit] General Variable Reference
Variables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|