- Joined
- Mar 27, 2008
- Messages
- 8,035
For example, after I cast Mirror Image, I want it to be able to save those Illusions (created by Mirror Image) into a variable of Unit Group or even Unit (Array).
How do I come up with that ?
Well, that is for Mirror Image, what about Wand of Illusion Target-based Illusion spawn ?
As we all know, using dummy to cast the spell enables the creation of Illusion from the target without mimicking the Mirror Image mechanics.
After I cast the spell, how do I refer the Illusion created by the cast ?
The most simple (and inefficient) ways is to pick unit within area of target, but, this will collide with other illusions that have been summoned previously.
Any method, guys ?
ADDITIONAL QUESTION
What about I used the Summoning ability event to capture the creation of the unit and after its timer has finished, I use the
When I experimented this approach, I realized that the Hero Portrait at the top-left has disappeared, does this mean that the Game System releases the handle of that unit, since I can't refer to the pointer any longer ?
Or does the handle, still exists ?
Remarks
Even though if I managed to use the following approach, the nature of Illusion is still hard to mimick, characteristics such as Illusion takes 300% more damage, Illusion only gets damage from Raw Damage, etc.
I still need to it to be an Illusion.
How do I come up with that ?
Well, that is for Mirror Image, what about Wand of Illusion Target-based Illusion spawn ?
As we all know, using dummy to cast the spell enables the creation of Illusion from the target without mimicking the Mirror Image mechanics.
After I cast the spell, how do I refer the Illusion created by the cast ?
The most simple (and inefficient) ways is to pick unit within area of target, but, this will collide with other illusions that have been summoned previously.
Any method, guys ?
ADDITIONAL QUESTION
What about I used the Summoning ability event to capture the creation of the unit and after its timer has finished, I use the
RemoveUnit
function ?When I experimented this approach, I realized that the Hero Portrait at the top-left has disappeared, does this mean that the Game System releases the handle of that unit, since I can't refer to the pointer any longer ?
Or does the handle, still exists ?
Remarks
Even though if I managed to use the following approach, the nature of Illusion is still hard to mimick, characteristics such as Illusion takes 300% more damage, Illusion only gets damage from Raw Damage, etc.
I still need to it to be an Illusion.
Last edited: