-
GetIndex
-
Events
- Map initialization
- Conditions
-
Actions
- Hashtable - Create a hashtable
- Set CreepRespawnTable = (Last created hashtable)
- Set Temp_UnitGroup = (Units within 1000000000.00 of MapCenter)
-
Unit Group - Pick every unit in Temp_UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Picked unit)) Equal to Neutral Hostile
-
Then - Actions
- Set TempLoc = (Position of (Picked unit))
- Set TempReal = (X of TempLoc)
- Hashtable - Save TempReal as 1 of (Custom value of (Picked unit)) in CreepRespawnTable
- Set TempReal = (Y of TempLoc)
- Hashtable - Save TempReal as 2 of (Custom value of (Picked unit)) in CreepRespawnTable
- Set TempReal = (Facing of (Picked unit))
- Hashtable - Save TempReal as 3 of (Custom value of (Picked unit)) in CreepRespawnTable
- Custom script: call RemoveLocation(udg_TempLoc)
-
Else - Actions
- Unit Group - Remove (Picked unit) from Temp_UnitGroup
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Temp_UnitGroup)
-
Events
-
Respawn
-
Events
- Unit - A unit Dies
-
Conditions
- (Owner of (Dying unit)) Equal to Neutral Hostile
-
Actions
- Custom script: local unit u = GetDyingUnit()
- Custom script: local integer i = GetUnitUserData(u)
- Custom script: set udg_TempUnit = u
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of TempUnit) Equal to |cffff4500[Boss]|r Bandit Lord (Female)
- (Unit-type of TempUnit) Equal to |cffff7f50[Semi-Boss]|r Bandit Lord Assistant
- (Unit-type of TempUnit) Equal to |cff800080[Elite]|r Kobold Head-Cheif
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set CV = (Custom value of TempUnit)
- Game - Display to (All players) for 30.00 seconds the text: ((String((Load CV of 0 from CreepRespawnTable))) + (Load CV of 1 from CreepRespawnTable))
- Wait 30.00 seconds
- Custom script: set udg_TempUnit = u
- Custom script: set udg_CV = i
- Unit - Create 1 (Unit-type of TempUnit) for Neutral Hostile at (Point((Load 1 of CV from CreepRespawnTable), (Load 2 of CV from CreepRespawnTable))) facing (Load 3 of CV from CreepRespawnTable) degrees
- Set TempLoc = (Position of (Last created unit))
- Set TempReal = (X of TempLoc)
- Set TempReal2 = (Y of TempLoc)
- Set TempReal3 = (Facing of (Last created unit))
- Hashtable - Save TempReal as 1 of (Custom value of (Last created unit)) in CreepRespawnTable
- Hashtable - Save TempReal2 as 2 of (Custom value of (Last created unit)) in CreepRespawnTable
- Hashtable - Save TempReal3 as 3 of (Custom value of (Last created unit)) in CreepRespawnTable
- Custom script: call RemoveLocation(udg_TempLoc)
- Game - Display to (All players) for 30.00 seconds the text: ((String((Load CV of 0 from CreepRespawnTable))) + (Load CV of 1 from CreepRespawnTable))
- Hashtable - Clear all child hashtables of child (Custom value of TempUnit) in CreepRespawnTable
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
-
Then - Actions
- Set CV = (Custom value of TempUnit)
- Game - Display to (All players) for 30.00 seconds the text: ((String((Load CV of 0 from CreepRespawnTable))) + (Load CV of 1 from CreepRespawnTable))
- Wait 15.00 seconds
- Custom script: set udg_TempUnit = u
- Custom script: set udg_CV = i
- Unit - Create 1 (Unit-type of TempUnit) for Neutral Hostile at (Point((Load 1 of CV from CreepRespawnTable), (Load 2 of CV from CreepRespawnTable))) facing (Load 3 of CV from CreepRespawnTable) degrees
- Set TempLoc = (Position of (Last created unit))
- Set TempReal = (X of TempLoc)
- Set TempReal2 = (Y of TempLoc)
- Set TempReal3 = (Facing of (Last created unit))
- Hashtable - Save TempReal as 1 of (Custom value of (Last created unit)) in CreepRespawnTable
- Hashtable - Save TempReal2 as 2 of (Custom value of (Last created unit)) in CreepRespawnTable
- Hashtable - Save TempReal3 as 3 of (Custom value of (Last created unit)) in CreepRespawnTable
- Custom script: call RemoveLocation(udg_TempLoc)
- Game - Display to (All players) for 30.00 seconds the text: ((String((Load CV of 0 from CreepRespawnTable))) + (Load CV of 1 from CreepRespawnTable))
- Hashtable - Clear all child hashtables of child (Custom value of TempUnit) in CreepRespawnTable
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Then - Actions
- Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Events
Also
-
Lightning Periodic
-
Events
- Time - Every 6.00 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in LightningStormGroup) Not equal to 0
-
Then - Actions
-
Unit Group - Pick every unit in LightningStormGroup and do (Actions)
-
Loop - Actions
- Set TempUnit = (Picked unit)
- Set TempLoc = (Position of TempUnit)
- Set TempUnitGroup2 = (Units within (525.00 + (75.00 x (Real((Level of Mind of the Storm T1 ELEM for TempUnit))))) of TempLoc matching (((Owner of (Matching unit)) Equal to Neutral Hostile) or ((Owner of (Matching unit)) Equal to Player 12 (Brown))))
- Custom script: call RemoveLocation(udg_TempLoc)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in TempUnitGroup2) Not equal to 0
-
Then - Actions
-
Unit Group - Pick every unit in TempUnitGroup2 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is alive) Equal to True
-
Then - Actions
- Set TempLoc = (Position of (Picked unit))
- Special Effect - Create a special effect at TempLoc using war3mapImported\Great Lightning.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Cause TempUnit to damage (Picked unit), dealing (((Real((Intelligence of TempUnit (Include bonuses)))) x (2.00 + (Real((Level of Mind of the Storm T1 ELEM for TempUnit))))) + 0.00) damage of attack type Spells and damage type Normal
- Custom script: call RemoveLocation(udg_TempLoc)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in TempUnitGroup2 and do (Actions)
- Else - Actions
-
If - Conditions
-
Loop - Actions
-
Unit Group - Pick every unit in LightningStormGroup and do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Also another question : How do i apply a buff to a unit for tracking purposes? (some buffs must be visible, some buffs prefered not to be visible)