Hello all, I am brand new to the world of WC3 map editing and I have been reading up on all sorts of tutorials and guides. I have been following suggestions and just testing with basic concepts however I have been playing around with spells made using trigger functions and the guide posted by Daelin has been my guide for experimentation. I know I ramble on about back story yar yar something about and IP ect. I'll get to the point.
I have been trying to make a very simple passive ability using two spells and a trigger. The goal was to make a hero ability that would grant armor and a slight chance to dodge and I figured I would need to make the first half of the ability and then a trigger to grant the second half. The first ability I used is Evasion(Ageis Armor) and the second is Spiked Carapace (Ageis Armored
I have been trying to make a very simple passive ability using two spells and a trigger. The goal was to make a hero ability that would grant armor and a slight chance to dodge and I figured I would need to make the first half of the ability and then a trigger to grant the second half. The first ability I used is Evasion(Ageis Armor) and the second is Spiked Carapace (Ageis Armored
). With the following trigger.
What happens is that first of all you can't add hero abilities to a spellbook, so okay the guides didn't mention that at all, I just changed the second ability into a normal unit ability and figured it didn't matter, added it to the spell book and tried it. The spellbook appears as normal (i.e. not hidden by disabling it) however the second spell is already present in the book and the hero is already getting the armor buff.
No guide that I have read mentions that when setting up a function like this the hero has the trigger-added spell before learning the ability that triggers it. I suspect it has something to do with the way i set up the spellbook however nothing I have read seems to explain this. I just copied the original spellbook, changed it's name, spells and min/max spells then added Ageis Armor
-
Ageis Armor
-
Events
- Unit - A unit Learns a skill
-
Conditions
- (Learned Hero Skill) Equal to Ageis Armor
-
Actions
- If ((Level of Ageis Armor for (Triggering unit)) Equal to 1) then do (Unit - Add Ageis Armored [Hidden] to (Triggering unit)) else do (Unit - Set level of Ageis Armored [Hidden] for (Triggering unit) to (Level of Ageis Armor for (Triggering unit)))
-
Events
What happens is that first of all you can't add hero abilities to a spellbook, so okay the guides didn't mention that at all, I just changed the second ability into a normal unit ability and figured it didn't matter, added it to the spell book and tried it. The spellbook appears as normal (i.e. not hidden by disabling it) however the second spell is already present in the book and the hero is already getting the armor buff.
No guide that I have read mentions that when setting up a function like this the hero has the trigger-added spell before learning the ability that triggers it. I suspect it has something to do with the way i set up the spellbook however nothing I have read seems to explain this. I just copied the original spellbook, changed it's name, spells and min/max spells then added Ageis Armor
. After that I just added the new spellbook i created to my hero's normal ability list (which is what I assumed I had to do as it never mentions in any guide weather to put it under normal abilities or hero abilities)
So basically I have probably avoided doing something very simple that is left out of the guides because it's just common sense to do. I hope I have explain this throughly enough so that there is no confusion and no one saying that this has already been covered, and if it has, god help me I have been searching the guides and forums for 2 days for an answer to this. I apologize profusely if it has, I assure you I really had no idea of the terrible crime I was committing.
Thanks so much for any and all help,
Adante
So basically I have probably avoided doing something very simple that is left out of the guides because it's just common sense to do. I hope I have explain this throughly enough so that there is no confusion and no one saying that this has already been covered, and if it has, god help me I have been searching the guides and forums for 2 days for an answer to this. I apologize profusely if it has, I assure you I really had no idea of the terrible crime I was committing.
Thanks so much for any and all help,
Adante