Healing AI

HEALING AI

Basic healing 

Once you have a med bay, you can have your units go there to heal. With python 2, there are not many good options for healing ai, because you can’t hold the crew in the room. 

For example, this ai will make a crew go heal as soon as they are damaged. It’s not very efficient since they’ll abandon the room that just got hit (with them in it) instead of repairing, even if they are near full health. 

1) Ability command 
2) Your health less than 100 – Target med room 
3) Repair AI

Continue Current Job Healing 

Python 3 and the continue current job action provide a lot more capability, but it is complicated to use. You’ll use two commands, one using a condition at low health to say when the crew should go heal; and a second condition at higher health to say when the crew should stop healing. The condition at low health should be set such that the percentage of health is greater than 2, so that the crew doesn’t die to one plasma shot instantly. So if the crew has more than 8 HP use 25%, if they have 8 or less health use 50%. 

1) Ability command 
2) Your health less than 25 – Target your med room 
3) Your health less than 100 – Continue current job 
4) Your shield HP less than 100 – Target condition room 
5) Your reactor HP less than 100 – Target condition room 
6) None – Target shield room 

Perhaps you’ve noticed the issue with this. Between 25 and 99 percent health, the crew will keep doing what they are doing. If a reactor is damaged and the crew runs to repair it, but takes a small amount of damage on the way running through a fire, they’ll stay in the reactor forever. We really would want them to go back to the shield room so they can boost it. We could lower command 3 to 75% so that a tiny amount of damage didn’t cause them to get stuck, but then our crew wouldn’t heal fully before leaving the med Bay. In summary, this ai is broken when the crew becomes damaged but doesn’t continue to take damage. They’ll keep sitting in whatever room they are currently in.

Healing v2 

One way to handle this problem is to have the crew only repair one room type, that is also their home room. The crew will never be stuck in a room you don’t want them to be in, because they’ll never enter a room you don’t want them to be in. This solution works fairly well; you can use it for crew that you expect to take a lot of damage such as shield crew. 

1) Ability command 
2) Your health less than 25 – Target your med room 
3) Your health less than 100 – Continue current job 
4) Your shield HP less than 100 – Target condition room 
5) None – Target shield room 

The other way to deal with the problem of crew getting stuck is to make them heal only if there are no repairs to be done. Hopefully your crew have a breather to pop into the med bay!

1) Ability command
2) Your health less than 25% – Target your med room
3) Repair AI
4) Your health less than 100% – Continue Current Job
5) None – Target [home room]

Escape Room

When your crew are taking a lot of damage, you may have limited space in your med bay. If you want to save your crew from death, you can have them wait to heal in a room near your med bay.

You can split up your conditions so that crew will heal themselves if they are deathly wounded (command 2) and heal until they have some health left (command 3), but not fully heal (command 6) until there are no repairs to do (command 5). This may result in more trips to and from the med bay, but may be useful to you under certain circumstances.

1) Ability command
2) Your health less than 25% – Target your med room
3) Your health less than 25% – Target [escape room]
4) Your health less than 50% – Continue Current Job
5) Repair AI
6) Your health less than 100% – Continue Current Job
7) None – Target [home room]

Healing for boarders 

With boarders, getting stuck with healing AI is more common, since your boarders can take damage from mines, enemy crew seeking them out, and just walking through rooms with critical strike or poison gas crew. Transforming your roaming boarder to a camper when they take some damage is not necessarily bad though. If they keep taking damage and fall below 25%, they’ll instantly teleport back to your teleport, and then walk to your med room. 

1) Ability command 
2) Your health less than 25 – Target your med room 
3) Your health less than 100 – Continue current job 
4) None – Target enemy reactors 

If you want boarders that avoid enemy crew (to preserve their life) you can have the boarder leave the enemy ship if they take any damage. This also prevents them from getting stuck since the two conditions are at the same health level. Just remember the crew won’t teleport back if the med room is full, since command 2 will not be valid. 

1) Ability command 
2) Your health less than 100 – Target your med room 
3) Your health less than 100 – Continue current job 
4) None – Target enemy reactors 

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top