Difference between revisions of "Persistent Variables"

From FreeSpace Wiki
Jump to: navigation, search
(Brought into line with goober's spelling to avoid persecution)
(contents of page have been moved to "variables")
Line 1: Line 1:
Variables have been a part of FRED since the Retail version, but are limited by only being available in the mission where they are defined. Persistent variables differ in this, as they are stored for later use instead of being lost for good when the mission ends. This allows mission designers to carry over specific information between missions and even campaigns.
+
#REDIRECT [[Variables]]
 
 
There are two types of persistent variables:
 
 
 
===Player-persistent===
 
This type of persistent variable is stored in the pilot file. Further, they are stored immediately when they are created/changed from within a mission. This means that any change is going to be there regardless of the later outcome of the mission. Player-persistent variables can be accessed and changed from any campaign played with the same pilot.
 
 
 
===Campaign-persistent===
 
These persistent variables are stored in the campaign file, and are only stored when a campaign progresses to a new mission. So if the player is killed or quits during a mission, and changes made to a campaign-persistent variable are not stored.
 
[[Category:FRED]]
 

Revision as of 20:50, 31 January 2008

Redirect to: