Hello, how do i make a trigger like this mui?
Like i understand the whole indexing and to create a loop when a spell is being cast. But in this cast it's only for basic attacks, do i still need to make the loop like you usually do?
(I know i should not use this event, only for demo).
Like i understand the whole indexing and to create a loop when a spell is being cast. But in this cast it's only for basic attacks, do i still need to make the loop like you usually do?
(I know i should not use this event, only for demo).
-
Demo
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


((Item carried by (Attacking unit) of type Arcane Hammer) is owned) Equal to True
-
-

Actions
-


Set VariableSet ArcaneHammer_Stacking = (ArcaneHammer_Stacking + 1)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




ArcaneHammer_Stacking Greater than or equal to 10
-
-



Then - Actions
-




Set VariableSet ArcaneHammer_Stacking = 0
-




Set VariableSet ArcaneHammer_Caster = (Attacking unit)
-




Set VariableSet ArcaneHammer_Point = (Position of ArcaneHammer_Caster)
-




Set VariableSet ArcaneHammer_SPXPoint = (Position of ArcaneHammer_Caster)
-




Set VariableSet ArcaneHammer_Group = (Units within 500.00 of ArcaneHammer_Point.)
-




Set VariableSet ArcaneHammer_HealthPercentage = 0.10
-




Set VariableSet ArcaneHammer_Dmg = (200.00 + ((Life of ArcaneHammer_Caster) + ArcaneHammer_HealthPercentage))
-




Special Effect - Create a special effect at ArcaneHammer_SPXPoint using war3mapImported\Arcane Explosion.mdx
-




Special Effect - Destroy (Last created special effect)
-




Unit Group - Pick every unit in ArcaneHammer_Group and do (Actions)
-





Loop - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








((Picked unit) is A structure) Equal to False
-








((Picked unit) is alive) Equal to True
-








((Picked unit) belongs to an enemy of (Owner of ArcaneHammer_Caster).) Equal to True
-
-







Then - Actions
-








Unit - Cause ArcaneHammer_Caster to damage (Picked unit), dealing ArcaneHammer_Dmg damage of attack type Spells and damage type Normal
-
-







Else - Actions
-
-
-
-




Custom script: call RemoveLocation(udg_ArcaneHammer_Point)
-




Custom script: call RemoveLocation(udg_ArcaneHammer_SPXPoint)
-




Custom script: call DestroyGroup(udg_ArcaneHammer_Group)
-
-



Else - Actions
-
-
-





