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

Attack Spell Help

Status
Not open for further replies.
Level 2
Joined
Mar 15, 2006
Messages
12
I want to create a spell that is pretty much an attack. Like throw spear, but i spear to actually have to hit the target, so if the target is running it will be hard for the spear to hit it. Any help would be appreciated.
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
Erm, sorry, but GUI -DOES- look like gibberish compared to JASS. I use JASS almost since day 1 and I'm happy with it.

Faulk, I don't understand your problem? Why don't you base this "spell" on fireball or something? Just change the fireball model to the spear's model. I think the spear is going to be very close to land-level but I'm sure there is a way to set the spell's model's height.
 
Level 2
Joined
Mar 15, 2006
Messages
12
I want it so you to use an ability to attack some one, like throw spear. But i want the ability to have to hit the person to do damage, so theres a chance of missing with your ability.
Edit- Fireball homes in on the target, so it always hits them.
 
Level 4
Joined
Jul 23, 2007
Messages
129
Shockwave, perhaps? It hurts units in a line, just change the shockwave model to a spear model and reduce the aoe a bit.
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
Well, I think I would make two abilities. One based on fireball, for example and an another one based on something else.
Let's say your spell has 20% to miss the target.
Make your real spearthrow a 0.5 sec casting time spell.
Make the fake spearthrow an instant cast spell doing ZERO damage costing ZERO mana.

E: Unit starts casting a spell.
C: Spell == Real Spearthrow
A: set yourIntegerVariable = Random Integer Value between 1 and 10
if yourIngegerVariable < 3 then
Order you unit to cast the fake spell on the target.

There it is. You can hide your "fakeball" :p in a disabled spellbook.
 
Status
Not open for further replies.
Top