Difference between revisions of "Magic Effect"

Jump to navigation Jump to search
→‎Magic Item Description: consistent terminology with bethesda
(→‎Magic Item Description: fully documented the rules for text replacement, including an edge-case for bold text that I found via RE (though I've not verified it in-game))
(→‎Magic Item Description: consistent terminology with bethesda)
 
Line 142: Line 142:
: The current value of the [[Global]] with the given editor ID. If no such global exists, then nothing is displayed. (Writing "<global>" has the same effect as failing to specify a valid global: nothing is displayed.)
: The current value of the [[Global]] with the given editor ID. If no such global exists, then nothing is displayed. (Writing "<global>" has the same effect as failing to specify a valid global: nothing is displayed.)


This is the same basic syntax as [[Text Replacement|quest text replacement]]: <code>&lt;Token.Subtoken=Target&gt;</code>, where the "subtoken" and "target" are optional (and ignored) unless noted above. When an unrecognized token is encountered, the token name is displayed in bold, but the subtoken name and target value are thrown away. This means that you can bold any text you want inside of an effect description, but only if that text doesn't contain a period (which denotes a subtoken) or an equal sign (which denotes a target). For example, <code>&lt;Hello, Dragonborn. How are you?&gt;</code> will be rendered as "'''Hello, Dragonborn'''" in bold, while <code>&lt;Hello, Dragonborn&gt;. &lt;How are you?&gt;</code> will be rendered as "'''Hello, Dragonborn'''. '''How are you?'''" Similarly, <code>&lt;E = MC squared&gt;</code> should be rendered as "'''E '''", while <code>&lt;E&gt; = &lt;MC squared&gt;</code> should be rendered as "'''E''' = '''MC squared'''".
This is the same basic syntax as [[Text Replacement|quest text replacement]]: <code>&lt;Tag.Subtag=Parameter&gt;</code>, where the "subtag" and "parameter" are optional (and ignored) unless noted above. When an unrecognized tag is encountered, the tag name is displayed in bold, but the subtag name and parameter are thrown away. This means that you can bold any text you want inside of an effect description, but only if that text doesn't contain a period (which denotes a subtag) or an equal sign (which denotes a parameter). For example, <code>&lt;Hello, Dragonborn. How are you?&gt;</code> will be rendered as "'''Hello, Dragonborn'''" in bold, while <code>&lt;Hello, Dragonborn&gt;. &lt;How are you?&gt;</code> will be rendered as "'''Hello, Dragonborn'''. '''How are you?'''" Similarly, <code>&lt;E = MC squared&gt;</code> should be rendered as "'''E '''", while <code>&lt;E&gt; = &lt;MC squared&gt;</code> should be rendered as "'''E''' = '''MC squared'''".


====Papyrus Scripts====
====Papyrus Scripts====
142

edits

Navigation menu