| 03-14-2006, 02:50 PM | #1 |
In my game, Tinker Wars, there are multiple different 'forms' that you can transform into. I am adding about 20 new abilities possible to learn. Since heroes can only have 5 abilities, I am using triggers to add the spells. I would like the abilities to carry over to all of the different forms you can do. I am thinking of just creating a variable array to store all of the hero's abilities, and then simply add them again when he transforms, but before I do does anyone know a simpler way to do this? So far only hero abilities carry over into transformation, and then there are only 5 possible spells, because hero abilities are not addable through triggers. |
| 03-14-2006, 05:11 PM | #2 |
Engineering upgrade could be used, but that only works for abilities with the same targetting style (eg: from single target to single target, etc.). Maybe check under gameplay constants for something, think there is something about this. |
| 03-14-2006, 08:43 PM | #3 |
Try this native function. |
| 03-14-2006, 11:16 PM | #4 |
Anitarf - That looks like it could help, but I have never done any Jass or anything, how exactly do I make that work for me? I looked in gameplay constants, but didn't find anything. |
| 03-15-2006, 01:14 AM | #5 |
Custom Script: call UnitMakeAbilityPermanent(Your unit, true, Your ability id) |
| 03-15-2006, 02:46 PM | #6 |
Thank you much, I shall be trying that when I get home today. |
