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. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  4. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  5. The results are out! Check them out.
    Dismiss Notice
  6. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  7. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  8. 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.

A ranged and a melee atk.

Discussion in 'World Editor Help Zone' started by CursedKnight, Aug 10, 2007.

  1. CursedKnight

    CursedKnight

    Joined:
    Aug 2, 2006
    Messages:
    19
    Resources:
    0
    Resources:
    0
    How do u make a unit normally use a ranged attack and if the enemy is within say like 50 range, it do melee attack instead? Btw plz refer me to sumwhere else if this question had been answered some where ele.
     
  2. Unscrewed_Magic

    Unscrewed_Magic

    Joined:
    Oct 8, 2005
    Messages:
    409
    Resources:
    3
    Maps:
    3
    Resources:
    3
    Most units have a 1st and 2nd attack.

    Make the unit's first attack melee and its second ranged.

    I belive the dryad unit has this.
     
  3. Mechanical Man

    Mechanical Man

    Joined:
    Jan 18, 2005
    Messages:
    5,382
    Resources:
    39
    Models:
    30
    Icons:
    3
    Packs:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    39
    That will not achieve the desired effect.
     
  4. Unscrewed_Magic

    Unscrewed_Magic

    Joined:
    Oct 8, 2005
    Messages:
    409
    Resources:
    3
    Maps:
    3
    Resources:
    3
    Is that not what the dryad does ?
     
  5. Mechanical Man

    Mechanical Man

    Joined:
    Jan 18, 2005
    Messages:
    5,382
    Resources:
    39
    Models:
    30
    Icons:
    3
    Packs:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    39
    Dryad throws spears from the distance and from melee.
     
  6. MagnusCalgar

    MagnusCalgar

    Joined:
    Jul 30, 2007
    Messages:
    79
    Resources:
    1
    Maps:
    1
    Resources:
    1
    you can use the 2 attacks option and simply give the ranged attack a min range of say 75ish doing this with say a melee model with added effects to the ranged attack should give you the desired effects
     
  7. Mechanical Man

    Mechanical Man

    Joined:
    Jan 18, 2005
    Messages:
    5,382
    Resources:
    39
    Models:
    30
    Icons:
    3
    Packs:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    39
    The only way is to replace the unit type.
     
  8. CursedKnight

    CursedKnight

    Joined:
    Aug 2, 2006
    Messages:
    19
    Resources:
    0
    Resources:
    0
    er i still dun get wat i am suppose to do.
     
  9. Taur

    Taur

    Joined:
    Aug 15, 2004
    Messages:
    719
    Resources:
    5
    Models:
    3
    Maps:
    2
    Resources:
    5
    You cant do it that way, minimum attack range applies for both attacks. You'd have to trigger a system that uses orbs with 2 attacks (one ranged, one melee) and then removes or adds the orbs based on wether the unit is in range or not. But this pretty annoying, and not something you can really show without making the entire system.
     
  10. Unscrewed_Magic

    Unscrewed_Magic

    Joined:
    Oct 8, 2005
    Messages:
    409
    Resources:
    3
    Maps:
    3
    Resources:
    3
    Could we use the AI to do this ?
     
  11. Mechanical Man

    Mechanical Man

    Joined:
    Jan 18, 2005
    Messages:
    5,382
    Resources:
    39
    Models:
    30
    Icons:
    3
    Packs:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    39
    One other way is not have a dummy unit cast an ability based on drunken haze modified to disable ranged attacks.
     
  12. Mecheon

    Mecheon

    Joined:
    Mar 31, 2004
    Messages:
    4,974
    Resources:
    10
    Models:
    10
    Resources:
    10
    ... Don't double post Wrath, and especially don't just make useless posts that either copy things other people have said or add useless information that has nothing at all to do with the topic
     
  13. MagnusCalgar

    MagnusCalgar

    Joined:
    Jul 30, 2007
    Messages:
    79
    Resources:
    1
    Maps:
    1
    Resources:
    1
    what is it EXACTLY you are trying to do here

    this is more complicated than it sounds as units will always use their primary attack if it is viable even if say a secondary attack that can only be used in melee would do more damage

    what is the point of what you are trying to do and what exact goals are you trying to achieve
    that would make it easier to help you
     
  14. Quiet_player

    Quiet_player

    Joined:
    Aug 12, 2007
    Messages:
    6
    Resources:
    0
    Resources:
    0
    There is a simpler way, but it's trublesome to play it (needs a good micro).
    Druid morph skill, one unit with ranged attacks one with not.

    And, if you are too lazy for download extra icons, the nightelves have the bows range upgrade one.
    ;)
     
  15. CursedKnight

    CursedKnight

    Joined:
    Aug 2, 2006
    Messages:
    19
    Resources:
    0
    Resources:
    0
    I wanted to make that the range atk is what the unit would normally do, and if the unit is too close to the enemy, then it cannot use its range atk and instead do a melee atk that is chaos dmg and more powerful.
     
  16. CursedKnight

    CursedKnight

    Joined:
    Aug 2, 2006
    Messages:
    19
    Resources:
    0
    Resources:
    0
    Regarding the druid morph idea, will the items, exp, etc... be retained after morph? or do u get a completely new hero at lvl 1?
     
  17. YoshiRyu

    YoshiRyu

    Joined:
    Jun 26, 2007
    Messages:
    686
    Resources:
    0
    Resources:
    0
    answer: demon hunter ultimate spell
     
  18. Deathclaw24

    Deathclaw24

    Joined:
    May 3, 2006
    Messages:
    81
    Resources:
    2
    Icons:
    2
    Resources:
    2
    what u could do is like say its a rifleman shooting you could make a trigger that does: A unit is attacked -- Attacking unit equal to rifleman - Distance between position of attacked unit and attacking unit equal to or less than 100 -- *Then you could make it do more dmg cuz of the range* (Order Attacking unit to damage attacked unit dealing 15 dmg of type pierce) or pause the rifleman and play an animation like stand 3 where he pulls his gun up and reset his animation so it looks like he jabs the enemy with the end of his gun... thats what i did for a melee animation for a gun game im making!
     
  19. Ghost765

    Ghost765

    Joined:
    Jun 23, 2007
    Messages:
    3,162
    Resources:
    1
    Maps:
    1
    Resources:
    1
    well this is wut im doin for my marines and stuff its basically the morph ability but for the melee attack make the atk animation be "spell" thisll make the marine when morphed into melee mode do an upward cut with a boynet(or another weapon) and itll look cool i guess... but it does require some micro and some peple might not bother with it unless melee is way better than ranged like better dmge or something. well thats all i can help :)
     
  20. Deathclaw24

    Deathclaw24

    Joined:
    May 3, 2006
    Messages:
    81
    Resources:
    2
    Icons:
    2
    Resources:
    2
    Morph is a useless spell for this, all you need is a trigger to detect range and pick all units infront of the unit and damage them and even knock them back or stun. If you do it with morph your guy will just gain close range attack then he'll have to cast morph back to ranged form.

    If you want I could send a quick demo map showing you how it works.