So, I want to make a spell through basic triggers that turns a unit invisible--but only if the unit has the mana to continue to power the invisibility ability. I also want the unit to have the ability to turn OFF the invisibility. Lastly, while invisible, the unit's walking speed should increase.
(Or can you do this through an existing spell?)
I imagine something like...
1. event: unit begins the effect of an ability
2. condition: ability = Invisibility
3. change unit transparency to %50
4. Make unit have faster walking speed
5. Make unit "invisible" (if that's some property you can add to a unit through triggers
6. save level of Invisibility in integer variable
7. Get rid of Invisibility
8. Give unit Reappear (at level of variable)
9. If mana of casting unit less than or equal to 0, switch all off/back
10. If unit begins effect of ability and ability = Reappear, switch all off/back
THOUGHTS?
(Or can you do this through an existing spell?)
I imagine something like...
1. event: unit begins the effect of an ability
2. condition: ability = Invisibility
3. change unit transparency to %50
4. Make unit have faster walking speed
5. Make unit "invisible" (if that's some property you can add to a unit through triggers
6. save level of Invisibility in integer variable
7. Get rid of Invisibility
8. Give unit Reappear (at level of variable)
9. If mana of casting unit less than or equal to 0, switch all off/back
10. If unit begins effect of ability and ability = Reappear, switch all off/back
THOUGHTS?