Name | Type | is_array | initial_value |
V_Abilities | abilcode | Yes | |
V_AbilitiesAmount | integer | No | |
V_AbilityUnit | unit | No | |
V_AmountBlockedUnits | integer | No | |
V_BlockedUnit | unitcode | Yes | |
V_Hashtable | hashtable | No | |
V_HashUnit | integer | No | |
V_Killer | unit | No | |
V_KillLimit | integer | No | |
V_RankKills | integer | No | |
V_RankLevel | integer | No | |
V_Unit | unit | No |
//
****** Veterancy *******
* Created by: 13oot-Me *
************************
Installation Instructions
1) Go to the Object Editor (F6) and copy the six (6) custom abilites over to
your map.
2) Make sure that in File ->Preferences ->General, the "Automatically create
unknown variables while pasting trigger data" box is checked, then copy
the "Veterancy" folder over to your map.
3) (Optional) If you would like to use the icon I have chosen, extract both
the BTNmedalofhonor and DISBTNmedalofhonor files under Imports (F12), and
then import them into your map.
********************************* IMPORTANT **********************************
* If some of the trigger abilities do not appear correct in the actual *
* trigger, make sure the trigger looks exactly as it does in the text below. *
******************************************************************************
V Record
Events
Unit - A unit Dies
Conditions
Actions
Set V_Unit = (Triggering unit)
Unit - Remove V_Level 5 from V_Unit
Unit - Remove V_Level 10 from V_Unit
Unit - Remove V_Level 15 from V_Unit
Set V_Killer = (Killing unit)
Set V_HashUnit = (Key (Killing unit))
Set V_RankKills = ((Load 0 of V_HashUnit from V_Hashtable) + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
V_RankKills Equal to V_KillLimit
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Level of Rank (Dummy) for V_Killer) Greater than 0) and ((Level of Rank (Dummy) for V_Killer) Less than 15)
Then - Actions
Unit - Increase level of Rank (Dummy) for V_Killer
Unit - Increase level of V_Armor Bonus for V_Killer
Unit - Increase level of V_Damage Bonus for V_Killer
Special Effect - Create a special effect attached to the origin of V_Killer using Abilities\Spells\Items\AIre\AIreTarget.mdl
Special Effect - Destroy (Last created special effect)
If ((Level of Rank (Dummy) for V_Killer) Equal to 5) then do (Unit - Add V_Level 5 to V_Killer) else do (Do nothing)
If ((Level of Rank (Dummy) for V_Killer) Equal to 10) then do (Unit - Add V_Level 10 to V_Killer) else do (Do nothing)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Rank (Dummy) for V_Killer) Equal to 15
Then - Actions
Unit - Remove V_Level 10 from V_Killer
Unit - Add V_Level 15 to V_Killer
Else - Actions
Set V_RankKills = ((Load 0 of V_HashUnit from V_Hashtable) - V_KillLimit)
Else - Actions
Else - Actions
Hashtable - Save V_RankKills as 0 of V_HashUnit in V_Hashtable
//