^Well I don't know or I don't have knowledge about triggering because I'm only a mapper or terrainer DD.
but let me try this:
Create
Settle
Destroy
Create = Create a dummy to the
triggering player at
target point of ability being cast
Seems
target point of ability being cast is leaking location, well you might store it to a point variable and later destroy it when unneeded
Seems
triggering player is faster than
GetOwningPlayer( udg_MY_CASTER )
Settle = Settle or Set the level of the dummy ability to the
level of the caster ability.
level of the caster ability acts like integer then it detects the level of the ability of the caster, for example: The level of the caster ability to the caster is equal to 1 then it will show us a integer like this: Settle or Set the level of the dummy ability to the
1 and so on.. the level.
Destroy = Removing leaks or nullifying handle or agent variables.
You must read that Things that Leak because it will help u.
Custom script:
call RemoveLocation (
udg_MY_POINT )
call is from the JASS script line, it calls a function with this key word.
RemoveLocation well it seems like Destroy Location or Remove, this function used as removing location or points, it removes the location that you used in the trigger so it is needed. Why do we need to remove locations? A: avoiding leaks, because it is horrible in the late game when you have 3000 or 2000 more than leaks.
udg_MY_POINT Q: What is this and why it has a udg_ thingy? A: Well the udg part stands for " User Defined Globals " mean that they are global variables, not local variables, because local variables does not requiring a prefixes unlike global variables. QWhat is MY_POINT? A: That is the POINT variable that causes leaks in game, you'd see that I'd set it to the execution so it must remove to the execution when you're not using it anymore, and as always ^^.
-
Untitled Trigger 001
-
Events
-
Unit - Starts the effect of an ability
-
Conditions
-
(Ability being cast) Equal to Blizzard (Dummy)
-
Actions
-
Set MY_CASTER = (Triggering unit)
-
Set MY_POINT = (Target point of ability being cast)
-
Set THE_LEVEL = Level of Blizzard (Dummy) for MY_CASTER
-
Unit - Create 1 Dummy (Caster) for (Triggering Player) at MY_POINT facing Default building facing degrees
-
Set MY_DUMMY = ( Last created unit )
-
Unit - Add a 5.00 second Generic expiration timer to MY_DUMMY
-
Unit - Add Blizzard Real to MY_DUMMY
-
Unit - Set level of Blizzard Real for MY_DUMMY to THE_LEVEL
-
Unit - Order MY_DUMMY to Human Archmage - Blizzard MY_POINT
-
Custom script: call RemoveLocation ( udg_MY_POINT )
EDIT: Daffa the Mage beat e to it.