Editing Special Variables

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Some variables are predefined and handled and/or updated by the game-engine itself.  
Some [[Globals|global]] variables are predefined and handled and/or updated by the game-engine itself.  
 
=='''Globals'''==


{|border="1" cellpadding="5" cellspacing="0"  
{|border="1" cellpadding="5" cellspacing="0"  
Line 41: Line 39:


* If all you want to know is if it is a new day (strictly meaning that the 12:00am boundary has been crossed), save the current GameDaysPassed into a SHORT variable (lastDay) and then when you want to do your comparison, create a SHORT (currentDay) and set it to the current GameDaysPassed. If (currentDay - lastDay) >= 1, then a day has passed. By storing GameDaysPassed in SHORT variables you trim off the factional hours that live in the decimal places. If you use floats instead of SHORTs you will essentially be checking if "24 hours has passed" rather than, "is it the next day."
* If all you want to know is if it is a new day (strictly meaning that the 12:00am boundary has been crossed), save the current GameDaysPassed into a SHORT variable (lastDay) and then when you want to do your comparison, create a SHORT (currentDay) and set it to the current GameDaysPassed. If (currentDay - lastDay) >= 1, then a day has passed. By storing GameDaysPassed in SHORT variables you trim off the factional hours that live in the decimal places. If you use floats instead of SHORTs you will essentially be checking if "24 hours has passed" rather than, "is it the next day."
=='''Locals'''==
No known/documented changes.
<!-- No other known changes
{|border="1" cellpadding="5" cellspacing="0"
|-
! style="background:#efefef;" | GameMonth
! style="background:#efefef;" | Name
! style="background:#efefef;" | Description
|-
| 0
| Morningstar
| Same # of days as January (31)
|-
| 1
| Sun's Dawn
| Same # of days as February (28)
|-
| 2
| First Seed
| Same # of days as March (31)
|-
| 3
| Rain's Hand
| Same # of days as April (30)
|-
| 4
| Second Seed
| Same # of days as May (31)
|-
| 5
| Mid-Year
| Same # of days as June (30)
|-
| 6
| Sun's Height
| Same # of days as July (31)
|-
| 7
| Last Seed
| Same # of days as August (31)
|-
| 8
| Heartfire
| Same # of days as September (30)
|-
| 9
| Frost Fall
| Same # of days as October (31)
|-
| 10
| Sun's Dusk
| Same # of days as November (30)
|-
| 11
| Evening Star
| Same # of days as December (31)
|-
|}




=='''Locals'''==
== Locals ==
 
There are also local variables with special functions:
There are also local variables with special functions:
{|border="1" cellpadding="5" cellspacing="0"  
{|border="1" cellpadding="5" cellspacing="0"  
Line 78: Line 140:
1 = Continously subtract damage as long as actor is in contact with trap.  
1 = Continously subtract damage as long as actor is in contact with trap.  
|}
|}
-->




[[Category:Variables]]
[[Category:Variables]]

Please note that all contributions to the Fallout3 GECK Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see GECK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)