Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment   Page 2 of 2      Prev   1   2
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,404
Reply with quote  #16 
Normally players cannot give orders to a surrendered ship. Your script may be able to clear its AI, though, and give it a different destination without flipping the "has surrendered" bit. I have never tried that but it is worth the attempt. You may even be able to make it respond to Comms orders.
__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
ryleyra

Registered:
Posts: 3,008
Reply with quote  #17 
I'm not 100% sure of this, but the "hasSurrendered" bit does not make ally ships show up in yellow, they stay blue. So you can set an enemy to "Follow Comms Orders", but the only messages you can send are the normal surrender and taunts.

I think surrendered ships don't appear in the menu anyway. The brainstack reset might still work for other things though. (basically, just kill anything that would normally be associated with an enemy, which is overridden by the surrender behavior)
Cain Fortea

Registered:
Posts: 8
Reply with quote  #18 
Clear AI Command stack does nothing. The only thing that shows up in the stack is the command trying to run away.

I am clearing the AI command stack after making it surrender.  I'll try flipping it around.
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,404
Reply with quote  #19 
There is another option using a generic object. Try this:

  • Create an invisible generic object and use set_relative_position to put it directly behind the yellow (surrendered) ship.
  • Use the direct commend to make the generic object go where you want the yellow ship to go.
  • Until the ship reaches that destination, constantly use set_relative_position and copy_object_property (angle) to force the yellow ship to stay in front of the generic object.

In this way you can make the yellow ship go anywhere you want. There are still two problems that may diminish the player's experience:

If Comms talks to the yellow ship the message selections will still seem like an enemy.
If friendly NPC ships come too close to the yellow ship they may open fire on it. Yes, friendly NPS ships are bloodthirsty and will happily blast a surrendered enemy.

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.