Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: emark4 on March 24, 2018, 07:07:36 pm

Title: How to make an npc not lose health after a certain health percentage?
Post by: emark4 on March 24, 2018, 07:07:36 pm
I've noticed in my blue planet playthroughs that npc's like simms lose health but they dont seem to be in any danger of dying at all, as if their health dosent drop after say, having 35 percent health left.

Does anyone know how can I FRED that in?
Title: Re: How to make an npc not lose health after a certain health percentage?
Post by: PIe on March 24, 2018, 07:20:24 pm
http://wiki.hard-light.net/index.php/Ship-guardian-threshold
Title: Re: How to make an npc not lose health after a certain health percentage?
Post by: Nightmare on March 24, 2018, 07:46:47 pm
Best used with rand-multiple as value.
Title: Re: How to make an npc not lose health after a certain health percentage?
Post by: General Battuta on March 25, 2018, 01:13:52 am
On higher difficulties in BP they also lose their weapons and the AI stops attacking them until until they've regenerated a bit.
Title: Re: How to make an npc not lose health after a certain health percentage?
Post by: emark4 on March 25, 2018, 10:24:35 am
http://wiki.hard-light.net/index.php/Ship-guardian-threshold

I see the guardianed option but not the threshold part. Where can I find that?
Title: Re: How to make an npc not lose health after a certain health percentage?
Post by: PIe on March 25, 2018, 11:12:02 am
Quote

Takes 2 or more arguments...
1: Threshold value.
2+: Name of ships to make unkillable.
Title: Re: How to make an npc not lose health after a certain health percentage?
Post by: karajorma on March 25, 2018, 11:16:43 am
http://wiki.hard-light.net/index.php/Ship-guardian-threshold

I see the guardianed option but not the threshold part. Where can I find that?

There are two SEXPs, ship-guardian and ship-guardian-threshold. The first one does the same thing but kicks in when the ship is at 1%. You're probably just looking at the first one.
Title: Re: How to make an npc not lose health after a certain health percentage?
Post by: General Battuta on March 25, 2018, 11:18:40 am
Make sure you're running FRED2 Open and not retail FRED2.