Money Globals

This global mod adds the following global BHAVs

  • 0x0CA0 - "Money - Can Afford?" (Sim OID or NID, Amount): Can the Sim identified in P0 (either by OID or NID) afford the amount in P1? Returns True or False
  • 0x0CA1 - "Money - Spend" (Sim OID or NID, Amount, Type): Deduct from the Sim identified in P0 (either by OID or NID) the amount in P1, treating the expense as Type (ref const 0x013F). Returns True or False
  • 0x0CA2 - "Money - Income" (Sim OID or NID, Amount, Type): Add to the Sim identified in P0 (either by OID or NID) the amount in P1, treating the income as Type (ref const 0x013F). Returns True or Error
  • 0x0CA3 - "Money - Transfer" (From Sim OID or NID, To Sim OID or NID, Amount, Type): Transfer from the Sim identified in P0 (either by OID or NID) to the Sim identified in P1 (either by OID or NID) the amount in P1, treating the expense/income as Type (ref const 0x013F). Returns True or False
  • 0x0CA4 - "Money - Pay Owner" (Sim OID or NID, Amount, Type): Transfer from the Sim identified in P0 (either by OID or NID) to the owner of the lot (if any and not in the same family) the amount in P1, treating the expense as Type (ref const 0x013F). Returns True or False

Installation

Copy this mod into your downloads folder, if you split my mods into a seperate sub-folder, I suggest you place it there as a number of my mods need it.


Installation - SimPe

If you use SimPe to delve into my mods, you can get SimPe to recognise the new global BHAVs as follows.

  • Start SimPe
  • From the "Extra" menu, select "Preferences..."
  • Click on the "File Table" in the left-hand ribbon
  • Click on "add" (left most item of the "add" "delete" "change" triple)
  • Click the "Load File" button
  • Browse to the sub-folder you copied the WH_MoneyGlobals.package file to and select the package
  • Click the "Open" button
  • Click the "OK" button
  • There will be a new entry at the top of the "Advanced Settings" area that refers to the WH_MoneyGlobals.package file, check the box to its left
  • Click the "Reload" button
  • Click the "OK" button

Conflicts

The mod adds global BHAVs starting at 0x0CA0 as listed above, so will conflict with any other mod that does the same.

No known conflicts


Simblr Links


Credits

  • The developers of SimPE.

Files