I have a problem... my trigger causes ingame lags because many actions are being triggered per every second... Is there any way to disable these lags? Maybe to add any condition or something? Or you have other ideas... thx
Code:
per sec
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
-------- Curse --------
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Curse ) equal to True)) and do (Actions)
Loop - Actions
Unit - Cause WarlockCaster to damage (Picked unit), dealing (0.70 x (Real((Inteligence of WarlockCaster (Include bonuses))))) damage of attack type Spell and damage type Power
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of WarlockCaster) more than or equal to 9
Then - Actions
Set CursePG = (Player group((Owner of WarlockCaster)))
Unit - Set life of WarlockCaster to ((Life of WarlockCaster) + (0.14 x (Real((Inteligencja of WarlockCaster (Include bonuses))))))
Text - Create floating text that reads (+ + (String((Integer((0.14 x (Real((Intelligence of WarlockCaster (Include bonuses)))))))))) above WarlockCaster with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
Text - Hide (Last created floating text) for (All players)
Text - Show (Last created floating text) for CursePG
Text - Set the velocity of (Last created floating text) to 100.00 towards 90.00 degrees
Text - Change (Last created floating text): Disable permanence
Text - Change the fading age of (Last created floating text) to 0.15 seconds
Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Custom script: call DestroyForce (udg_CursePG)
Else - Actions
-------- Soul Burn --------
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Soul Burn ) equal to True)) and do (Actions)
Loop - Actions
Unit - Cause WarlockCaster to damage (Picked unit), dealing (0.31 x (Real((Inteligence of WarlockCaster (Include bonuses))))) damage of attack type Spell and damage type Power
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of WarlockCaster) more than or equal to 9
Then - Actions
Set SoulBurnPG = (Player group((Owner of WarlockCaster)))
Unit - Set life of WarlockCaster to ((Życie of WarlockCaster) + (0.06 x (Real((Intelligence of WarlockCaster (Include bonuses))))))
Tekst - Create floating text that reads (+ + (String((Integer((0.06 x (Real((Intelligence of WarlockCaster (Include bonuses)))))))))) above WarlockCaster with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
Text - Hide (Last created floating text) for (All players)
Text - Show (Last created floating text) for SoulBurnPG
Text - Set the velocity of (Last created floating text) to 100.00 towards 90.00 degrees
Text - Change (Last created floating text): Disable permanence
Text - Change the fading age of (Last created floating text) to 0.15 seconds
Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Custom script: call DestroyForce (udg_CursePG)
Else - Actions
and then some more...