An ability in the macros that doesn't seem to be recognized.
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.
An ability in the macros that doesn't seem to be recognized.
I have in my userdata\data\campaigns the file Competitive_Era.cfg that look like this
i have macros.cfg that looks like this
Anything i can be missing?
userdata\data\campaigns
[binary_path]
path=data/campaigns/Competitive_Era
[/binary_path]
{@campaigns/Competitive_Era/}
[+units]
{@campaigns/Competitive_Era/units/Empire}
[/units]
i have macros.cfg that looks like this
My unit, that works perfect beside this, have the following attack tag
[chance_to_hit]
id=spell
name= _ "Spell"
description= _ "Spell:
This attack does 100% damage on all terrains"
value=100
cumulative=no
[/chance_to_hit]
But when i have the unit in the map, the unit have no special at all in it's attack.[attack]
name=lightstrike
description=_"lightstrike"
type=arcane
range=ranged
[specials]
{WEAPON_SPECIAL_SPELL}
[/specials]
damage=20
number=1
[/attack]
Anything i can be missing?
Re: An ability in the macros that doesn't seem to be recognized.
move macros.cfg from userdata/data/campaigns to userdata/data/campaigns/Competitive_Era
Also, macros.cfg should look like this:
Also, macros.cfg should look like this:
Code: Select all
#define WEAPON_SPECIAL_SPELL
[chance_to_hit]
id=spell
name= _ "Spell"
description= _ "Spell:
This attack does 100% damage on all terrains"
value=100
cumulative=no
[/chance_to_hit]
#enddef
Re: An ability in the macros that doesn't seem to be recognized.
Thanks for the help, but I moved the file and changed the macros file, nothing.
If i set the special to (WEAPON_SPECIAL_MAGICAL) it works no problem, but when i change it to (WEAPON_SPECIAL_SPELL) it just doesn't show anything.
and nothing special happen when the unit attack.
What i don't get is that i looked at other eras and they do exactly this, and it works for them, i'm really lost.
If i replyace the (Weapon_special_spell) with the whole macro written in the unit.cfg it works wonder.
It's clear that for some reason it doesn't look into the macros.cfg file, but don't know why.
If i set the special to (WEAPON_SPECIAL_MAGICAL) it works no problem, but when i change it to (WEAPON_SPECIAL_SPELL) it just doesn't show anything.
and nothing special happen when the unit attack.
What i don't get is that i looked at other eras and they do exactly this, and it works for them, i'm really lost.
If i replyace the (Weapon_special_spell) with the whole macro written in the unit.cfg it works wonder.
It's clear that for some reason it doesn't look into the macros.cfg file, but don't know why.
-
- Art Contributor
- Posts: 410
- Joined: October 30th, 2006, 4:55 am
- Location: The Big Ö (a.k.a. Austria)
Re: An ability in the macros that doesn't seem to be recognized.
>Fosprey wrote:[+units]
{@campaigns/Competitive_Era/units/Empire}
[/units]
Code: Select all
[+units]
{@campaigns/Competitive_Era/macros.cfg}
{@campaigns/Competitive_Era/units/Empire}
[/units]
that little girl's parents were attacked by ninjas - generic npc
hee hee! - little girl
hee hee! - little girl