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 havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    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.

[General] Engery Towers - Chain Lightning Upgrade & Ability

Discussion in 'World Editor Help Zone' started by Sims, Jun 19, 2018.

  1. Sims

    Sims

    Joined:
    Jun 1, 2018
    Messages:
    9
    Resources:
    0
    Resources:
    0
    Alrighty! I'm trying to create a chain lightning upgrade that allows the Energy Towers from Human Campaign to chain between targets.

    I've already got a upgrade that's link to the towers and researchable at the lumbermill.

    But it's ability isn't functioning as intended.

    Tried hijacking the lighting attack as it chains for the towers but it removes the attack effect from the towers and doesn't chain.

    Chain lightning spell does seem to partly work but doesn't automatically replace the towers attack like burning oil would and attack automatically.

    Lightning attack has been placed within abilities and it's respected upgrade that is used by the tower.

    Would anyone happen to be help me figure this one out as it's rather annoying as it's my last tower to get working.
     
  2. nedio95

    nedio95

    Joined:
    Mar 24, 2011
    Messages:
    1,055
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Look at the night elf Huntress. That thing has bouncy/chain attack. See how Blizzard have done that.

    The skill/ability is just a dummy. The bouncy attack comes from the unit attack itself.
    There should be tutorial around how to do it. Most probably in "General Mapping tutorials" as it should not involve any scripts.

    regards
    -Ned
     
  3. Kaijyuu

    Kaijyuu

    Joined:
    Jun 2, 2004
    Messages:
    848
    Resources:
    0
    Resources:
    0
    I don't think it's possible to combine bounce attacks with the lightning attack graphic.

    If you want damage to still respect armor/etc, use bounce attacks like the Huntress/etc and change the projectile art to a regular projectile. The shaman attack projectile would work fine.

    If you don't care about that, you can cast the chain lightning spell every time it attacks (either via dummy caster or using orb of lightning, though notably the latter is buggy when it comes to auto acquiring targets).
     
  4. nedio95

    nedio95

    Joined:
    Mar 24, 2011
    Messages:
    1,055
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Probably not with the chain-lightning or proper lightning and not with the same effect, but there are some units that use lightning-like attacks, usually instant; one of the Revenants and Lizards I think ?
    With enough bugging around a very similar effect should be achieve-able.

    regards
    -Ned
     
  5. Kaijyuu

    Kaijyuu

    Joined:
    Jun 2, 2004
    Messages:
    848
    Resources:
    0
    Resources:
    0
    Thunder Lizards and Chimeras, yes. There's an ability that replaces their attack with the lightning one.

    That ability supports any projectile art replacement, so it's useful for any dynamic projectile system.
     
  6. The_Silent

    The_Silent

    Joined:
    Feb 4, 2008
    Messages:
    2,900
    Resources:
    159
    Models:
    49
    Icons:
    89
    Packs:
    8
    Skins:
    12
    Maps:
    1
    Resources:
    159
    Missile (Bounce) does sadly not work with lightning effects.

    The simple solution is to use: "Item Attack Black Arrow Bonus", change it to a unit ability (it is an item ability), and change the "Effect Ability" to a custom version of "Chain Lightning".

    The slightly more advanced version is to create a dummy unit on attack, and order it to cast chain lightning on the attacked target. But this works best with a damage detection system and requires triggers and a dummy caster unit.