1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Defend Hero Ability

Discussion in 'World Editor Help Zone' started by Sh4de, Sep 26, 2012.

  1. Sh4de

    Sh4de

    Joined:
    Dec 22, 2007
    Messages:
    103
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Is there any way I can get Defend to reduce all damage types? Only Piercing and magic are reduced. I also want to add a shield bash passive to the hero
    when active; however, I'm unsure as to how I can trigger that differently per level of the Defend ability. No condition I'm aware of checks the level of an
    ability when that ability is cast, thus my dilemma.
     
  2. TwoVenomous

    TwoVenomous

    Joined:
    Sep 11, 2011
    Messages:
    1,174
    Resources:
    1
    Skins:
    1
    Resources:
    1
    as for giving shield bash passive and condition that checks the level of ability.. here it is ..

    Defend
    • Untitled Trigger 001
      • Events
        • Unit - A unit Starts the effect of an ability
      • Conditions
        • (Level of (Ability being cast) for (Triggering unit)) Equal to 1
        • (Ability being cast) Equal to Defend
      • Actions
        • Unit - Add Shield Bash to (Triggering unit)


    you can find the condition on "Integer comparison"

    NOTE : if you want to add passive abilities to a unit, you should put it in a spellbook then add the spellbook to the unit and disable the spellbook or else you would lost 1 abilities slot for that abilities

    about reducing all type damages, i'm not really sure ...
     
    Last edited: Sep 26, 2012
  3. Elfansoer

    Elfansoer

    Joined:
    Aug 26, 2012
    Messages:
    122
    Resources:
    0
    Resources:
    0
    Well, you can try by mixing "Defend" with "Spiked Carprace"...
    (Yeah, that's the one i'm used...)
     
  4. Sh4de

    Sh4de

    Joined:
    Dec 22, 2007
    Messages:
    103
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Thanks for the help, I'm still having issues though... I tried triggering the adding of abilities; however, no changes I make seem to have any effect. I
    believe the [Event - Unit starts the effect of an ability] is not being triggered when I use the defend ability. Here's the trigger I made.
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Shield Guard
      • (Triggering unit) Equal to Darium
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Level of Shield Guard for (Triggering unit)) Equal to 1
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ShieldGuardOn Equal to False
          • Then - Actions
            • Set ShieldGuardOn = True
            • Unit - Set level of Shield Bash for (Triggering unit) to 2
            • Unit - Set level of Shield Deflection for (Triggering unit) to 2
          • Else - Actions
            • Set ShieldGuardOn = False
            • Unit - Set level of Shield Bash for (Triggering unit) to 1
            • Unit - Set level of Shield Deflection for (Triggering unit) to 1
      • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Level of Shield Guard for (Triggering unit)) Equal to 2
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ShieldGuardOn Equal to False
          • Then - Actions
            • Set ShieldGuardOn = True
            • Unit - Set level of Shield Bash for (Triggering unit) to 3
            • Unit - Set level of Shield Deflection for (Triggering unit) to 3
          • Else - Actions
            • Set ShieldGuardOn = False
            • Unit - Set level of Shield Bash for (Triggering unit) to 1
            • Unit - Set level of Shield Deflection for (Triggering unit) to 1
      • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Level of Shield Guard for (Triggering unit)) Equal to 3
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ShieldGuardOn Equal to False
          • Then - Actions
            • Set ShieldGuardOn = True
            • Unit - Set level of Shield Bash for (Triggering unit) to 4
            • Unit - Set level of Shield Deflection for (Triggering unit) to 4
          • Else - Actions
            • Set ShieldGuardOn = False
            • Unit - Set level of Shield Bash for (Triggering unit) to 1
            • Unit - Set level of Shield Deflection for (Triggering unit) to 1
      • Else - Actions

    I originally tried putting the 2 passives in Spell books and disabling it, but due to the trigger not running, I thought I might not have been able to Level up
    abilities in the spell book. I ended up adding an additional level to each of the passives and making their level 1 have no effect. That's where I am currently in this dilemma.
     
  5. gorillabull

    gorillabull

    Joined:
    Jul 17, 2011
    Messages:
    1,368
    Resources:
    2
    Spells:
    2
    Resources:
    2
    for defend you have to use the event unit is issued an order with no target
    if issues order == defend then...
     
  6. Sh4de

    Sh4de

    Joined:
    Dec 22, 2007
    Messages:
    103
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Problem Solved! thanks guys