Author Topic: Error Message: Variable As Ship Name For AI Order. Please Tame.  (Read 1224 times)

0 Members and 1 Guest are viewing this topic.

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Error Message: Variable As Ship Name For AI Order. Please Tame.
So I've been working on a mission, where fighters within a certain range will break off from their escort mission to attack the player, but after a certain period of time will abort and return to their escort.  I've got an argument event to tell the wing to attack the player, and store the wing name in a variable.  Then I've got an event chained to it where the variable is used to identify the wing to give the remove-order sexp, but upon saving FRED complains about the use of a non-ship in the event.  Is there any possibility of the SCP team finding a way to silence this warning, or will it not work the way I think it will?  Should I just give up and use separate event sequences for each enemy wing?
The Trivial Psychic Strikes Again!

 

Offline Axem

  • 211
Re: Error Message: Variable As Ship Name For AI Order. Please Tame.
Try setting the default value of that variable into a valid ship/wing reference. Even if you have a dummy ship that has a false arrival cue. FRED uses the default value of variables when checking the validity of the sexps.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Error Message: Variable As Ship Name For AI Order. Please Tame.
I'd set it to Alpha 1 personally. Since unless you have the player ship under AI control at some point in the mission, any orders it accidentally receives will be completely ignored.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Error Message: Variable As Ship Name For AI Order. Please Tame.
I switched it to the player for default and it stopped complaining.  Thanks.
The Trivial Psychic Strikes Again!