hey
i need help, i wanna do an ability that turns u invisibile but u lose mana each sec. It should be like the nightelf ability from the demonlord "cloak of flames". U can turn it on and off etc.
Make a dummy ability based on cloak of flames or mana shield. Detect when the caster turns it on, and add permanent invisibility to the cast and turn on a periodic trigger that drains X mana each second, checking to make sure the unit has the buff. When the unit does not have the buff, turn off the trigger and remove permanent invisibility.
I believe you would use "Unit - A unit is issued an order with no target"
And then in your conditions, check if the issued order is equal to "manashieldon" or something like that. You should be able to find the code for the Mana Shield ability in the Object Editor.
1. How would you detect when the unit as the buff or not? Use a periodic? In my opinion that is more complicated than simply detecting when the ability is turned on/off using order strings.
2. Buff's have 1-2 second delay before removing from a unit when the ability is turned off. Sometimes those 1-2 seconds are important. For example, the ability she is trying to create would drain more mana than necessary if you used checking for buff.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory
I will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!
I just got to watch the video because even though I was there I was trying to work out tech problems with the chat since I was the social media guy so I was distracted but check it out guys the video is super fucking great!