- Joined
- Sep 29, 2006
- Messages
- 447
This trigger I made is severely lagging and I can't tell why. Can anyone help me out? The trigger works as intended but it just lags to the point where the game is unplayable.
P.S. I do NOT need this to be MUI
-
polymorph cloud init
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Polymorph Cloud
-
Actions
- Set TempPoint = (Target point of ability being cast)
- Unit - Create 1 Polymorph Cloud for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_TempPoint)
- Set PolymorphCloud = (Last created unit)
- Trigger - Turn on polymorph cloud polymorph <gen>
- Wait 15.00 seconds
- Trigger - Turn off polymorph cloud polymorph <gen>
- Unit - Kill PolymorphCloud
- Custom script: set udg_PolymorphCloud = null
-
Events
-
polymorph cloud polymorph
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Set TempPoint = (Position of PolymorphCloud)
- Set TempUnitGroup = (Units within 275.00 of TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint)
-
Unit Group - Pick every unit in TempUnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff polymorph buff give ) Equal to False
-
Then - Actions
- Set TempPoint = (Position of (Picked unit))
- Unit - Create 1 dummy unit for (Owner of PolymorphCloud) at TempPoint facing Default building facing degrees
- Unit - Add Polymorph (Polymorph Cloud) to (Last created unit)
- Unit - Add polymorph buff give (Neutral Hostile) to (Last created unit)
- Unit - Set level of Polymorph (Polymorph Cloud) for (Last created unit) to (Level of Polymorph Cloud for (Triggering unit))
- Unit - Set level of polymorph buff give (Neutral Hostile) for (Last created unit) to (Level of Polymorph Cloud for (Triggering unit))
- Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
- Unit - Order (Last created unit) to Undead Necromancer - Unholy Frenzy (Picked unit)
- Unit - Add a 0.75 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_TempPoint)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TempUnitGroup)
-
Events
P.S. I do NOT need this to be MUI