Bot System: Difference between revisions

From Vintage Story Wiki
Preparing for translation
m (Gender neutral for bot)
(Preparing for translation)
Line 1: Line 1:
<languages/><translate>
<languages/>
<!--T:1-->
{{GameVersion|1.15}}
{{GameVersion|1.15}}
<!--T:2-->
__TOC__
__TOC__
<translate>
Vintage Story comes with some rudimentary interface to control creatures and humanoids through commands, which is mostly aimed for video recordings. Here's how to use it:
Vintage Story comes with some rudimentary interface to control creatures and humanoids through commands, which is mostly aimed for video recordings. Here's how to use it:


== Spawn in a bot == <!--T:3-->
== Spawn in a bot ==  
 
<!--T:3-->
Only some creatures are supported, here's a list
Only some creatures are supported, here's a list
* /entity spawn playerbot
* <code>/entity spawn playerbot</code>
* /entity spawn animalbot-wolf-male
* <code>/entity spawn animalbot-wolf-male</code>
* /entity spawn animalbot-hyena-male
* <code>/entity spawn animalbot-hyena-male</code>
* /entity spawn animalbot-hyena-female
* <code>/entity spawn animalbot-hyena-female</code>
* /entity spawn animalbot-hyena-pup
* <code>/entity spawn animalbot-hyena-pup</code>
* /entity spawn animalbot-chicken-hen
* <code>/entity spawn animalbot-chicken-hen</code>
* /entity spawn animalbot-chicken-rooster
* <code>/entity spawn animalbot-chicken-rooster</code>
* /entity spawn animalbot-chicken-baby
* <code>/entity spawn animalbot-chicken-baby</code>
* /entity spawn animalbot-sheep-bighorn-male
* <code>/entity spawn animalbot-sheep-bighorn-male</code>
* /entity spawn animalbot-sheep-bighorn-female
* <code>/entity spawn animalbot-sheep-bighorn-female</code>
* /entity spawn animalbot-sheep-bighorn-lamb
* <code>/entity spawn animalbot-sheep-bighorn-lamb</code>
* /entity spawn animalbot-locust-corrupt
* <code>/entity spawn animalbot-locust-corrupt</code>
* /entity spawn animalbot-hare-female-lightgrey
* <code>/entity spawn animalbot-hare-female-lightgrey</code>
* /entity spawn animalbot-piglet
* <code>/entity spawn animalbot-piglet</code>
* /entity spawn animalbot-drifter-normal
* <code>/entity spawn animalbot-drifter-normal</code>
* /entity spawn animalbot-drifter-corrupt
* <code>/entity spawn animalbot-drifter-corrupt</code>
* /entity spawn animalbot-drifter-nightmare
* <code>/entity spawn animalbot-drifter-nightmare</code>
 
== Select a bot ==


== Select a bot == <!--T:4-->
<!--T:4-->
Right click the creature to select it. You can now tell it to execute commands or define a list of commands to execute in a loop
Right click the creature to select it. You can now tell it to execute commands or define a list of commands to execute in a loop


Line 35: Line 37:
Legend: ''flexiblepos'' means either [x y z] coordinates as defined in the coordinate hud, absolute coordinates through [=x =y =z] or coordinates relative to the player with [~x ~y ~z], you can also do [~ ~ ~] do use exactly the players position.<br>
Legend: ''flexiblepos'' means either [x y z] coordinates as defined in the coordinate hud, absolute coordinates through [=x =y =z] or coordinates relative to the player with [~x ~y ~z], you can also do [~ ~ ~] do use exactly the players position.<br>


=== Immediate === <!--T:7-->
=== Immediate ===  
 
<!--T:7-->
Type one of either commands to execute a command right away
Type one of either commands to execute a command right away
* <code>/npc exec tp ''flexiblepos''</code> teleport to given position
* <code>/npc exec tp ''flexiblepos''</code> teleport to given position
Line 42: Line 46:
* <code>/npc exec playanim animcode</code> players given animation. Valid ones for animals, if supported by the respective animal: hurt, die, eat, walk, cry, shamble, lowshamble, sleep, sit, listen, hide, idletwitch, drill
* <code>/npc exec playanim animcode</code> players given animation. Valid ones for animals, if supported by the respective animal: hurt, die, eat, walk, cry, shamble, lowshamble, sleep, sit, listen, hide, idletwitch, drill


=== Queued === <!--T:8-->
=== Queued ===  
 
<!--T:8-->
If you want to bot to run or remember a list of commands replace "exec" with "enq" to enqueue commands:
If you want to bot to run or remember a list of commands replace "exec" with "enq" to enqueue commands:
* <code>/npc enq [tp|lookat|goto|playanim] (see args above)</code>
* <code>/npc enq [tp|lookat|goto|playanim] (see args above)</code>
Line 52: Line 58:
* <code>/npc remove [index]</code> remove command of given index as shown in /npc list
* <code>/npc remove [index]</code> remove command of given index as shown in /npc list
* <code>/npc upd</code> allows you do modify some commands
* <code>/npc upd</code> allows you do modify some commands
</translate>


<!--T:9-->
{{Game navbox}}
{{Game navbox}}
</translate>
Confirmedusers
1,783

edits