Abilities

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
OK, I'm back with a problem with Abilities... I based an ability off of Item Strength Gain and set it to be a hero unit with 20 levels... next I did the same with Item Intelligence Gain and Agility... I made the Research Icon the same as the normal one. The Abilities ended up not working so I decided that I could do it with triggers, so with the same 3 abilities, I created a trigger like so:
Trigger:
  • Default Abils
    • Events
    • Unit - A unit Learns a skill
    • Conditions
    • Actions
    • For each (Integer A) from 1 to 11, do (Actions)
    • Loop - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Learned Hero Skill) Equal to Agility
    • Then - Actions
    • Set UnitAgility[(Integer A)] = (UnitAgility[(Integer A)] + 1)
    • Hero - Modify Agility of (Learning Hero): Set to Agility[(Integer A)]
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Learned Hero Skill) Equal to Intelligence
    • Then - Actions
    • Set UnitIntellagence[(Integer A)] = (UnitIntellagence[(Integer A)] + 1)
    • Hero - Modify Intelligence of (Learning Hero): Set to Intelligence[(Integer A)]
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Learned Hero Skill) Equal to Strength
    • Then - Actions
    • Set UnitStrength[(Integer A)] = (UnitStrength[(Integer A)] + 1)
    • Hero - Modify Strength of (Learning Hero): Set to Strength[(Integer A)]
    • Else - Actions

As you can see it doesn't work.. (Otherwise I wouldn't be telling you). I was wondering if you actually could do that... or would I have to make an item appear on the ground like this:

Trigger:
  • Default Abils
    • Events
    • Unit - A unit Learns a skill
    • Conditions
    • Actions
    • For each (Integer A) from 1 to 11, do (Actions)
    • Loop - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Learned Hero Skill) Equal to Strength
    • Then - Actions
    • Hero - Create Tome of Strength and give it to (Learning Hero)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Learned Hero Skill) Equal to Agility
    • Then - Actions
    • Hero - Create Tome of Agility and give it to (Learning Hero)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Learned Hero Skill) Equal to Intelligence
    • Then - Actions
    • Hero - Create Tome of Intelligence and give it to (Learning Hero)
    • Else - Actions


EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT

I fixed using this:
Trigger:
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Learned Hero Skill) Equal to Strength
    • Then - Actions
    • Hero - Create Tome of Strength and give it to (Learning Hero)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Learned Hero Skill) Equal to Agility
    • Then - Actions
    • Hero - Create Tome of Agility and give it to (Learning Hero)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Learned Hero Skill) Equal to Intelligence
    • Then - Actions
    • Hero - Create Tome of Intelligence and give it to (Learning Hero)
    • Else - Actions

But am wanting to know if you can do it with the ability itself
_________________________________________________________________
Notice how I usually always start my threads with OK?
 

dianamod27

Member
Reaction score
1
Are you looking for this action?

Trigger:
  • Hero - Modify Strength of (Learning Hero): Add 1


Otherwise you just have to use the Attribute Bonus ability. Using the Item Strength Gain ability just gives your hero the ability to give strength to whoever "picks him up."
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
TBH... Yes I was looking for that... But fixed with the other one. although I will change it to that.
 
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