1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. The member Kam is making HIVE coasters. Take a look. For every coaster you buy, Hive gets $1.
    Dismiss Notice
  3. Buy it, use it, break it, fix it, trash it, change it, mail - upgrade it. Join (Optionally) Paired Techtree Contest #11 - Techno Magic now!
    Dismiss Notice
  4. Dismiss Notice
  5. Hero Contest #8 is up and running! This time it's a joint contest between artists and coders. Go here for team matchmaking.
    Dismiss Notice
  6. The ninth Concept Art Contest has launched. Enter now!
    Dismiss Notice
  7. Our first StarCraft contest, The Galaxy Terraining Contest #1 - World Wonders has started. Enter to show off your Galaxy Editor skills and win a custom rank icon among other things.
    Dismiss Notice
  8. Ever wanted to get your sets ready for fast texturing while still having fun? Now it is possible with our newest Mini-Texturing Contest.
    The Skeleton Units need your dire help!
    Dismiss Notice

Passive ability with a cooldown (attack-based)

Discussion in 'General Mapping Tutorials' started by Arisato, Feb 9, 2012.

  1. Arisato

    Arisato
    Joined:
    Dec 17, 2009
    Messages:
    980
    Tutorial
    Passive Abilities With Cooldown

    Tutorial
    Introduction

    I seen many people posted some threads about it and most people who knew how to make a passive ability with a cooldown wouldn't answer it, so here are the tricks to do this yourself (example:Geminate Attack from DotA!(Well IceFrog's spell is triggered too, but making the passive cooldown is the same like the one provided in this tutorial))

    Well the trick is actually simple, NO TRIGGERING SKILLS NEEDED!
    Yes i mean it, even if you have no actual knowledge about triggering, and you only know HOW to use Object Editor etc etc, you can make it.


    Start Here

    The Actions


    So lets get started

    What will you be needing:
    -World Edit
    -Knowledge about the Object Editor
    -A Brain

    First of all , create an ability which you want it to be cast passively , doesn't matter if the ability is an active ability, i will use chain lightning as my passive ability,and i will name the ability "Twin Lightning", doesn't matter.

    Here's the image:
    Image
    [​IMG]


    Now create an ability based off the Orb of Lightning.

    Here's the image:

    Prove
    [​IMG]


    Now here's the deal

    Set the "Data - Effect Ability" in the ability you've just made to Twin Lightning or what name/ability you want, you can set the chance too, it's all yours

    [​IMG]

    I guess that covers it all, let me show you a gameplay screenshot if you don't believe me

    Twin Lightning Learned
    [​IMG]


    Twin Lightning Casted
    [​IMG]


    Twin Lightning Cooldown
    [​IMG]


    Notes
    Notes:

    The icon will appear to be darker than the actual icon. To fix this, you should import a custom version of the icon and make the regular icon have a path prefix of "DISPAS" and make the actual DISPAS have a path prefix of "PAS". For example, if you have a custom version of an icon named "MyPassiveAbility.blp", then you would make the normal PASBTN have a path of:
    ReplaceableTextures\CommandButtonsDisabled\DISPASMyPassiveAbility.blp

    And make the other disabled version have a path of:
    ReplaceableTextures\CommandButtons\PASMyPassiveAbility.blp

    Then in the object editor, assign it to the icon with the path:
    ReplaceableTextures\CommandButtons\PASMyPassiveAbility.blp

    Note that this may appear as green when the game is paused. (I'm not positive about this, but I assume that would happen) However, the problem where it is darkened will be fixed.

    Also note that this technique as a whole is subject to whatever bugs/quirks the orb abilities already have.


    Test Map
    Click Here
     

    Attached Files:

    Last edited: Jun 28, 2012
  2. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,122
    Images in the
    tags are not showing up for me. Make sure they are attached to the hiveworkshop and not an external image hosting website.
     
  3. watermelon_1234

    watermelon_1234
    Joined:
    Nov 18, 2007
    Messages:
    1,068
    The reason images aren't showing is because he didn't put any image link there. :p
     
  4. Arisato

    Arisato
    Joined:
    Dec 17, 2009
    Messages:
    980
    Lol, it works for me?

    Updated, image should appear ^^
     
  5. WaterKnight

    WaterKnight
    Joined:
    Aug 18, 2009
    Messages:
    3,800
    There are many more types of passive abilities than the crappy onAttack orb.
     
  6. Arisato

    Arisato
    Joined:
    Dec 17, 2009
    Messages:
    980
    What does that have to do with the tutorial?
     
  7. WaterKnight

    WaterKnight
    Joined:
    Aug 18, 2009
    Messages:
    3,800
    The title does not fit. I was hoping for a tutorial how to generally make passive abilities with cooldown.
     
  8. fakedrake

    fakedrake
    Joined:
    Apr 5, 2010
    Messages:
    36
    The reason that icon gets darker when you learn it is that it automatically becomes a DISBTN type icon. So use a brighter DISBTN can solve the problem, but then when you open the menu then everything goes dark except this icon XD, which is kinda annoying
     
  9. Arisato

    Arisato
    Joined:
    Dec 17, 2009
    Messages:
    980

    You can set the ability to be a channel ability , and trigger what it would do, it will still have the cooldown, this is flexible if you don't know.

    And Orb effects destroy this skill, missile modifiers don't seem to destroy this ability, (tested a poison arrow + this)

    @fakedrake, you can change the BTN into brighter and leave the DISBTN dark, i think that's how i solved it? or vice versa?i can't seem to remember
     
  10. WaterKnight

    WaterKnight
    Joined:
    Aug 18, 2009
    Messages:
    3,800
    And it will still go only onAttack. But passives can also fire on other ocassions such as a nearby unit dies, the unit gets healed, receives damage/drops below life, casts another spell/uses an item, kills a unit, idles, ...

    The problem is that you cannot trigger the ability instantly via trigger, not immediately perform an attack against some dummy unit or get to cooldown otherwise. At least, I do not know of such a way and was hoping to get some clue as I was reading the thread title.

    Btw, orb abilities have another bug. If a unit attacks automatically out of a nearby enemy aggravating, not because you ordered it, it won't have an order and orb effects won't trigger then.
     
  11. Arisato

    Arisato
    Joined:
    Dec 17, 2009
    Messages:
    980
    then you can trigger it if a unit is attacked, then order it to attack, but check if the unit has an ability that needs to be ordered to trigger the passive.
     
  12. Remixer

    Remixer

    Map Reviewer

    Joined:
    Feb 19, 2011
    Messages:
    1,426
    Maybe you could use "custom" icon and use "wrong" paths so the DISBTN icon looks like BTN version? Could work.
     
  13. Adiktuz

    Adiktuz
    Joined:
    Oct 16, 2008
    Messages:
    9,699
    it should be entitled, "Making an onAttack passive ability with cooldown"
     
  14. Arisato

    Arisato
    Joined:
    Dec 17, 2009
    Messages:
    980
    @Yes, it could work.

    @Adiktuz That's kinda too long.
     
  15. Adiktuz

    Adiktuz
    Joined:
    Oct 16, 2008
    Messages:
    9,699
    but that's the best title for this cause just passive ability with cooldown is misleading... XD...
     
  16. HammerFist132

    HammerFist132
    Joined:
    Mar 22, 2012
    Messages:
    1,314
    Man I have problem i have world edit and knowledge but i have no brain can someone help me xD
     
  17. Arisato

    Arisato
    Joined:
    Dec 17, 2009
    Messages:
    980
    dafuq did i just read
     
  18. eubz

    eubz
    Joined:
    Mar 29, 2011
    Messages:
    3,100
    Is there a need for passive abilities to cooldown?
     
  19. WaterKnight

    WaterKnight
    Joined:
    Aug 18, 2009
    Messages:
    3,800
    Sure, especially to require skill and not just having permanently boosted stats or random and unreliable proc-chance.
     
  20. defskull

    defskull
    Joined:
    Mar 27, 2008
    Messages:
    7,969
    You obviously does not play many types of custom map just yet (especially AoS-type which include this special features and add unique gameplay to the map)

    On Thread
    When I first enter this thread, I was hoping that when my unit walks about 500 range away, it will trigger this ability itself and has its cooldown (judging by the thread topic name...)

    But, it's truly misled me as this only occurs when it's onAttack by referring to WaterKnight

    Can you please change the title as to avoid further confusion for newcomers

    Something like: Making a passive ability with a cooldown (attack-based) ?