Changing from melee attack to ranged attack

  • Thread starter Thread starter kenyi
  • Start date Start date
K

kenyi

Guest
Is there ways to change a unit's attack type from melee to ranged whenever it carries an item??
 
You'll need a trigger that toggles between "Researched" and "Available" status for an upgrade that switches between "Attack 1" and "Attack 2"
 
Not in any way that could be considered remotely elegant or simple.'

Duwenbasden said:
You'll need a trigger that toggles between "Researched" and "Available" status for an upgrade that switches between "Attack 1" and "Attack 2"
Is there such an upgrade? And what would you do about dropping the item, since you can't unlearn a research?
 
I think it doesnt work, i have tried. I cannot undo the research.
 
its actualy quite siple and ehres how u make a mele attack ranged. . .

there is something calld "aquisition range" which is like a seconds range, it cant limit the range to teh units attack. . . what u do is this, set it low to a mele attack range, and then have an ability called ranged, that basicaly
"change(es) aquizition range to 800 for casting unit"
and again a mele one that dose
"change(es) aquizition range to 100 for casting unit unit"
and make the regular range for the unit like 1600 if u want
the event is simply a unit casts ability
and the only condition is speel being cast is equal to (ranged, mele)

:) hope that makes things simpeler
 
That's an idea, but the melee attack won't have any of the melee sounds, which will sound kind of bad when attacking.

>Duwenbasden thats the creepiest looking picture ever i aint joking
:eek: :mad: Now feel the wrath of the Horde!
 
guitarplay said:
its actualy quite siple and ehres how u make a mele attack ranged. . .

there is something calld "aquisition range" which is like a seconds range, it cant limit the range to teh units attack. . . what u do is this, set it low to a mele attack range, and then have an ability called ranged, that basicaly
"change(es) aquizition range to 800 for casting unit"
and again a mele one that dose
"change(es) aquizition range to 100 for casting unit unit"
and make the regular range for the unit like 1600 if u want
the event is simply a unit casts ability
and the only condition is speel being cast is equal to (ranged, mele)

:) hope that makes things simpeler

However, that means that the melee unit will not notice enemies on his own unless they're already within his attack range. Which is bad when his attack range is less than 100 (melee).
 
i dident think about that effecct. . . ive never actualy made the trigger sry ive just read a different post where thats wahat was said to di, maby there is a way to get around that wiht a trigger ??, like a unit come withing 1600 of any unit of unit type. . . u get the point, but i dont knoiw what the action would be sorry
 
Even if he shrinks the acquisition range, it will appear as if the unit was shooting the target.
 
Mabee you could have the item use the "Barrage" ability? Simple, but (should be) effective
 
There's no way except having two units.

It's very easy, go into your object editor and right click the unit, hit "copy" then "paste" the newly pasted unit will be the one on the bottom. Add an editor suffix to help you remember this, change it's attackt ype to "Missile" and give it a missile model (like an arrow or something).

Then you just need a trigger that looks something like this.
Code:
Event - Unit picks up an item.
Condition - Unit equal to (your unit)
             - Item equal to (your item)
Action - Replace (your unit) with (new unit)

You might also want to make a trigger to catch the XP/Level/items of the old hero before replacing it. To do that, you'll need variables for each stat you want to store.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top