• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Encoded Text macros?

Palgar

Member
Is the {macro macroname} implemented in encoded text? If so, what is the proper syntax to call it.

I'm trying to use the {macro macroname} to include custom bullet points in some description texts.
 
This might help you... From the A-Kit wiki:
{macro name} Looks for the macro with the unique id given by name and processes the contents of that macro as if it were found in the text instead. This means that macros MAY include encoded text that will be properly processed when the macro is evaluated.
 
Ok, but is this a <scriptmacro> or something else. I've tried this:

.def file
<scriptmacro
name="bCross"
result="{meta bmpfull}{bmp ico-cross} "/>

.dat file
<thing
id="attrAgility"
name="Agility"
compset="Attribute"
isunique="yes"
description="{macro bCross} Agility is a mixture....">
<fieldval field="trtAbbrev" value="AGI"/>
<tag group="explicit" tag="2"/>
<tag group="HeroType" tag="PC"/>
<tag group="Helper" tag="StartValue6"/>
</thing>

and receive this:
The following undefined macros...<remainder of error message in unused dialog>

Macro: bCross
 
I finally figured it out. I kept throwing the <macro> element into each of the files until it stopped producing error and added attributes as needed.

Macros actually work. Macros are devined in the structure file after <reference/> and before <group/> elements. Macros are defined as this:

<macro
id="macroName"
contents="encoded text to be added"/>

ex:
<macro id="bulletIcon"
contents="{meta bmpfull}{bmp ironcross_10} " />

usage:
...

description="{macro bulletIcon}This line has a bullet on it"
...
 
Back
Top