| 04-08-2004, 07:17 PM | #1 |
Hi, I'm working on my first map. II made a bunch of new heroes but theres one I'm stuck on. I want to have a hero that has both thorns aura and vampire aura. The trick though is he can only have one active at a time and you have to click the aura to toggle between them. How impossible is this to make? What do I need to do? |
| 04-08-2004, 08:34 PM | #2 |
Also is this something that might be considered "Advanced Mapmaking"? |
| 04-08-2004, 09:55 PM | #3 |
Uhm.. You'd have to use dummy abilities... when dummy ability thorns is cast, remove dummy ability thorns, remove vampric aura, give thorns, givedummy ability vampric aura. Not advanced map making... Though, I believe remove ability perm. removes the ability. --- The other, and probably better way... Have two of the unit, one with thorns, one without... when it casts dummy ability thorns, switch units to the one with thorns and dummy ability vampric aura. Either a transform ability or just switch the units. |
| 04-09-2004, 01:02 AM | #4 |
The ability remove does not prevent you from adding it again via triggers. The plainstrider in OH has a variable spell that requires me to remove abilities and re-add them constantly, and it works just fine. |
| 04-09-2004, 06:57 AM | #5 |
Maybe he was reffering to hero abilities? I'm not sure, but when I tried replacing those once, I don't think they worked quite right, so I used a dummy hero ability in combination with several unit abilities instead. Same could be done here: just make an ability based on defend that doesn't reduce movement speed or piercing damage, and then use triggers: whenever a unit is given an order "defend", remove ThornsAuraUnitAbility[level of FakeDefendAbility for your hero] and add VampiricAuraUnitAbility[level of FakeDefendAbility for your hero], and vice-versa when a unit uses an "undefend" order. You also need a trigger that gives the hero an improoved Thorns or Vampiric aura when he learns a higher level of the skill, and another that removes all abilities if he uses a tome of retraining. |
