Difference between revisions of "Sims 2 Global"

From SimsWiki
Jump to: navigation, search
(Added the remaining Global variables - there were a LOT of them missing!)
Line 4: Line 4:
 
!Global Attribute Name!!Details
 
!Global Attribute Name!!Details
 
|-
 
|-
−
|Hour||This is as you would expect. If it is 16:30, Hour has value 16.
+
|Hour||This is as you would expect. If it is 16:30, Hour has the value 16.
 
|-
 
|-
−
|Day of Month||
+
|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||?
 +
|-
 +
|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.
 +
|-
 +
|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 [[Sims 2 My person data|family number]] of the household on the currently loaded lot.
 
|Current Family||This is the [[Sims 2 My person data|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.
 
|-
 
|-
−
|Game Edition||This allows you to tell what version of the game you are running. It’s a bit field, but also has the value 2000 (0x07D0) to show it is the Base Game Only. The flags are:-<br>01: Not Base only<br>02: University EP (Flag 01 is also set in this case of course)<br>03: Night Life EP<br>04: Open For Business EP<br>05: Family Fun SP<br>06: Glamour Life SP<br>07: Pets EP<br>08: Seasons EP<br>09: Celebration! SP<br>0A: H&M SP<br>0B: Bon Voyage EP<br>0C: TSS (SP?)<br>0D: Store ?<br>0E: Free Time EP<br>0F: Kitchen and Bathroom SP<br>10: IKEA SP
+
|Unused||Literally unused, but it's there, so...
 +
|-
 +
|Last GZ Button ID||?
 +
|-
 +
|Budget Mod 10000||The modulo of the family's current household funds divided by 10,000.<br>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.<br>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.<br>0: English<br>1: English (UK)<br>2: French<br>3: German<br>4: Italian<br>...
 +
|-
 +
|Speed  0x0010||The current speed the simulation runs at: Normal = 2 ; Fast = 3 ; Ultra Fast = 4
 +
|-
 +
|Paused  0x0011||Whether the game is currently paused. Set to 1 if that is the case.
 +
|-
 +
|Held Sim Speed||?
 +
|-
 +
|mode  0x0013|| The currently selected game mode >> Live Mode = 0 ; Build = 1 ; Buy = 2 ; Options = 3 ; Neighbourhood Story = 4
 +
|-
 +
|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:-<br>01: Not Base Game<br>02: University<br>03: Nightlife<br>04: Open For Business<br>05: Family Fun Stuff<br>06: Glamour Life Stuff<br>07: Pets<br>08: Seasons<br>09: Celebration! Stuff<br>0A: H&M Fashion Stuff<br>0B: Bon Voyage<br>0C: Teen Style Stuff<br>0D: Store Edition<br>0E: FreeTime <br>0F: Kitchen & Bath Interior Stuff<br>10: IKEA Home Stuff
 +
|-
 +
|Inhibit Move In||?
 +
|-
 +
|Lot Has House||?
 +
|-
 +
|Lot Size||?
 +
|-
 +
|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||?
 +
|-
 +
|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||Monday = 0 ... Sunday = 6
 
|Day of Week||Monday = 0 ... Sunday = 6
 
|-
 
|-
−
|Speed  0x0010||ui speed >> Slow = 2 ; Fast = 3 ; Ultra Fast = 4
+
|Parental Control (non zero = on)||?
 +
|-
 +
|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:<br>0 = Residential<br>1 = Community<br>2 = Dorm<br>3 = Frat<br>4 = Secret Society<br>5 = Hotel<br>6 = Secret Vacation Lot<br>7 = Secret Hobby Lot<br>8 = Apartment Base<br>9 = Apartment Sub<br>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.
 +
|-
 +
|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.<br>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.<br>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.<br>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.<br>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.
 
|-
 
|-
−
|Paused  0x0011||If the game is paused >> 0 = no ; 1 = paused
+
|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:-<br>01: Apartment Life<br>02: Mansion & Garden Stuff
 
|-
 
|-
−
|mode  0x0013||Wich mode it is in >> Live Mode = 0 ; Build = 1 ; Buy = 2 ; Option (save and quit) = 3 ; the window where you can see and order pictures taken with the camera = 4
+
|Lot Class||This indicates whether the current lot is low, middle or high-class, though I don't know how this is determined.
 
|}
 
|}

Revision as of 03:51, 4 August 2026

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 ?
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.
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 Literally unused, but it's there, so...
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.
0: English
1: English (UK)
2: French
3: German
4: Italian
...
Speed 0x0010 The current speed the simulation runs at: Normal = 2 ; Fast = 3 ; Ultra Fast = 4
Paused 0x0011 Whether the game is currently paused. Set to 1 if that is the case.
Held Sim Speed ?
mode 0x0013 The currently selected game mode >> Live Mode = 0 ; Build = 1 ; Buy = 2 ; Options = 3 ; Neighbourhood Story = 4
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
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
Inhibit Move In ?
Lot Has House ?
Lot Size ?
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 ?
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 Monday = 0 ... Sunday = 6
Parental Control (non zero = on) ?
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.
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
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