Cohadar
master of fugue
- Reaction score
- 209
Task:
Make a KillCounter library that will attach a Counter variable to all units on the map and will keep track of how many units some unit killed.
Conditions:
1. All your code must be in one library. (except the system you are using)
2. Monopolizing UnitUserData is not allowed.
3. No using of Object editor is allowed, you must use some attaching system to do the job.
4. The only event you are allowed to use is EVENT_PLAYER_UNIT_DEATH
Reward:
Rep and some <3 from me. (the better solution the more love)
PS: Once a first successful solution is found for one attachment system no further solutions will be considered - fastest one wins.
Winners: (in chronological order)
Flare <3 - Ugly solution with group and a timer, but at least it works
TheDamien <3 - Solid solution with a timer but still not usable for serious mapping.
TheDamien-CSData <3<3<3 - first usable solution that uses one standard system, CSData + group trick.
(Group trick can be used with almost all attaching systems.)
Grim001 <3 - an inlined 0x100000 with a group trick.(nice testmap)
Vexorian <3 - for his time and ideas, no map since it basically comes down to other group tricks.
Out of competition:
Cohadar-PUI - PUI + Pivot array.
Make a KillCounter library that will attach a Counter variable to all units on the map and will keep track of how many units some unit killed.
Conditions:
1. All your code must be in one library. (except the system you are using)
2. Monopolizing UnitUserData is not allowed.
3. No using of Object editor is allowed, you must use some attaching system to do the job.
4. The only event you are allowed to use is EVENT_PLAYER_UNIT_DEATH
Reward:
Rep and some <3 from me. (the better solution the more love)
PS: Once a first successful solution is found for one attachment system no further solutions will be considered - fastest one wins.
Winners: (in chronological order)
Flare <3 - Ugly solution with group and a timer, but at least it works
TheDamien <3 - Solid solution with a timer but still not usable for serious mapping.
TheDamien-CSData <3<3<3 - first usable solution that uses one standard system, CSData + group trick.
(Group trick can be used with almost all attaching systems.)
Grim001 <3 - an inlined 0x100000 with a group trick.(nice testmap)
Vexorian <3 - for his time and ideas, no map since it basically comes down to other group tricks.
Out of competition:
Cohadar-PUI - PUI + Pivot array.