💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!
This system records for EVERY unit their kills and deaths, their dealt and taken damages.
The system is not hard, it just avoid lazy developers some coding
You can access to the recorded data whenever you want by calling one of those functions
function GetUnitKillCount takes unit whichUnit returns integer
function GetUnitDieCount takes unit whichUnit returns integer
function GetUnitDamagesDealtCount takes unit whichUnit returns real
function GetUnitDamagesTakenCount takes unit whichUnit returns real
function GetUnitAlliedKillCount takes unit whichUnit returns integer
function GetUnitAlliedDieCount takes unit whichUnit returns integer
function GetUnitAlliedDamagesDealtCount takes unit whichUnit returns real
function GetUnitAlliedDamagesTakenCount takes unit whichUnit returns real
function GetUnitUnalliedKillCount takes unit whichUnit returns integer
function GetUnitUnalliedDieCount takes unit whichUnit returns integer
function GetUnitUnalliedDamagesDealtCount takes unit whichUnit returns real
function GetUnitUnalliedDamagesTakenCount takes unit whichUnit returns real
It also use my event system (1.0d included) to add the event AnyUnitDamaged, avoiding you registering the event EVENT_UNIT_DAMAGED for each unit (the system does it for you, so you need ONE line to register the event).
For the sample, when you select an unit, unit's stats pops up.
There is also a sample trigger using the event AnyUnitDamaged that display when a unit reaches a damage dealt cap (200, 400, 600... you can easily change this cap or turn off the trigger).
1.0b -> The system now records also allied and unallied damages/kills
1.0 -> first release
19:43, 26th Oct 2009
Is this honestly needed...?
You say it's a kill counter but it includes so much more, which defeats the point of calling it a kill counter (which could be created in 10 lines).
And why are the majority...
did you know that you can UPDATE your system instead of uploading a new one???
(grey line over the sreenshot, on the right side: UPDATE button)
and if you do it like you did then plz delete your old version!
now your system:
it works quite good, even if i would have changed the test map triggers so they convert the values to integers for better readability^^
(its better to read "123 damage" instead of "123.345 damage")
your event system is full of documentation BUT i looked over it several times and couldn't understand until the fourth look-over how i have to use it
in addition it is possible to have the values displayed without your event system...
and so with much less code, but thats up to the user...
anyway good use of hashtables and very good (but sometimes too much) documentated so 4/5
add the librarys to the hive description here and try to explain the usage of your event system better for 5/5
well, I know the update button. But for me they're different systems, so that's why I created a new one.
I know that it's possible to show caps without the event system, but showing those caps is just for demo.
The real utility of the event is to allow you to create your own trigger that fires when any unit takes damages with only one line of code.
I added the event because I thought counting only kills and deaths wouldn't be a real system.