Cannot use global macros

The place to post your WML questions and answers.

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.
Post Reply
Anagkai
Posts: 58
Joined: February 12th, 2012, 10:05 am

Cannot use global macros

Post by Anagkai »

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.
My campaigns: Princess Nilwyn (available) & Home of the Undead (available)
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Cannot use global macros

Post by Ravana »

Make sure you have defined macro before calling it.
Post Reply