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:
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:
EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT
I fixed using this:
But am wanting to know if you can do it with the ability itself
_________________________________________________________________
Notice how I usually always start my threads with OK?
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?