Author Topic: How to keep enemies from attacking you, but still show up as enemies?  (Read 1854 times)

0 Members and 1 Guest are viewing this topic.

How to keep enemies from attacking you, but still show up as enemies?
I'm making a mission where the NTF has blockaded a remote GTI Facility, and the GTVI need to get Erinyes prototypes past the blockade into GTVA space.
Was hoping to dock the Prototype Erinyes to an NTF Fenris while the Fenris travels to the Jump Node and is ambushed by GTVA Forces.

Unfortunately, if I keep the Erinyes as the same team as the NTF, the GTVA forces destroy it. If I keep the Erinyes as part of the GTVA forces, the NTF forces destroy it.

So, I have two questions.
How to #1 change the allegiance of the Erinyes based on when the Fenris is disabled and not based on X seconds since beginning.
And, how to change the allegiance of yourself too, since the GTVA attacks me too.
I thought of keeping the Erinyes and myself as allied to GTVA, but give the NTF forces orders to ignore me... Will that work?

Also, the Erinyes automatically undocks unless I disable its Engines. But if I do that, the Erinyes cant escape to safety in time.

Edit:
What I am mainly asking for is to initiate commands, like Dock and Undock based on triggers, such as the destruction of a ship or so instead of specifying how many seconds after the beginning.

Thanks.
« Last Edit: July 25, 2007, 05:24:11 pm by foolfromhell »
Just don't give away the homeworld...

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: How to keep enemies from attacking you, but still show up as enemies?
Just set a "Protect ship" checkbox for hte Erynies (Misc options for hte ship) NO ONE will attack it as long as that flag is set...you can later remove it via a SEXP.


AS for the changing of IFF..you do the following..

WHEN
+ Has-Undocked
--- Eryines
---- Fenris
---- 1
+change-IFF
---ship1
---ship2
---shipN
---Hostile (or friendly)
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: How to keep enemies from attacking you, but still show up as enemies?
Another thing to keep in mind is to control the Eryines..have it start docked with the Fenris, set it's initial speed to 0...you might even want to give it the PLAY DEAD orders..to do nothing..

Then you can use the AI goals SEXP to first clear any goals it has and then give it the undock goal, followed by the departure one.
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 
Re: How to keep enemies from attacking you, but still show up as enemies?
How do I trigger a Sexps to happen when something blows up or something?
Is there a guide to the Sexps?
Just don't give away the homeworld...

 
Re: How to keep enemies from attacking you, but still show up as enemies?
How do I trigger a Sexps to happen when something blows up or something?

Use the "is-destroyed-delay" SEXP.

Is there a guide to the Sexps?

Yeah. Read the FRED 2 help topics.
Fun while it lasted.

Then bitter.

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: How to keep enemies from attacking you, but still show up as enemies?
Try the Freespace Wiki (top of the page)

but basicly, all SEXP's are self-explanatory in msot cases...when you set up one SEXP a more detailed explanation of what each field does will be written in the events editor (bottom)
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Ghostavo

  • 210
  • Let it be glue!
    • Skype
    • Steam
    • Twitter
Re: How to keep enemies from attacking you, but still show up as enemies?
foolfromhell, you might find the walkthrough helpful. It helps get a feel of how to use basic sexp, and other useful things.
"Closing the Box" - a campaign in the making :nervous:

Shrike is a dirty dirty admin, he's the destroyer of souls... oh god, let it be glue...