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.
 
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.
 
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.
 
Shockwave, perhaps? It hurts units in a line, just change the shockwave model to a spear model and reduce the aoe a bit.
 
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.
Back
Top