Modding:Objects: Difference between revisions

696 bytes added ,  22:18, 26 October 2023
Add information about <stag> and <mixin>
m (Add information for the Consumer part.)
(Add information about <stag> and <mixin>)
Line 63: Line 63:
|-
|-
| <code><nowiki><stag></nowiki></code>
| <code><nowiki><stag></nowiki></code>
|  
| Adds an object to a [[Modding: Encounters and Population#DynamicSemanticTable|dynamic semantic table]].
|-
| <code><nowiki><mixin></nowiki></code>
| Adds a "mixin" to an object. This can be used in place of (or in addition to) inheritance to automatically copy parts and tags to an object from another object. <code>mixin</code> supports the following attributes:
* '''Name (string):''' blueprint used in mixin
* '''Include (string):''' comma-delimited string of elements to include
* '''Exclude (string):''' comma-delimited string of elements to exclude
* '''Priority (int):''' mixin priority (lower comes earlier)
* '''Fill (bool):''' whether to add the mixin before or after normal inheritance
|-
|-
|}
|}