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

[Trigger] Dummy Spell help!

Status
Not open for further replies.
Level 7
Joined
Oct 13, 2008
Messages
301
Aiiiight, i'm currently trying to make an ability for my map. It's supposed to summon multiple frozen balls around the caster, and the ball would die and deal damage when it collides to an enemy unit.

The problem i have here is the movement of the balls. They're supposed to be dummy units which move around the caster in circles, and follow him where ever he goes... Here's a video with a kind of similar spell:

http://www.youtube.com/watch?v=JGAacyvIvZo&feature=related

* Please make it in GUI if possible * :]
 
Level 7
Joined
Oct 13, 2008
Messages
301
Yeah, i checked those out but i didn't quite find the thing i was looking for, thanks anyways :]

But i suppose you would start the code by creating a Point variable, with 7 Indexes. 6 For the dummy units, and 1 to tell where the caster is at.

Then, you would create an Real variable with 6 indexes for each of the dummy, and give them values of 0, 60, 120, 180, 240, 300.

Then create the points;

set Temp_point[1] = Position of caster
set Temp_point[2] = Temp_point[1] offset by 250 towards Real[1] Degrees
set Temp_point[3] = Temp_point[1] offset by 250 towards Real[2] Degrees

~ And so on.

Then just create the dummy units on the point [2]~[7] and clean up the leaks.

That's how far i can do this, But i'm not quite sure how would i create the movement of the dummies, and how to make them follow the caster? If anyone would help me from there, i'd appreciate it :]
 
Level 7
Joined
Oct 13, 2008
Messages
301
Thanks a bunch, Maker! :] That's exactly what i was talking about. I'll include you in the credits of my map if im ever going to make it a public one... ^ ^

Although, one thing i didn't quite get in the code, even though it isn't gonna affect anything, what does this custom script stand for?

''Custom script: call UnitAddAbility(GetLastCreatedUnit(), 'Aloc')'' ?/

http://www.xfire.com/video/31386f/ <<-- that's how it pretty much looks like now, thanks again... :]
 
Last edited:
Level 16
Joined
Aug 20, 2009
Messages
1,554
Well.. i tried playing around with your map trigger,

i made it so that if unit comes near the sheep, sheep died, and deals damage to the unit hit, but then...

how do i add duration?...so that it last like 5 / 6 seconds...

i figure out the rest of how to replace remaining sheeps, when casted again..., but i don't know how to make it MUI,
when i remove the Sheeps,by casting it again, the other paladin's sheeps is removed too...help me with this :D

and, how to attach maps? i wanted you to see if there is a problem or leak because of the noob modifications i made.
 
Last edited:
Status
Not open for further replies.
Top