Barotrauma

Barotrauma

Not enough ratings
MultiCommand
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
11.517 KB
Jul 6, 2024 @ 6:15am
Apr 10 @ 12:19pm
6 Change Notes ( view )

Subscribe to download
MultiCommand

Description
Simple c# mod that adds ability to create multicommands / aliases for console commands
Inspired by multicommand from XMLHotReloader

How it works?
Multicommands - are just regular commands that executes several lines sequentially

Multicommands are stored in Barotrauma\ModSettings\MultiCommand\MultiCommands.xml
You can edit file or use
Commands
  • add multicommand subcommand1;subcommand2... - Creates multicommand if it doesn't exist and adds subcommands to it. All its arguments just mashed into one big string and then splited by semicolon (;). Multicommand names are tabable. Without arguments it just reloads file. Also if you want nested " you can do \", i think it's vanilla feature actually :BaroDev:

  • create multicommand subcommand1;subcommand2... - same as add, but it overwrites multicommand

  • remove multicommand [sub command index / sub commands] - With 1 arg deletes multicommand. If 2 args is int then it deletes subcommand at that index, negative indexes are supported. If not then tries to delete exact that sub commands, tabable

  • removeall - Removes all multicommands

  • print - Prints multicommand, tabable

  • printmulticommands - Prints all multicommands

Works only in singleplayer for now
I made it for myself but perhaps someone else find it useful
2 Comments
Nupaska  [author] Jul 9, 2024 @ 6:11am 
Mod order doesn't matter, are you sure you installed lua and enabled c#?
Alexander Jul 9, 2024 @ 6:09am 
tried changing mod order around but console keeps saying command "create" not found.