Sims 2 Global

From SimsWiki
Jump to: navigation, search

There are lots of fields here that can be used from the Global variables.

Global Attribute Name Details
Hour This is as you would expect. If it is 16:30, Hour has the value 16.
Day of Month Self-explanatory. This value is not used a lot as functions usually only use the Hour, Minute and Day of Week. One example that does use it is the Newspaper object.
Zoom Level(S/M/L) ?
Selected Person ID Neighbour ID (nID) of the currently selected Sim.
Time of Day Possibly whether it's Day or Night right now?
Minute This is as you would expect. If it is 16:30, Minute has the value 30.
Second Since Sims 2's game logic runs at 30 ticks per second, this can never take on an odd value. This divided by 2 is the current tick the game logic is on. 30 ticks make a Minute. I don't think this is ever used in any game functions.
Month I haven't seen this used anywhere. Fun fact - any game will start in the 6th month.
Year I haven't seen this used anywhere. Fun fact - any game will start in the year 1997.
Current Family This is the family number of the household on the currently loaded lot.
Current House This is the ID of the lot that is currently loaded. If this is set to 0, the game assumes you're in CAS mode.
Unused Supposedly unused, but it does take on values other than zero sometimes. Needs more investigation.
Last GZ Button ID ?
Budget Mod 10000 The modulo of the family's current household funds divided by 10,000.
Example: If there are currently §20,632 in cash present, "Budget Mod 10000" would be 632.
Budget Div 10000 The family's current household funds divided by 10,000 and truncated.
Example: If there are currently §20,632 in cash present, "Budget Div 10000" would be 2.
Current Language The language the game is currently played in. This value is used to determine which text strings (from STR#, CTSS or TTAs) are to be displayed in-game, and it is NOT equal to the value found in the Windows Registry. (Example: English (UK) would be 0x13 when viewed in the Registry, but it is 0x02 in this Global variable.)
Unsupported languages are skipped in this list for brevity, but the list does go all the way to 0x2C, which supposedly would've been Vietnamese.
01: English
02: English (UK) (Note: Language is supported, but few strings are actually translated)
03: French
04: German
05: Italian
06: Spanish
07: Dutch
08: Danish
09: Swedish
0A: Norwegian
0B: Finnish
0C: Hebrew (Note: Language is supported, but few strings are actually translated)
0D: Russian
0E: Portuguese
0F: Japanese
10: Polish
11: Simplified Chinese
12: Traditional Chinese
13: Thai
14: Korean
...
1A: Czech
1B: Greek (Note: Language is supported, but few strings are actually translated)
1C: Hungarian
...
23: Brazilian Portuguese
Speed The current speed the simulation runs at: Normal = 2 ; Fast = 3 ; Ultra Fast = 4
Paused Whether the game is currently paused. Set to 1 if that is the case.
Held Sim Speed ?
Mode The currently selected game mode:
0 = Live
1 = Build
2 = Buy
3 = Options
4 = Camera
Game Edition Flags 1 Which packs you're currently playing with (excluding Apartment Life and Mansion & Garden Stuff, these are handled with a different Global variable). This is a bit field, with the exception of a special value 2000 (0x07D0) that is set when you are running the base game without any add-ons. The flags are:
01: Not Base Game (This gets automatically set if any pack other than the base game is installed!)
02: University
03: Nightlife
04: Open for Business
05: Family Fun Stuff
06: Glamour Life Stuff
07: Pets
08: Seasons
09: Celebration! Stuff
0A: H&M Fashion Stuff
0B: Bon Voyage
0C: Teen Style Stuff
0D: Store Edition
0E: FreeTime
0F: Kitchen & Bath Interior Stuff
10: IKEA Home Stuff
A full installation would show the value -1 here - this is due to the fact the value is a signed integer, which makes 65535 the same as -1.
Inhibit Move In ?
Lot Has House Seems to always be 1 on residential lots.
Lot Size I've never seen values other than 30 here.
Current SKU Depending on this, there might be special restrictions placed on the game. Some functions in the game check for the SKU being set to 5, which applies to Thailand only. That's all I know.
Debug flags ?
Tutorial State Set to 1 if you're in the Tutorial
Indoor Tiles ?
Days Running ?
Maximum Day Number I've never seen values other than 30 here. Not sure what it would do.
Free Will Whether Free Will is turned off or on in the Settings. 0 = Off; 1 = On
House radio station ?
Interrupt On(Simless Build Mode in sims 1.x) ?
Demo Flags(Machine Level in sims 1.x) ?
Day of Week Self-explanatory. Monday is 0, Sunday is 6.
Parental Control (non zero = on) I'm really not sure why this is here, given Sims 2 does not have built-in parental controls.
Current Interaction GUID ?
Utility Available Flags ?
Utility Bill - Energy The currently accumulated energy bills. Note this is unused unless you have a mod to enable this scrapped feature.
Utility Bill - Water The currently accumulated water bills. Note this is unused unless you have a mod to enable this scrapped feature.
Current Neighborhood ID The ID of the neighbourhood you're currently in. If this is set to 0, the game assumes you're in a demo world and will restrict or change a lot of game logic. Usually this shouldn't happen though.
Lot Zoning The type of lot you are currently on:
0 = Residential
1 = Community
2 = Dorm
3 = Frat
4 = Secret Society
5 = Hotel
6 = Secret Vacation Lot
7 = Secret Hobby Lot
8 = Apartment Base
9 = Apartment Sub
10 = Secret Witch Lot
Allow Aging Whether Sims can age while you're playing. Toggled with the aptly named cheat aging --on/off. 0 = No Aging; 1 = Aging
Last Neighborhood ID The ID of the neighbourhood you visited before the current one. This can be the same one as the one you're currently in. If it's -1, then you did not change neighbourhoods in the current session.
Lot Entry Method ?
Cinematic Camera off/on Whether you turned off cinematics/cutscenes in the settings or not. 0 = Off; 1 = On
Lot Value Div 1000 The value of the lot itself, without any furnishings, and divided by 1000 and truncated.
Example: If the lot is worth §1,600, this variable would be set to 1.
Lot Value Mod 1000 The modulo of the value of the lot itself, without any furnishings, divided by 1000.
Example: If the lot is worth §1,600, this variable would be set to 600.
Objects Value Div 1000 The value of all objects on the lot, and divided by 1000 and truncated.
Example: If all furnishings combined amount to §12,730, this variable would be set to 12.
Object Value Mod 1000 The modulo of the value of all objects on the lot, divided by 1000.
Example: If all furnishings combined amount to §12,730, this variable would be set to 730.
Max Visitors The amount of visitors that may be present on a lot at once. This is controlled with the maxNumOfVisitingSims cheat and can also be changed in the userStartup.cheat. The default value is 8.
Object Error Flags ?
Camera Busy ?
Instant Write Once Flags ?
Neighbourhood Type Possibly indicates whether the current neighbourhood is a main neighbourhood, a Downtown, a Business District/Suburb, a University, a Vacation neighbourhood, the secret Hobby neighbourhood or the secret Witches neighbourhood... but I am not sure.
Unused Literally unused, but it's there, so...
Puppy/Kitten Aging Disabled? 0 = Aging is enabled; 1 = Aging is disabled. I'm not sure how this is controlled separately from other Sims aging.
Bug Jar Time Decay Possibly shows how quickly the bugs inside the bug jars die.
Game Edition Flags 2 Which packs you're currently playing with (this one is only used for the last packs, as the other bit field ran out of space since each of these variables are 16-bit). The bit flags are:-
01: Apartment Life
02: Mansion & Garden Stuff
On a full game install, this value will be 3.
Lot Class This indicates whether the current lot is low, middle or high-class, though I don't know how this is determined.
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox