Thanks to the new TFT we have to rethink the ways we have done some. In this case I needed to replace a unit but I didnt want to lose any buffs or the quick key that a player might use.
This has plagued me for months... No longer...
Add Ability To Unit + Any CHAOS spell = solution...
Make a trigger to turn the unit into the other unit....
All you have to do is pick any chaos spell (under ORC Unit) and make it with the unit u want to change into, no original unit is required.
Then use Add (Newly Created Ability In WE) To Unit.
That unit will retain its hps, mana, AND its BUFFS!!!!!!
Its instant and its clean. For my use i wanted to allow for a unit to have 6 shots, like in a pistol.. There are various ways to do this now. One way is to take ur unit and detect every attack he does.. and keep it in an internal variable (OR use MANA so the user can see it).. When it gets to 0 you morph the unit into a unit same stats but NO Attack... After time or they return to reload you morph them back!
The Add Ability To Unit has allowed me to do MANY things that I couldnt do before. Some of them I had forgotten I had to come up with much worse solutions for.. So Please list any that you may have found!
Good Luck! Any feed back would be welcome! |