• 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.

What is the best way to to this?

Status
Not open for further replies.
Level 10
Joined
Dec 17, 2011
Messages
355
Hi!

I going to create a combat system which is like: the "hero" have to select a target (probably with clicking on it) and then whenever he cast a spell the target unit of ability being cast will be automatically the "target".
So the question is: is the sole way to do this to create dummy spells, place them to the unit's abilities bar, and make kind of channel based abilities to each, which will be fired when the hero caststs the dummy one? In this case i have to make like 2x100 abilities which sounds horrifying! :ogre_rage: So please help if you know some other way!
 
Level 7
Joined
Jan 22, 2013
Messages
293
Hi!

I going to create a combat system which is like: the "hero" have to select a target (probably with clicking on it) and then whenever he cast a spell the target unit of ability being cast will be automatically the "target".
So the question is: is the sole way to do this to create dummy spells, place them to the unit's abilities bar, and make kind of channel based abilities to each, which will be fired when the hero caststs the dummy one? In this case i have to make like 2x100 abilities which sounds horrifying! :ogre_rage: So please help if you know some other way!

Can't really say yes or no, or anything it all depends on the spell your making at that time.
 
if im understanding u correctly make a spell called target. make it based on channel. when it is cast set Target[PLayer index] = the target of spell target. then u have to make all the other spells and trigger them. cause them to damage target when cast. this will only be MPI so when target is cast by another unit of the player it changes the target of all other spells cast by that player.
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
You will probably need to base all your spell off Channel ability.
One will be "Target" ability like deathismyfriend wrote, but the rest are actual "dummy abilities" that fire your direct spells. You can't for use target spells like fire bolt, or rain of fire, etc. because these spells require target (unit or ground, doesn't matter), which would defeat the purpose of your "Target" ability.

The only problem I see is that even though you will select target through Target ability and then after X seconds you cast your spell, it will look weird, because the unit won't face the target (i.e. the caster will shoot the projectile behind himself if the target happens to be behind caster).
 
You could abuse the neutral shop ability to place dummy buttons on enemy units' command card. Then, when the player selects the enemy with the ordinary wc3 unit selection, you can click on the dummy unit/item in the shop window to trigger your spells.
Cool thing about this is, that there's no useless command buttons like move/attack/etc. in the command card when doing so.
Other cool feature is that you can use gold/lumber/food as spell resources.
 
Status
Not open for further replies.
Top