Okay, first I will explain what SCORE, SCORE_BUILD, and SCORE_DESTROY KindOf do and how they affect your scoreboard:
>SCORE
Count the unit build and kill into the scoreboard.
When you kill unit with this tag, will increase your 'Unit Destroyed' score in scoreboard.
>SCORE_BUILD
When you build the unit it counts the 'Unit Build' counter.
When killed/destroyed not included in 'Unit Lost'.
Will not increase your 'Unit Destroyed' when you kill unit with this tag.
>SCORE_DESTROY
When you build the unit it not included in the 'Unit Build' counter.
When killed/destroyed included in 'Unit Lost'.
Will increase your 'Unit Destroyed' when you kill unit with this tag.
However, commiting suicide will affect your score. Try suiciding a bomb truck and see what happen. Your 'Unit Lost' will be +1 but nobody will get +1 for 'Unit Destroyed'
-----------------------------------------------------------
Next, the usage.
If you see GLA building codes, they have SCORE_BUILD KindOf not SCORE, and the GLA Holes have SCORE_DESTROY. This because all GLA buildings will converted to holes when destroyed (that you must destroy so they cannot rebuild). So:
1. When the buildings built, "Building Constructed" +1
2. When the building destroyed, the hole spawned, "Building Destroyed/Lost" +0
3. When the hole destroyed, "Building Destroyed/Lost" +1
The final result will be:
Code:
"Building Constructed" +1
"Building Destroyed/Lost" +1
But, EA made a mistake for Sneak Attack. The actual Sneak Attack have SCORE_BUILD KindOf, not SCORE_DESTROY, and the start (deploying) object also have SCORE_BUILD. So:
1. The Sneak Attack deployed via Generals Power. "Building Constructed" +1
2a. After a while the start object replaced with the actual Sneak Attack. "Building Constructed" +1
3a. When the Sneak Attack destroyed after replaced,
"Building Destroyed/Lost" +0
2b. Or, the Sneak Attack destroyed when deploying. The zero health transfered to actual object. "Building Constructed" +1
3b. The actual object instantly destroyed beacuse the transfered zero health.
"Building Destroyed/Lost" +0
Both conditions lead the same way:
Code:
"Building Constructed" +2
"Building Destroyed/Lost" +0
So, be careful to use these KindOfs.
-----------------------------------------------------------
And the last one.
These days, there are so many ZH mods that including deployable buildings/vehicle/both. For example, an MCV.
To those who make deployable units with
suicide method, if you give both deployed/undeployed object SCORE KindOf, the "Building/Unit Constructed" and "Building/Unit Lost" will be increasing when you deploy/unpack the building/vehicle.
For the details:
1. The "MCV" built. "Unit Constructed" +1
2. When deployed, killed, replaced with "ConYard". "Unit Lost" +1, "Building Constructed" +1
3. When ConYard undeployed, killed, replaced with MCV. "Building Lost" +1, "Unit Constructed" +1
4. And so on.
To fix this:
1. When the unit/building built, make it spawn an invisible object once for all, with SCORE_BUILD KindOf.
2. Don't give both MCV and ConYard any score KindOfs
3. Let's say to transform the object into another you use the EXTRA_1 death type. So, for each death types except EXTRA_1, make an invisible object with SCORE_DESTROY KindOf.
This will make the MCV and ConYard counted as one "object". It only raises score at the first time built, and when it killed by non deploy/undeploying causes.
-----------------------------------------------------------
Okay, that's all folks. Hope this can help, and if anything to add just reply. Thanks for reading.
~n5p29