Hullo thar everyone. I recently resumed work on a builder map I've been working on, and it's finally starting to take shape. However, I've recently run into a minor problem.
Basically what i want to do is make a structure that is capable of transforming certain units, namely the Orc Grunt into a Fel Orc Grunt, Raider into Fel Orc Raider etc. However, this does not include ALL orc units, only three or four.
Also, they should not be able to change back into the regular non-fel versions.
What I figured I would do is make simple targeted spell, such as Holy Light, and edit it so it has no animation and does nothing, and then trigger that if the target is a specific unit type, it would replace that unit with the appropriate 'corrupted' version.
I think the only problem I'm having is the event. I can never remember the differences between the events such as "A unit begins casting an ability/begins the effect of an ability/ends the effect" etc.
In short, which do I use? If possible, a full piece of code as an example for one conversion would be ideal, thanks
Also, sorry if this post is too long for such a simple question. It's a failing of mine.
Basically what i want to do is make a structure that is capable of transforming certain units, namely the Orc Grunt into a Fel Orc Grunt, Raider into Fel Orc Raider etc. However, this does not include ALL orc units, only three or four.
Also, they should not be able to change back into the regular non-fel versions.
What I figured I would do is make simple targeted spell, such as Holy Light, and edit it so it has no animation and does nothing, and then trigger that if the target is a specific unit type, it would replace that unit with the appropriate 'corrupted' version.
I think the only problem I'm having is the event. I can never remember the differences between the events such as "A unit begins casting an ability/begins the effect of an ability/ends the effect" etc.
In short, which do I use? If possible, a full piece of code as an example for one conversion would be ideal, thanks
Also, sorry if this post is too long for such a simple question. It's a failing of mine.