Don't Starve Together

Don't Starve Together

Não há avaliações suficientes
Console Select
   
Premiar
+ favoritos
Nos favoritos
- favoritos
Tamanho
Publicado em
2.161 KB
27/jan./2017 às 19:50
1 nota de atualização ( ver )

Inscreva-se para baixar
Console Select

Descrição
Extra Console Commands

This mod adds commands to the debug console (accessed by pressing ~).

Klei Forum Thread with detailed notes:
http://forums.kleientertainment.com/topic/73779-console-select-additional-console-commands-keep-forgetting-prefab-names/

The first part of the mod lets you spawn items based on their in-game name rather than the prefab name. For example, you can type

c_spawn("Science Machine")

instead of

c_spawn("researchlab")

The names are case and space sensitive, but no more trying to remember what the prefab name is and if it has an underscore or not. You can use the in-game name instead of the prefab name for the c_spawn, c_give, c_mat, c_list, c_findnext, c_find, c_countprefabs, and c_selectnear console commands. In the case that more than one prefab has the same name, the command will choose whichever one the game lists first. For example, c_spawn("Boulder") seems to always spawn "rocks2" (the boulder with gold veins). If you want a different type of boulder, you can still use the prefab name to spawn it.



The second part is a bunch of new commands that allow you to select and manipulate entities in the game world. You begin the command with one of the following selectors. These selectors do nothing on their own, but specify which group of entities you want to manipulate:

c_all()
c_all("Beefalo")
c_all("researchlab")

c_all() selects all the entities in the game world. You rarely want to use this directly. You can give c_all() a prefab name to select all entities of that type. You can use the in-game name or the prefab name of the entities.

c_players()
c_players("HabdomeRaider")
c_me()

c_players() selects all the player entities. You can give c_players() a player's name to select that specific player. c_me() selects just yourself.

c_mouse()

c_mouse() selects the entity sitting under your mouse cursor.



Once you have selected a group of items, you can apply these commands to that group. Commands are separated with colons and can be chained together:

c_mouse():print() //print the name of the entity under the mouse cursor.

:print() lists the prefab name of the entities in the selection.

c_all():count() // tell you how many entities there are in the world
c_all("Science Machine"):count() // tell you how many Science Machines there are

:count() displays the number of entities in the group.

c_me():give("Spear") // Give yourself a spear
c_players():give("Football Helmet") // Give each player a football helmet
c_player("HabdomeRaider"):give("Jerky", 10) // Give HabdomeRaider 10 pieces of jerky
c_players():give("Football Helmet"):give("Jerky", 20) // Give each player a football helmet and 10 pieces of jerky

The :give() command works just like c_give, but it gives the items to all the selected entities. Again, you can use in-game names or prefab names. Give commands can be chained together.

c_all("Beefalo"):delete() // Remove all the beefalo from the world :(

:delete() removes the entities from the world.

c_all("Spider"):addtag("selected") // Gives all spiders the "selected" tag

:addtag() gives the entities in the group a particular tag. Tags are used for special conditions within the game or you can use this later to reselect this group.



There are several commands that can narrow down your selection:

c_all():prefab("Rabbit") // select all rabbits. same as c_all("Rabbit")
c_all():tag("selected") // selects entities with the tag "selected" like those spiders from earlier
c_all("Alchemy Engine"):nearest() // selects the alchemy engine closest to the player
c_all():tag("selected"):delete() // delete all entities with the "selected" tag

:prefab() narrows the selection down to a specific type of item. :tag() narrows the selection down to the entities with the given tag. :nearest() selects just the entity in the group that is closest to the player. These commands can be chained with the other commands to affect specific entities.

c_players():move() // Move all players to the mouse location.
c_me():move(c_all("Science Machine"):nearest()) // Move yourself to the nearest science machine

Finally, the :move command lets you move entities. :move() will move the selected items to the mouse location, or you can specify an entity to move the selected items to that entity's location.



Hopefully you will find these additional commands useful.
6 comentário(s)
MathiusXII 14/fev./2018 às 15:02 
Aha! It does work Thanks Habdome!
MathiusXII 14/fev./2018 às 14:55 
I hope this'll let me select and move the spawnpoint_master... about to test
[Drow]Zatara[BoS] 12/jul./2017 às 20:34 
How do i remove the moose/goose spawning points?
Habdome Raider  [autor(a)] 27/jun./2017 às 8:29 
Added a list of all the new commands to the description. You can also follow the link to the Klei forums for a more nicely formatted view.
Ya Average Sheet Ghost 27/jun./2017 às 1:56 
what are the extra commands
cmx0913 14/mar./2017 às 0:20 
How does it work?