macro/file ABILITY_GREATER_HEAL is missing
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
-
- Posts: 7
- Joined: December 19th, 2022, 8:42 pm
macro/file ABILITY_GREATER_HEAL is missing
EDIT: I found the solution to this problem in case anyone is looking for it. In the _main.cfg file, you have to load the macros defining abilities before you use them in your unit type definition.
Hi everyone,
I am trying to create a L3 advancement to the Saurian Soothsayer called the Saurian Sage, based roughly on the code in Reign of the Lords. However, I am getting the error 'macro/file ABILITY_GREATER_HEAL is missing' when trying to load my add-on. I’ll try my best to provide the code that's causing it. So there is a Saurian_Sage.cfg in the units/saurians directory which is referenced by _main.cfg. In that file there is the following snippet of code:
In main.cfg there is the following snippet which references the macros directory:
In the macros directory I have a file abilities.cfg which contains nothing but the following:
Hi everyone,
I am trying to create a L3 advancement to the Saurian Soothsayer called the Saurian Sage, based roughly on the code in Reign of the Lords. However, I am getting the error 'macro/file ABILITY_GREATER_HEAL is missing' when trying to load my add-on. I’ll try my best to provide the code that's causing it. So there is a Saurian_Sage.cfg in the units/saurians directory which is referenced by _main.cfg. In that file there is the following snippet of code:
Code: Select all
[abilities]
{ABILITY_UNPOISON}
{ABILITY_GREATER_HEAL}
[/abilities]
Code: Select all
# This goes above the units
{~add-ons/Stargazers_default-era_addon/macros/}
[units]
{~add-ons/Stargazers_default-era_addon/units}
{~add-ons/Stargazers_default-era_addon/units/drakes.cfg}
{~add-ons/Stargazers_default-era_addon/units/undead}
{~add-ons/Stargazers_default-era_addon/units/dwarves}
{~add-ons/Stargazers_default-era_addon/units/elves}
{~add-ons/Stargazers_default-era_addon/units/wose}
{~add-ons/Stargazers_default-era_addon/units/humans}
{~add-ons/Stargazers_default-era_addon/units/saurians}
{~add-ons/Stargazers_default-era_addon/units/drakes}
{~add-ons/Stargazers_default-era_addon/units/goblins}
[/units]
{~add-ons/Stargazers_default-era_addon/utils/}
Code: Select all
#define ABILITY_GREATER_HEAL
[heals]
value=12
id=STARgreaterhealing
affect_allies=yes
name= _ "heals +12"
female_name= _ "female^heals +12"
description= _ "This unit combines herbal remedies with magic to heal units more quickly than is normally possible on the battlefield.
A unit cared for by this healer may heal up to 12 HP per turn, or stop poison from taking effect for that turn.
A poisoned unit cannot be cured of its poison by a healer, and must seek the care of a village or a unit that can cure."
affect_self=no
poison=slowed
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[/affect_adjacent]
[/heals]
#enddef