• 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] Create a holy shotgun spell (art + functions), how?

Status
Not open for further replies.
Level 3
Joined
Nov 23, 2015
Messages
21
So I'm working on an ORPG with a friend of mine and we're both rather new to all this and we're at the stage where we wanna create our own heroes, right. I wanna create a holy shotgun (very like the one in diablo 3). It should be a passive or toggle and every autoattack should release 3 waves of holy light in an arc (doing aoe damage if possible, otherwise single target). So am I able to make the art myself and import in the world editor or am I screwed? And how am I supposed to make this spell work like I want it to?

I posted this at "request" as well as I was unsure of where I would put this.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
You will need an attack damage detection system. Some should be pre-made so easy to use.

Getting the angles for the launches is a matter of simple high school maths. For example unit facing, unit facing + 30, unit facing -30.

The damage beams are a bit more complex. Fortunately there exist pre-made functions which will enumerate all units in a arc/rectangle. Use such a premade system to run from the caster unit in the calculated angles for the desired distance. Then damage all those found units the desired amount of damage.
 
Level 3
Joined
Nov 23, 2015
Messages
21
You will need an attack damage detection system. Some should be pre-made so easy to use.

Getting the angles for the launches is a matter of simple high school maths. For example unit facing, unit facing + 30, unit facing -30.

The damage beams are a bit more complex. Fortunately there exist pre-made functions which will enumerate all units in a arc/rectangle. Use such a premade system to run from the caster unit in the calculated angles for the desired distance. Then damage all those found units the desired amount of damage.

Is there any way you could show me how to do this? And do you know how I'm supposed to change the spell art to the desired art?
 
Status
Not open for further replies.
Top