You apply a buff to the caster upon using the first ability, I'll call it "Mfired", and another one once the missile arrives ("Mhit"), and remove both on a timer and/or upon casting the second ability.
Now you just need to get your Requirement logic right:
- Show type requirement on the first ability that checks Mfired=0 (meaning the button will disappear once the buff is applied)
- Use type requirement on the second ability that checks Mhit>0 (meaning the button is greyed out until you have at least 1 stack of the impact buff)
I don't remember in which order to put the buttons or whether it matters at all, but that's easy to check. If having the launch ability on top fails you need an additional Show type requirement on the retraction ability that checks Mfired>0 to hide that button.
These buffs can also be used for an easy timeout system (which most abilities in League Of Legends have, so you might want that)
Demtrod Regular ShmoeThe title might be a little misleading.
I want to create am ability which is actually 2 abilities;
1st ability launches a missile to a targeted location.
When the missile lands I want to activate the 2nd ability (And the ability should be greyed out/being casted while the missile is traveling) hiding the 1st ability showing the 2nd.
2nd ability calls the missile back to the caster.
Any suggestions on how to do this? (Both the greying out of the ability untill impact and the returning of the missile)
Gridlock TD : Elements