Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Skullar on March 14, 2010, 09:21:43 am
-
I am still fredding Earth Alliance Civil War for TBP and something came to my mind...
are there any SEXPS so a mission can revognise if it is played for the first time ?
You know, when it is embedded in a campaign, you replay a mission when you somehow fail, however, I want some SEXPS being used when it is currently not the first time you play the mission...
-
Campaign-persistent variables?
-
Player Persistent Variables. Campaign Persistent ones wouldn't work since they will reset to the default value when the mission fails.
All you do is simply add one with a default value of 0. Set it to 1 whenever you want in the mission. For the stuff in the second playthrough you simply check if the variable = 1.