Triggered Ability To Raise Strength

I_RULE_YOU

New Member
Reaction score
34
I'm having a rather embarrising problem which I can't seem to solve. I'm making an ability based off Spiked Carapace which I want to raise the defense and strength of the hero. So I made a seperate ability based off Item Strength Bonus, and triggered it to be added to the hero via the way below:

Trigger:
  • Frozen Fortitude
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Frozen Fortitude
    • Actions
      • Unit - Add Frozen Fortitude Strength to (Triggering unit)
      • Unit - Set level of Frozen Fortitude Strength for (Triggering unit) to (Level of Frozen Fortitude for (Triggering unit))


The Frozen Fortitude Strength is the Item ability, it has 7 levels and adds +5 for each level. Yes, I'm sure I entered the Object data fields correctly. Problem is, when I learn the skill, it only adds +5 Strength, no matter how high the level is. I also tried another trigger, which had the same result:

Trigger:
  • Frozen Fortitude
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Frozen Fortitude
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Frozen Fortitude for (Triggering unit)) Equal to 1
        • Then - Actions
          • Unit - Add Frozen Fortitude Strength to (Triggering unit)
        • Else - Actions
          • Unit - Set level of Frozen Fortitude Strength for (Triggering unit) to (Level of Frozen Fortitude for (Triggering unit))


I really don't know why this isn't working as I've made a myriad of similar ability adding triggers like this which have worked perfectly. + rep for help.
 

Charapanga

New Member
Reaction score
46
learns a skill is only when it first learns it, not levels it, what you gotta do is set a periodic trigger that gets the level of your ability and sets the other one to the same level, and when the ability is level 3 you can destroy the trigger to prevent lag
 

YourFace

<span style="color:#9C9C9C;"><strong>Runner Up - T
Reaction score
91
It's learning the skill not putting points into it
 

I_RULE_YOU

New Member
Reaction score
34
I'm 99% certain your both mistaken, I have other spells which do this, its not a unit learns an ability, it's a unit Learns a Skill, which can be a skill point also. My other working triggers support this.
 

YourFace

<span style="color:#9C9C9C;"><strong>Runner Up - T
Reaction score
91
try putting a periodic trigger that checks for the level
maybe that can help

also save the level to an integer variable, maybe that can help
 

I_RULE_YOU

New Member
Reaction score
34
...........yes but I know that isn't necessary, I have other triggers working using the same methods........
 

Bjerrum

New Member
Reaction score
12
well... i tryed this one:

Code:
lol
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Devotion Aura
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Devotion Aura for (Triggering unit)) Equal to 1
            Then - Actions
                Unit - Add Attribute Bonus to (Triggering unit)
            Else - Actions
                Unit - Set level of Attribute Bonus for (Triggering unit) to (Level of Devotion Aura for (Triggering unit))

where i based the bonus on attribute bonus, and it worked as i it should.. (i attached map)

another way around could be simply add the strength like this: (that is af you dont care if the bonus is displayed or not.)
Code:
lol Copy
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Devotion Aura
    Actions
        Hero - Modify Strength of (Triggering unit): Add 5

Hope it helps
Bjerrum
 

Attachments

  • Add 5 strenght when learning a ability.w3x
    16.3 KB · Views: 119

D.V.D

Make a wish
Reaction score
73
Why not just use this action?
Code:
Hero - Modify Strength of (Triggering unit): Add 5

It works good.
 

I_RULE_YOU

New Member
Reaction score
34
I will use that. Thank you very much Bjerrum, and I will use themap if I need to (Gonna try the stat modify). +rep :D
 
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