MakeAbilityPermanent exp

sunshinex3

You can change this now in User CP.
Reaction score
7
//example below, to get the "truename" of the ability simply make a trigger with actions involving those abilities that you need the names of copy and go to edit at the top and covert to custom text. Looking through the data you can find the true names.(in my case the true name of the ability Damage Bonus (all units) was AoZ3)
Code:
unit bonuses
    Events
        Unit - A unit Dies
    Conditions
        ((Killing unit) is A Hero) Equal to False
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Damage Bonus (all units) for (Killing unit)) Less than 1
            Then - Actions
                Unit - Add Damage Bonus (all units) to (Killing unit)
                Custom script:   call UnitMakeAbilityPermanent(GetKillingUnitBJ() , true, 'A0Z2')
                Unit - Add Armor Bonus (All Units) to (Killing unit)
                Custom script:   call UnitMakeAbilityPermanent(GetKillingUnitBJ() , true, 'A0Z3')
                Unit - Add Attack Speed Bonus (All Units) to (Killing unit)
                Custom script:   call UnitMakeAbilityPermanent(GetKillingUnitBJ() , true, 'A0Z5')
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Level of Damage Bonus (all units) for (Killing unit)) Less than 100
                    Then - Actions
                        Unit - Increase level of Damage Bonus (all units) for (Killing unit)
                        Unit - Increase level of Armor Bonus (All Units) for (Killing unit)
                        Unit - Increase level of Attack Speed Bonus (All Units) for (Killing unit)
                    Else - Actions
                        Do nothing


// Custom script is an actual action. after selecting that action you will get a text box, type; call UnitMakeAbilityPermanent(GetKillingUnitBJ() , true, 'A0Z2'), GetkillingUnitBJ() refers to killing unit. if that is what you need then that is what you should use if not, make the trigger you need, leave out custom scripts and then copy paste, and convert to custom text then you will see what you need, exp: GetLastReplacedUnit.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top