I was wondering if there was such a way to where a ranged hero attacks with his/her bow at 100-500 range and switches a sword at melee attack when they are 0-100 range. I am using this as a new hero for my map and I am curious if this can be done and how.
my guess would be to make two heroes and give the first one an ability based off the tinker's robo-tinker ability. one hero being the ranged and the second being the melee hero.
i'm sure some one here will make up something complicated with triggers though.
Oh okay, So your saying they click the ability and they become melee? And then they check it again and then they are ranged? That actually sounds good to me and I will use that also, but I was curious if there was a way to make it so they switch when they become in range of the attacking unit.. So its automatic? If you understand what I am asking for..
You could also use a trigger, with the event of "A unit comes within range of unit" and whenever the trigger fires, replace it with the opposite version of your unit. Doing this would require two units, one ranged one melee.
Yes, there is a way to make it auto. All you have to do is a trigger or two.
Code:
Events:
Unit - Unit comes within X.XX of <Ranged>
Conditions:
Unit - (Entering Unit) is an enemy of (Owner of (<Ranged>))
Actions:
Unit - Replace <Ranged> with <Melee>
I'm not sure if that will work yet. Test it. I'm currently installing TFT so I can't test it myself.
Yeah I was thinking of that trigger but I have three thoughts, one is won't the hero lookn a little glitchy being replaced with a trigger like that? Second, The hero level needs to be the same when switched. And I don't wan't it neccesarily when the hero comes to an enemy I want it to where when they order an attack and he attacks determened on the range..
Ex Wrong: Hero A (Ranged) attacks hero B (Enemy), Hero B come to hero A as melee close to him, Hero A switches targets to hero C (Enemy) and then instead of Ranged Hero A has to run to hero C...
Do you understand what I am trying to say?
Sevion I will try and test that trigger out anyways but how do I keep level and expierence the same?
What about the "I don't wan't it neccesarily when the hero comes to an enemy I want it to where when they order an attack and he attacks determened on the range.."
And I am not sure how I would use variables in this situation... I am sorry I am pretty much a noob..
You could use the unit in ranged trigger combined with an Orb ability. Set your hero to having 2 attacks, 1 enabled by default. The field Attack Index Enabled set to 2. Then add it/remove it when you want to switch range.
Yeah, well that would be like just giving the unit an "Avatar" ability switching types of attacks, I will probably use that if we cant find a trigg.. Thanks for your help guys.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory
I will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!
I just got to watch the video because even though I was there I was trying to work out tech problems with the chat since I was the social media guy so I was distracted but check it out guys the video is super fucking great!