How to add abilities to heros

Xain

New Member
Reaction score
2
How can I add an aiblity to a hero, not just a regular one, but one that goes into the Heros Abilities and thus I can level it up. Kinda like Custom Castle Defence, I want to allow people to choose there own abilities.
 

perkeyone

something clever
Reaction score
71
you could use a shop that sells units
the units will have the same name,description and icon as the spell
then make a trigger
when a unit is purchased
if the unit type is UNITX
then add SPELLX to purchasing unit
if it is unit type UNITY
then add SPELLY to purchasing unit
etc
then remove the purchased unit
 

simonake

New Member
Reaction score
72
Give me a sec.
I got a link of Baka Ranger the guy who made CustomHeroLineWars
Best tutorial for custom ability choosing.
 

Slapshot136

Divide et impera
Reaction score
471
just add it via a trigger like you normally would, and if the ability you added was a hero ability, then it would do what you just said, if it's not, then it would be added as a normal ability
 

Xain

New Member
Reaction score
2
I did that but hes just learning the abilitiy when I do

Unit - Add ability.

Heres my trigger.

Abil_first = Hero - Blizzard

Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        Boolean_A_Hero_Select[(Player number of (Triggering player))] Equal to True
        Boolean_A_Abilities_Select[(Player number of (Triggering player))] Equal to True
    Then - Actions
        Cinematic - Clear the screen of text messages for (Player group((Triggering player)))
        Visibility - Destroy AbilityFog[(Player number of (Triggering player))]
        Unit - Create 1 (Unit-type of Hero[Int_A_Hero_Number[(Player number of (Triggering player))]]) for (Triggering player) at (Center of Spawn <gen>) facing Default building facing degrees
        Unit - Add Abil_First[(Player number of (Triggering player))] to (Last created unit)
        Hero - Create Ankh of Reincarnation and give it to (Last created unit)
        Hero - Create Ankh of Reincarnation and give it to (Last created unit)
        Hero - Create Ankh of Reincarnation and give it to (Last created unit)
        Hero - Create Potion of Greater Healing and give it to (Last created unit)
        Hero - Create Potion of Greater Healing and give it to (Last created unit)
        Hero - Create Potion of Greater Mana and give it to (Last created unit)
        Hero - Create Potion of Greater Mana and give it to (Last created unit)
        Camera - Pan camera for (Triggering player) to (Position of (Last created unit)) over 0.00 seconds
        Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Human\ReviveHuman\ReviveHuman.mdl
        Special Effect - Destroy (Last created special effect)
        Selection - Select (Last created unit) for (Triggering player)
        Visibility - Create an initially Enabled visibility modifier for (Triggering player) emitting Black mask across Ability Fog <gen>
    Else - Actions
 

simonake

New Member
Reaction score
72
Do like Baka-ranger did. It's the best tutorial i ever saw in terms of ability choosing.
 

perkeyone

something clever
Reaction score
71
hmm
what happens if you set the level of blizzard to 0 after you add it to the unit?

try looking at that map he is talking about if that doesnt work
 

Xain

New Member
Reaction score
2
hmm
what happens if you set the level of blizzard to 0 after you add it to the unit?

try looking at that map he is talking about if that doesnt work

does nothing =/

there has to be a easier way to do this, im trying to replace abbilities but dont know how.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top