Modding magic abilities to units?

Skajaquada

Crazy Engineer
Joined
Mar 4, 2007
Messages
134
I've been thinking about this a little on and off for my WH40K-mod how it can be done and so on. As usual my idea is to make an array with ability-data, both what it an do and what have been done to it, that I init when a unit is created. Then I simply copy some code from the unit-panels files both to make a button (like the attack-button) and the function what to do when a unit is clicked. Maybe I'll also copy the code to show the win-loss screen when you hover a unit to show the effects of the spell. Then the effects can be the normal slow, damage-over-turns, freeze etc.

Any thoughts? I'm asking because magic abilities for units really seem like something common for a lot of mods that a lot have probably given some thought one time or another :)
 
Back
Top Bottom