- Joined
- Nov 22, 2006
- Messages
- 28
I´ve a question about performance. I made some abilities autocasting with the following trigger:
Autocast Chain Lightning
Events
Unit - A unit Is attacked
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Attacking unit)) Equal to Something 1
(Unit-type of (Attacking unit)) Equal to Something 2
(Unit-type of (Attacking unit)) Equal to Something 3
Actions
Unit - Order (Attacking unit) to Orc Far Seer - Chain Lightning (Attacked unit)
But i´m afraid that´s going to lag because it´s a TD with many (95% non-autocasting but fast attacking) towers. I guess it´s laggy to check 250x times per second if the attacking tower is an autocasting one. Is it better to work with channeling abilities? Or to give the Order to every tower without the "if"?
I also tried a autocasting dummy spell but it worked not very well and i don´t want two visible spells.
Autocast Chain Lightning
Events
Unit - A unit Is attacked
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Attacking unit)) Equal to Something 1
(Unit-type of (Attacking unit)) Equal to Something 2
(Unit-type of (Attacking unit)) Equal to Something 3
Actions
Unit - Order (Attacking unit) to Orc Far Seer - Chain Lightning (Attacked unit)
But i´m afraid that´s going to lag because it´s a TD with many (95% non-autocasting but fast attacking) towers. I guess it´s laggy to check 250x times per second if the attacking tower is an autocasting one. Is it better to work with channeling abilities? Or to give the Order to every tower without the "if"?
I also tried a autocasting dummy spell but it worked not very well and i don´t want two visible spells.