Macro: Difference between revisions

From Vintage Story Wiki
324 bytes removed ,  8 months ago
Marked this version for translation
No edit summary
(Marked this version for translation)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Macro is a a rule or pattern which specifies how a certain input (like a combination of keys) must be mapped to an output string replacement according to a defined procedure.
<languages /><br><translate>


In Vintage Story, Macros are used to use certain commands quick without need to type the command on the chat which saves some time when you need it.
<!--T:1-->
In Vintage Story, '''macros''' are used to quickly execute some commands with a keyboard shortcut without the need to type them in the chat window.


== Creation ==
</translate>
[[File:Macro Editor.png|alt=Example of a Macro Editor|thumb|363x363px]]
__TOC__
In order to access all your Macros, press Ctrl + M, then you need to name your Macro and tell which inputs on the keyboard needs to trigger a command by typing the right hotkeys (single or combo) it works both for server and client commands.Or type the follow [[List of server commands/macro|server command]]:
<translate>
== Recommendations ==


=== Name ===
== Creation == <!--T:2-->
Name all the Macros with unique names to work.


If it displays error, check if there's a macro that says that but when you modify your macro with a different name, your macro will only save the modified command but the hotkey remains the same.
<!--T:3-->
[[File:Macro Editor.png|363x363px|thumb|The Macro Editor window.]]


=== Hotkeys ===
<!--T:4-->
Insert multiple hotkeys [Ctrl, Alt, Shift, etc.] + [Anything] because that the game already has a lot of hotkeys that serve a purpose.
*Press {{Keypress|Ctrl}} + {{Keypress|M}} to open the Macro Editor window.
*Select an icon for your macro.
*Give a name to your Macro.
*Write a keyboard shortcut combination for the execution of your macro.
*Write one or several commands. It can be any {{ll|List_of_server_commands|server command}} or any {{ll|List_of_client_commands|client command}}.


If you modify the hotkey of a already existing macro, it will not work unless you restart the game
== Recommendations == <!--T:5-->


=== Command ===
=== Name === <!--T:6-->
If you need to change the command of a already existing macro, reset the macro to fit with the command you want bcs it will not be saved when you close the game.
 
<!--T:7-->
*Name all your macros with a unique name.
 
=== Hotkeys === <!--T:8-->
 
<!--T:9-->
*Insert multiple hotkeys [Ctrl, Alt, Shift, etc.] + [Anything] because the game already has a lot of hotkeys that serve a purpose.
*If you modify the hotkey of an already existing macro, it will not work unless you restart the game.
 
</translate>
{{Game navbox}}
Confirmedusers, editor
37,784

edits