Teach101
New Member
- Reaction score
- 4
Why is this making wc3 unresponsive?
Start:
Time Create
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Domain
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MUI Greater than or equal to 8000
Then - Actions
Set MUI = 0
Else - Actions
Set MUI = (MUI + 1)
Set Hero[MUI] = (Casting unit)
Set Point_2[MUI] = (Target point of ability being cast)
Set Level[MUI] = (Level of Domain for Hero[MUI])
Unit - Set the custom value of Hero[MUI] to MUI
Unit Group - Add Hero[MUI] to IceGarden_Hero
Unit - Create 1 Dummy_Sphere for (Triggering player) at Point_2[MUI] facing Default building facing degrees
Set Unit[MUI] = (Last created unit)
Trigger - Turn on Time Destroy <gen>
Unit - Add a 15.00 second Generic expiration timer to Unit[MUI]
Second Trigger:
Time Destroy
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in IceGarden_Hero and do (Actions)
Loop - Actions
Set TEMP = (Custom value of (Picked unit))
Set Point_2[MUI] = (Position of Unit[TEMP])
Set IceGarden_UnitGroup = (Units within 400.00 of Point_2[TEMP] matching (((Matching player) is an ally of (Owner of Hero[TEMP])) Equal to False))
Unit Group - Pick every unit in IceGarden_UnitGroup and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to IceGarden_UnitGroup2
Custom script: call DestroyGroup(udg_IceGarden_UnitGroup)
Unit Group - Pick every unit in IceGarden_UnitGroup2 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Level[TEMP] Equal to 1
(Unit[TEMP] is alive) Equal to True
Then - Actions
Animation - Change (Picked unit)'s animation speed to 80.00% of its original speed
Unit - Add Garden to (Picked unit)
Unit - Add Unknown (A006) (Item) to (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Level[TEMP] Equal to 2
(Unit[TEMP] is alive) Equal to True
Then - Actions
Animation - Change (Picked unit)'s animation speed to 60.00% of its original speed
Unit - Add Garden to (Picked unit)
Unit - Add Unknown (A005) (Item) to (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Level[TEMP] Equal to 3
(Unit[TEMP] is alive) Equal to True
Then - Actions
Animation - Change (Picked unit)'s animation speed to 40.00% of its original speed
Unit - Add Atk 20 (Gloves of Haste) to (Picked unit)
Unit - Add Unknown (A004) (Item) to (Picked unit)
Else - Actions
Animation - Change (Picked unit)'s animation speed to 100.00% of its original speed
Unit - Remove Atk 20 (Gloves of Haste) from (Picked unit)
Unit - Remove Atk 40 (Gloves of Haste) from (Picked unit)
Unit - Remove Atk 60 (Gloves of Haste) from (Picked unit)
Unit - Remove Unknown (A004) (Item) from (Picked unit)
Unit - Remove Unknown (A005) (Item) from (Picked unit)
Unit - Remove Unknown (A006) (Item) from (Picked unit)
Unit Group - Remove (Picked unit) from IceGarden_UnitGroup2
Trigger - Turn off (This trigger)
Custom script: call RemoveLocation(udg_Point_2[udg_MUI])
I'm guessing it's Set IceGarden_UnitGroup = (Units within 400.00 of Point_2[TEMP] matching (((Matching player) is an ally of (Owner of Hero[TEMP])) Equal to False))
...
This only goes unresponsive when units move inside.
Start:
Time Create
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Domain
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MUI Greater than or equal to 8000
Then - Actions
Set MUI = 0
Else - Actions
Set MUI = (MUI + 1)
Set Hero[MUI] = (Casting unit)
Set Point_2[MUI] = (Target point of ability being cast)
Set Level[MUI] = (Level of Domain for Hero[MUI])
Unit - Set the custom value of Hero[MUI] to MUI
Unit Group - Add Hero[MUI] to IceGarden_Hero
Unit - Create 1 Dummy_Sphere for (Triggering player) at Point_2[MUI] facing Default building facing degrees
Set Unit[MUI] = (Last created unit)
Trigger - Turn on Time Destroy <gen>
Unit - Add a 15.00 second Generic expiration timer to Unit[MUI]
Second Trigger:
Time Destroy
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in IceGarden_Hero and do (Actions)
Loop - Actions
Set TEMP = (Custom value of (Picked unit))
Set Point_2[MUI] = (Position of Unit[TEMP])
Set IceGarden_UnitGroup = (Units within 400.00 of Point_2[TEMP] matching (((Matching player) is an ally of (Owner of Hero[TEMP])) Equal to False))
Unit Group - Pick every unit in IceGarden_UnitGroup and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to IceGarden_UnitGroup2
Custom script: call DestroyGroup(udg_IceGarden_UnitGroup)
Unit Group - Pick every unit in IceGarden_UnitGroup2 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Level[TEMP] Equal to 1
(Unit[TEMP] is alive) Equal to True
Then - Actions
Animation - Change (Picked unit)'s animation speed to 80.00% of its original speed
Unit - Add Garden to (Picked unit)
Unit - Add Unknown (A006) (Item) to (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Level[TEMP] Equal to 2
(Unit[TEMP] is alive) Equal to True
Then - Actions
Animation - Change (Picked unit)'s animation speed to 60.00% of its original speed
Unit - Add Garden to (Picked unit)
Unit - Add Unknown (A005) (Item) to (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Level[TEMP] Equal to 3
(Unit[TEMP] is alive) Equal to True
Then - Actions
Animation - Change (Picked unit)'s animation speed to 40.00% of its original speed
Unit - Add Atk 20 (Gloves of Haste) to (Picked unit)
Unit - Add Unknown (A004) (Item) to (Picked unit)
Else - Actions
Animation - Change (Picked unit)'s animation speed to 100.00% of its original speed
Unit - Remove Atk 20 (Gloves of Haste) from (Picked unit)
Unit - Remove Atk 40 (Gloves of Haste) from (Picked unit)
Unit - Remove Atk 60 (Gloves of Haste) from (Picked unit)
Unit - Remove Unknown (A004) (Item) from (Picked unit)
Unit - Remove Unknown (A005) (Item) from (Picked unit)
Unit - Remove Unknown (A006) (Item) from (Picked unit)
Unit Group - Remove (Picked unit) from IceGarden_UnitGroup2
Trigger - Turn off (This trigger)
Custom script: call RemoveLocation(udg_Point_2[udg_MUI])
I'm guessing it's Set IceGarden_UnitGroup = (Units within 400.00 of Point_2[TEMP] matching (((Matching player) is an ally of (Owner of Hero[TEMP])) Equal to False))
...
This only goes unresponsive when units move inside.