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

Spell Request

Status
Not open for further replies.
Level 3
Joined
Apr 30, 2013
Messages
22
Thank you guy for spend times to read this topic. I have 2 question about spell.
First question, when i create a spell in a trigger and i create a dummy and how to make dummy bigger over time ?
Second question, how to make a spell like this: Every third attack, we have a special attack like stunning attack or slow attack or more damage attack ?


P/S: Sorry for my bad English :grin:
 
Level 9
Joined
Apr 19, 2011
Messages
447
You can change the size of a dummy with this action:
  • Animation - Change Your_Unit's size to (X%, Y%, Z%) of its original size
To make your unit bigger over time, you could use a loop to gradually increase its size.

About your second question, I'm not sure... but I think you could detect when your unit attacks (and keep track of the number of the attacks, with a variable, or something), and when you reach the number of attacks you want (in your case, 3), you can order a dummy to cast a spell with the desired effect (for example, Thunder Bolt for stunning, or doing extra damage). Maybe it's not the best way to do it, but it should work.

This is all I can think of. I hope it helps.

Regards
 
The second is pretty much exactly what I said above. I just said loop trigger instead of attack trigger. This would be best if used with a unit indexer. Use the key of the caster and store the dummy in a dummy unit array and a counter in an integer array keyed to the units custom value. When counter hits 3 reset the counter and order dummy unit to cast spell
 
Status
Not open for further replies.
Top