Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: dragonsniper on November 08, 2008, 06:04:20 pm

Title: Simple FRED question?
Post by: dragonsniper on November 08, 2008, 06:04:20 pm
How do you set a campaign persistent variable equal to the hull strength of a ship?
Title: Re: Simple FRED question?
Post by: Mobius on November 08, 2008, 06:07:46 pm
modify-variable
  <VariableName>
   hits-left
   <Ship>
Title: Re: Simple FRED question?
Post by: dragonsniper on November 08, 2008, 06:13:02 pm
Thx (I've been FREDing all day and my brains fried ;))
Title: Re: Simple FRED question?
Post by: Mobius on November 08, 2008, 06:23:22 pm
No problem. If you have MSN and need quick answers to your questions you may contact me. :)
Title: Re: Simple FRED question?
Post by: dragonsniper on November 11, 2008, 01:46:32 pm
Would I only have to use this in one missions events editor, or do I have to put it in every mission?


(One more question) If I want to use this for all the missions except the first one, how could I do that?
Title: Re: Simple FRED question?
Post by: FUBAR-BDHR on November 11, 2008, 01:48:56 pm
The event needs to be in every mission you want to update it in.

I believe you can just define it in the second mission but why not be safe and do it in the first and just set it to 999 or something. 

If you check Kara's FAQ most of this is in there.