• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Switching System

Status
Not open for further replies.
Level 4
Joined
Jan 3, 2009
Messages
102
is there any way i can make a system that you press a button and is changes you from attacks like from Melee to Ranged and Ranged to Melee.
 
Level 8
Joined
Aug 3, 2008
Messages
391
It's possible to use item abilities that automatically makes attack range.

But, here's another way. (it's more fun for me)

First, you gotta make two versions of the unit. One the melee version, one the range.

Then, make an ability (in this case I'll use the name "Switch") called Switch.

Then, create two abilities, both based on the Chaos ability (I'll name the "SwitchToMelee" and "SwitchToRange").

Set Data - New Unit Type for "SwitchToMelee" into the melee version of the unit.

Set Data - New Unit Type for "SwitchToRange" into the ranged version of the unit.

Then operate it via trigger. If the unit casts an ability, and ability being cast equal to "Switch" and the unit is melee, then remove the ability "SwitchToMelee" from the unit and replace it with "SwitchToRange". And the other way around.

It's fun. :grin:
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
So if I understand your way correctly: You create a Switch ability and when it's used it'll replace the unit to the other version of itself (melee/ranged)? If that's true, it could get annoying though. Imagine being in battle, first attacking ranged and then when they get close, you want to switch to melee. It'll probably attack the closest unit when you replace your unit, so there's a good chance it'll change targets when switching. I'd imagine that that would become quite annoying after a while.
 
Level 7
Joined
Oct 14, 2008
Messages
340
So if I understand your way correctly: You create a Switch ability and when it's used it'll replace the unit to the other version of itself (melee/ranged)? If that's true, it could get annoying though. Imagine being in battle, first attacking ranged and then when they get close, you want to switch to melee. It'll probably attack the closest unit when you replace your unit, so there's a good chance it'll change targets when switching. I'd imagine that that would become quite annoying after a while.

That's not bad at all in my opinion, it's one click, and if you know it'll happen you can be prepared for it. He could use triggers to maintain a target though if that's really a problem.
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
It would be a problem. We map-makers don't see it as much of a problem, because it's just a minor annoyance to us. But to a player it'll get terribly annoying pretty quickly, especially if he counts on it to work. I don't think you can lock the target, since as soon as you cast the ability (which is the event for when you want to save the target), there's no more target to save, since there's an ability with no target being cast.
 
Level 4
Joined
Jan 3, 2009
Messages
102
yeah that will prob work in all but is there a program i can download perchance or can you make your ability's with triggers and such so i can test it?
 
Level 8
Joined
Aug 3, 2008
Messages
391
So if I understand your way correctly: You create a Switch ability and when it's used it'll replace the unit to the other version of itself (melee/ranged)? If that's true, it could get annoying though. Imagine being in battle, first attacking ranged and then when they get close, you want to switch to melee. It'll probably attack the closest unit when you replace your unit, so there's a good chance it'll change targets when switching. I'd imagine that that would become quite annoying after a while.

I didn't think about that. Or you could do it DotA's Troll Warlord way, which is to make two versions of the unit (one ranged, one melee duh) then make a "Switch" ability based on the Bear Form. That seems to work pretty well.
 
Level 7
Joined
Oct 14, 2008
Messages
340
Well lets take into consideration how many people play dota, and then lets take a hero like.. I don't know.. Morphling. When you cast his waveform spell, you come out of waveform in the target area, you'll aquire a new target and so will anyone that was attacking you, but experienced players know this and adjust.

So.. I really don't think it would bother people that much once they understood it
 
Status
Not open for further replies.
Top