Moderator
M
Moderator
12.12
IcemanBo: For long time as NeedsFix. Rejected.
Bribe:
When setting up the hashtable, use "Map Initialization" as the event. A 0.01 second timer is just for setting up multiboards.
0.05 seconds is bad for a periodic timer, 0.03 is best.
(Key (Picked unit)) store into an integer variable, you reference it a lot which makes it quite slow as opposed to referencing a variable pointer.
(Owner of (Triggering unit)) -> (Triggering player)
Instead of referencing (Target point of ability being cast) to ArtilleryPoint, referencing it once and then removing it, save ArtilleryPoint into the hashtable and delete the "removelocation" custom script in that trigger. That way you only call (Target point of ability being cast) once and only have to remove it once, instead of calling it twice and removing it twice.
(Dying unit) -> (Triggering unit)
(Key (Last created unit)) -> set to a variable, it involves 3 function calls. So does (Key (Triggering unit)).
(Owner of (Dying unit)) -> (Triggering player)
Lots of room for improvement.
IcemanBo: For long time as NeedsFix. Rejected.
Bribe:
When setting up the hashtable, use "Map Initialization" as the event. A 0.01 second timer is just for setting up multiboards.
0.05 seconds is bad for a periodic timer, 0.03 is best.
(Key (Picked unit)) store into an integer variable, you reference it a lot which makes it quite slow as opposed to referencing a variable pointer.
(Owner of (Triggering unit)) -> (Triggering player)
Instead of referencing (Target point of ability being cast) to ArtilleryPoint, referencing it once and then removing it, save ArtilleryPoint into the hashtable and delete the "removelocation" custom script in that trigger. That way you only call (Target point of ability being cast) once and only have to remove it once, instead of calling it twice and removing it twice.
(Dying unit) -> (Triggering unit)
(Key (Last created unit)) -> set to a variable, it involves 3 function calls. So does (Key (Triggering unit)).
(Owner of (Dying unit)) -> (Triggering player)
Lots of room for improvement.