Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Xavier Wise

Registered:
Posts: 983
Reply with quote  #1 
I have been developing the AI controls in my sandbox and wanted to note some general observations for others to use. If you have any others, please add below.

  • When assigning a new AI stack to a ship, it can take up to a minute for any observable change in behaviour to occur.
  • topSpeed is the maximum speed a ship will travel at. Default Kralien topSpeed is 0.6.
  • throttle is how quickly a ship will accelerate to meet its topSpeed. I suggest setting ship to throttle 4 as a good level of acceleration.
  • default AI of any newly spawned ship (neutral or enemy) is:
Quote:
Try to become Leader,
Chase Player anywhere on map,
Chase Station anywhere on map,
Chase AI ship within 3000/500,
Chase Player within 3000/500,
Chase Anger,
Leader Leads,
Follow Leader

  • the last instruction in the list is the most important so will be applied first if its criteria are fulfilled.
Quote:
Example:
Chase Player anywhere on map, 
Chase Station anywhere on map, 
Chase AI ship within 3000/500

The ship will prioritise chasing an AI ship closer than 3000 outside a nebula or 500 inside a nebula. If there is no AI ship within 3000/500, it will go to the next most important instruction and go after a station, anywhere on the map. If there are also no stations, it will chase the player, anywhere on the map.

__________________
Captain Xavier Wise TSN Raven (BC-014)
Link to TSN RP Community website
Link to TSN Sandbox
Link to Blog
Xavier Wise

Registered:
Posts: 983
Reply with quote  #2 
  • LEADER LEADS - if a ship is the leader of the fleet, it will pick a target and head towards it. Other ships with the same fleet number will follow that ship and attack its target if they have the "FOLLOW LEADER" AI command assigned to it.
  • FOLLOW LEADER - if the ship is the leader, it will follow its own directions. If it is not the leader, it will follow the ship designated as the leader, taking the heading and target from the fleet leader.
  • TRY TO BECOME LEADER - if there is no designated leader of the fleet, the ship will try to become the leader. If there is already a leader, then the test will fail and the ship will not become the leader.
  • By removing LEADER LEADS and TRY TO BECOME LEADER from a ship's AI stack, stop it becoming the leader of the fleet. This way, you can tailor which ship is the fleet leader and give just that ship directions with the rest of the ships follow. (More testing is needed, but I have managed to get this to happen).

__________________
Captain Xavier Wise TSN Raven (BC-014)
Link to TSN RP Community website
Link to TSN Sandbox
Link to Blog
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 1,716
Reply with quote  #3 
These are good observations, Xavier. Thank you for posting them.

Have you experimented to see what happens to a fleet when only one ship tries to become leader, but then that leader ship gets destroyed?

__________________
"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.