- Joined
- Jul 18, 2007
- Messages
- 111
This trigger below is broken up into 4 parts and basically it's just a magic/spell resistance aura. It turns on when the hero picks the spell then adds/removes the spell resistance from units in range appropriately. It's causing a lot of FPS drop, I believe because of the 3rd check which tries to remove the resistance from units who leave the range basically. Does anyone know a more effective and lagless approach or perhaps something that could be changed/compressed in some way to reduce lag for this? Thanks in advance.
-
Barrier of Sauron
-
Events
-
Unit - Gothmog 0687 <gen> Learns a skill
-
-
Conditions
-
(Learned Hero Skill) Equal to (==) Protection of Sauron
-
-
Actions
-
Trigger - Turn on Barrier of Sauron 2 <gen>
-
Trigger - Turn on Barrier of Sauron 3 <gen>
-
Trigger - Turn on Barrier of Sauron Off <gen>
-
-
-
Barrier of Sauron 2
-
Events
-
Time - Every 2.00 seconds of game time
-
-
Conditions
-
Actions
-
Set temp_group = (Units within 750.00 of (Position of Gothmog 0687 <gen>) matching (((Matching unit) has buff Protection of Sauron ) Equal to (==) True))
-
Unit Group - Pick every unit in temp_group and do (Actions)
-
Loop - Actions
-
Unit - Set level of Spell Damage Reduction for (Picked unit) to (Level of Protection of Sauron for Gothmog 0687 <gen>)
-
Unit - Add Spell Damage Reduction to (Picked unit)
-
-
-
Custom script: call DestroyGroup (udg_temp_group)
-
-
-
Barrier of Sauron 3
-
Events
-
Time - Every 2.00 seconds of game time
-
-
Conditions
-
Actions
-
Set temp_group = (Units in (Playable map area) matching (((Matching unit) has buff Protection of Sauron ) Equal to (==) False))
-
Unit Group - Pick every unit in temp_group and do (Actions)
-
Loop - Actions
-
Unit - Remove Spell Damage Reduction from (Picked unit)
-
-
-
Custom script: call DestroyGroup (udg_temp_group)
-
-
-
Barrier of Sauron Off
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Triggering unit) Equal to (==) Gothmog 0687 <gen>
-
-
Actions
-
Set temp_group = (Units in (Playable map area))
-
Unit Group - Pick every unit in temp_group and do (Actions)
-
Loop - Actions
-
Unit - Remove Spell Damage Reduction from (Picked unit)
-
-
-
Custom script: call DestroyGroup (udg_temp_group)
-
Trigger - Destroy Barrier of Sauron 2 <gen>
-
Trigger - Destroy Barrier of Sauron 3 <gen>
-
Trigger - Destroy (This trigger)
-
-