| 04-15-2006, 01:46 AM | #1 |
Once again guys, need help. Im trying to create an ability that can be turned on and off, but dont know where to start. Basically, when turned ON, the hero/unit becomes invisible. They can stay invisible for as long as they wish, but if they attack or move, it turns off. Its for a minigame im making, where if your not invisible(hiding) at a certain time, towers will attack you. |
| 04-15-2006, 02:19 AM | #2 |
You can make it based off a dummy spell which has no target (I'd recommend Channel, but War Stomp would work). Then, when the unit casts the spell spawn a dummy unit and have the dummy unit cast a spell based off of Invisibily with duration 0 (duration 0 lasts forever). Then, when the unit moves or whatever, remove the Invisibility buff from it. However, there will be a slight delay between the casting of the spell and the invisibility effect. Therefore, I would either use Shadowmeld and just make sure the time is always at night. |
| 04-15-2006, 02:46 AM | #3 |
Yeah i see how that would work. How do i cast an ability via triggers? |
| 04-15-2006, 02:58 AM | #4 |
Issue an order to the dummy unit to cast it. |
| 04-15-2006, 03:04 AM | #5 |
In case you're unclear how to do that, you can get the order string for the dummy ability from the ability editor (its one of the fields). |
| 04-15-2006, 03:07 AM | #6 |
ah yes, its all coming together now. thanks again guys. |
| 04-15-2006, 03:28 AM | #7 |
make it a mana based shadowmeld, thats easiest |
| 04-15-2006, 03:59 AM | #9 |
The problem is Blizzard will cost mana..and your order line is messed up too I think (haven't used GUI in a while). Also, depending on how big MG 6 Area is, the Paladin might not be in range to cast Blizzard. But you're on the right track ^^. It should be: Unit - Order (Last created unit) to Human Archmage - Blizzard (Position of (Casting unit)) You don't need to create your own order strings. If you have a custom ability, use the order string for the ability that it was based off of. |
| 04-15-2006, 09:39 AM | #11 |
Thanks guys, ill have a play around, see what i can come up with, and get back to you. |
