Macros: Difference between revisions

From Bonfire by Hogswild Prasetto
More info...
m 6 revisions imported
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
Macros are custom portions of game logic that can be created in-game. The editor can be executed by writing '''sedit''' in the [[command console]].
Macros are custom portions of game logic that can be created in-game. The editor can be executed by writing '''sedit''' in the [[command console]].


The editor itself resembles the dialogue editor seen in other parts of the game's interface, such as the NPC editor, sharing basic structure and file format. Given this, macro contents are nested like those in a dialogue tree, and is executed just like one; the main difference being that macros do not display any text and are executed instantly on their entirety.
The editor itself resembles the dialogue editor seen in other parts of the game's interface, such as the NPC editor, sharing basic structure and file format. Given this, macro contents are nested and executed just like dialogue lines; the main difference being that macros do not display any text and are executed instantly on their entirety.


Conditionals and actions play an important role in macro nesting and work exactly like those you'd find in complex NPC dialogues.
Conditionals and actions play an important role in macro nesting and work exactly like those you'd find in complex NPC dialogues.


Once a macro is saved, it can be injected into any orc by using '''macroinject''' '''''name''''' in the command console, and executed with commands such as '''macroexec''' '''''name''''' or '''timedmacro''' '''''name'''''
Once a macro is saved, it can be injected into any orc by using '''macroinject''' '''''name''''' in the command console, and executed with commands such as '''macroexec''' '''''name''''' or '''timedmacro''' '''''name'''''

Latest revision as of 02:32, 19 June 2021

This is an advanced meta-game feature.

Macros are custom portions of game logic that can be created in-game. The editor can be executed by writing sedit in the command console.

The editor itself resembles the dialogue editor seen in other parts of the game's interface, such as the NPC editor, sharing basic structure and file format. Given this, macro contents are nested and executed just like dialogue lines; the main difference being that macros do not display any text and are executed instantly on their entirety.

Conditionals and actions play an important role in macro nesting and work exactly like those you'd find in complex NPC dialogues.

Once a macro is saved, it can be injected into any orc by using macroinject name in the command console, and executed with commands such as macroexec name or timedmacro name