How does STARTING_VILLAGES_AREA work?
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.
How does STARTING_VILLAGES_AREA work?
And just STARTING_VILLAGES?
Do I have to include any special path in my scenario to use this function?
Can it be inside the [side] tag?
If not, how does the engine know which side are you talking about?
I had no effect in my scenario, why??
Thank you. This forum so far is solving all my beginner doubts.
Do I have to include any special path in my scenario to use this function?
Can it be inside the [side] tag?
If not, how does the engine know which side are you talking about?
I had no effect in my scenario, why??
Thank you. This forum so far is solving all my beginner doubts.
That's ridiculous, dragons have no windows...
Re: How does STARTING_VILLAGES_AREA work?
These are macros that are supplied by wesnoth devs and are automatically included in any user-made content (I.E. your scenario). They can be found in the wesnoth/data/core/macros folder. wesnoth/data/core/macros/utils.cfg contains both macros you are interested in.
When you open the file you will see the exact WML contents of the macro and you will see that their highest-level tag is [event] with name=prestart which means they can be succesfully used as children to either the [multiplayer] or [scenario] tag.
Note:
- The first parameter to the macro is the side you which to apply the macro to.
- Whats not clear (if you have no WML experience) is that STARTING_VILLAGES is the same as STARTING_VILLAGES_AREA except the radius that defines the area is centered around the starting location of that sides leader.
When you open the file you will see the exact WML contents of the macro and you will see that their highest-level tag is [event] with name=prestart which means they can be succesfully used as children to either the [multiplayer] or [scenario] tag.
Note:
- The first parameter to the macro is the side you which to apply the macro to.
- Whats not clear (if you have no WML experience) is that STARTING_VILLAGES is the same as STARTING_VILLAGES_AREA except the radius that defines the area is centered around the starting location of that sides leader.
Re: How does STARTING_VILLAGES_AREA work?
Ok, now it makes sense, thank you very much.
That's ridiculous, dragons have no windows...