0x001D

From SimsWiki
Jump to: navigation, search
Set Motive Change
OpCode:0x001D
Game Version:The Sims 2


Overview

This primitive allows control of gradual changes in needs (a.k.a. motives).

Use

There is no instruction wizard for this instruction, so the following table details the meaning of each of the operands.

Operand editing
Operand Description Operand Values
0 Variable containing amount to change motive by. The choices are any of the many variables and attributes that are part of SimAntics. Where the variable type can have many of them, e.g. Local variables, operands 4 and 5 give the low and high order byte respectively.
1 Variable containing value at which to stop the motive change at. The choices are any of the many variables and attributes that are part of SimAntics. Where the variable type can have many of them, e.g. Local variables, operands 6 and 7 give the low and high order byte respectively.
2 The motive to be changed 00:Shopping
01:Scratch/Chew
02:Unused
03:Mood
04:Mood+Mem
05:Energy
06:Comfort
07:Hunger
08:Water / Hygiene
09:Bladder
0A:unused
0B:sleep state
0C:Unused
0D:Environment
0E:Social
0F:Fun
3 - bit 1 Controls "Clear all" off: set motive
on: clear all
3 - bit 2 Controls "Auto Clearing the Person Data Motive Decay" off: False
on: True
4 & 5 qualifiers on the variable from operand 0, eg. Local(0xnnnn)
6 & 7 qualifiers on the variable from operand 1, eg. Local(0xnnnn)
8 thru 15 Unused?

See also

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox