I was just made the editor of one of my favorite obscure maps, Laosh'Ra's Soulchess, so this week I set about making a new version. The map had been made in WEU which I hadn't used before but I downloaded it and got to work. Things were going pretty well for a while, I did some balancing and made some new abilities, but I ran into trouble with one:
The spell was to be called Enchanted Armor. When activated it gave bonus armor equal to 3% of the caster's max hp. However any time a unit with the Enchanted Armor buff took damage the unit lost 2 mana. If the unit ran out of mana the spell was ended.
The problem I ran into was with the change in armor. I tried to use the advanced trigger unit- change defense. I got all the triggers set up properly, but when I tried to save the map I was told there were now 5 errors in the triggers.
A page appeared with all the triggers in JASS (I'm passably good at JASS but I work with GUI when possible) and it pointed out the 5 lines. Every line was one of the ones that involved changing armor. They all began with "call changearmor." The specific error was called "Error: Expect function" or something like that.
My interpretation of that message is that Editor isn't recognizing "changearmor" as a valid function for some reason. I'm not sure why that would be because elsewhere in the map the original creator used a similar advanced unit- change maximum life with no problems.
Am I missing some obvious step to make an advanced stat change trigger work? Does anyone know another simple way to change armor up and down by a percentage of max life?
The spell was to be called Enchanted Armor. When activated it gave bonus armor equal to 3% of the caster's max hp. However any time a unit with the Enchanted Armor buff took damage the unit lost 2 mana. If the unit ran out of mana the spell was ended.
The problem I ran into was with the change in armor. I tried to use the advanced trigger unit- change defense. I got all the triggers set up properly, but when I tried to save the map I was told there were now 5 errors in the triggers.
A page appeared with all the triggers in JASS (I'm passably good at JASS but I work with GUI when possible) and it pointed out the 5 lines. Every line was one of the ones that involved changing armor. They all began with "call changearmor." The specific error was called "Error: Expect function" or something like that.
My interpretation of that message is that Editor isn't recognizing "changearmor" as a valid function for some reason. I'm not sure why that would be because elsewhere in the map the original creator used a similar advanced unit- change maximum life with no problems.
Am I missing some obvious step to make an advanced stat change trigger work? Does anyone know another simple way to change armor up and down by a percentage of max life?