Barotrauma

Barotrauma

AI NPCs
RubbingMyAxe  [developer] 8 Dec, 2024 @ 10:44pm
Fifth Update
This update gives the NPCs the ability to interpret commands from the text.

It's not perfect, but I think it's still useful. If you have any feedback about how it can be improved, or ideas for new commands, let me know!

The list of actions they're able to perform are below. <> parameters are optional. [] parameters are required.
  • FIGHT <target>
  • FOLLOW [target]
  • REPAIR <target>
  • GET [item]
  • GOTO [target]
  • DROP [item]
  • GIVE_ME [item]
  • CRAFT [item]
  • WAIT <seconds>
  • OPERATE [turret or reactor]
  • GO_TO_SUBMARINE
  • STORE [item]
  • RESCUE <target>
  • DECONSTRUCT
  • EXTINGUISH_FIRE

You can expect the best results if you use similar phrasing to what's listed above. For example, if you want a bot to go back to the submarine, say "go to the submarine" or "go back to the sub" instead of "go to the Barsuk". Multiple commands can be given at once, and they will try to follow them in order. For example, you can say "go to the command room, wait a minute, get a welding tool, go to the airlock, and then follow me", and they will execute each command sequentially. Some commands, like Follow or Operate, are final and they will not continue other commands afterward. So "follow me and then go to their airlock" will result in them just following you.

Other changes include:
  • Lots of internal optimizations, bug fixes, etc.
  • Added Orders prompt to the options screen. If you have a particular phrase you want them to respond a certain way to and they won't do it consistently, you can add it as an example to the prompt.
  • Added checkboxes for Orders and Chat to the options screen. So if you don't care about chatting with the bots, you can turn that off and just use chat to assign them orders. Or the other way around!
  • Made ! chatbox command prioritize bots with the exact name, bots on your crew, and bots within the same room. This should resolve issues with you trying to talk to a bot next to you but triggering a bot elsewhere.
  • Changed how data was saved for bots so that it's not entirely based on their name. It's now based on original name, job, appearance, etc. so chatting with one bot should not influence another bot with the same name anymore.
  • Added appearance information to the prompt. So bots know if the person speaking to them is bald, tattooed, has an eyepatch or piercings, etc.
< >
Showing 1-1 of 1 comments
RubbingMyAxe  [developer] 9 Dec, 2024 @ 1:57pm 
Here is a short clip I made showing how flexible the commands can be: https://i.imgur.com/1HtHtMw.mp4
< >
Showing 1-1 of 1 comments
Per page: 1530 50