Cannot use global macros
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.
Cannot use global macros
I was trying to define global macros for things I use in most or all scenarios, but it can't get it to work. The macros work fine when defined in the scenario they're used, but not when defined in an extra file.
The file is "mycampain/data/macros.cfg". The path "mycampaign/data" is set up in __main.cfg. But when I try to call any of these macros, I get an error, because they supposedly aren't defined.
The file is "mycampain/data/macros.cfg". The path "mycampaign/data" is set up in __main.cfg. But when I try to call any of these macros, I get an error, because they supposedly aren't defined.
My campaigns: Princess Nilwyn (available) & Home of the Undead (available)
Re: Cannot use global macros
Make sure you have defined macro before calling it.