0x0019

From SimsWiki
Revision as of 10:42, 24 April 2011 by MogHughson (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Alter Budget
OpCode:0x0019
Game Version:The Sims 2
Family Budget shown in bottom left of dashboard

Overview

This primitive provides a way to alter the money your Sims have.

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 holding amount 00:Literal
01:Param
02:Local
03:Any other variable indicated in operand 1. Where the variable type can have many of them, e.g. Local variables, operands 2 and 3 give the low and high order byte respectively.
1 Variable holding amount Used when Operand 0 has value 03 (or anything greater). 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 2 and 3 give the low and high order byte respectively.
2 & 3 qualifiers on the variable from operand 0 or 1, eg. Local(0xnnnn)
4 - bit 1 Controls TEST on: TEST
off: Do it
4 - bit 2 Controls +/- on: Amount is added to budget
off: Amount is subtracted from budget
4 - bit 3 Controls amount multiplier on: Multiplied by Temp 0x0002
off: Multiplied by 1 if 7 & 8 are both 00
off: Multiplied by the literal number of operands 7 & 8 if non-zero
5 unused?
6 Controls type of expense 00:misc expense
01:job income
02:misc income
03:food expense
04:bill payment
05:maintenance expense
06:purchase
07:architecture
08:transaction income (unused)
09:misc business income
7 & 8 The literal number used with operand 4 - bit 3
9 thru 15 Unused?

See also

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox