Warcraft III resources & community, 2003–2006 · archived

Spell help

22 posts
#1

Spell help

hey guys just wondering how i can make a unit/multiple units orbit another unit using triggers?
#2
This is actually really easy once you know what to do, I'll write out the triggers for a single unit. for a spell that like grabs a guy and spins him, once you see that I'm sure you can figure out easily how to do it with multiple units

Event-Every 0.02
Action-Move (Spun) to (Position of (Spinner)) offset by (distnce between (position of (Spinner)) and (position of (spun)) towards (Angle between (position of (Spinner)) and (Position of (Spun))) + 3**{change this value to either speed up or slow down the spin} facing (facing of (spun))


For multiple units just have them in either a unit group or set as variables for themselves. Hope this helps, if it doesn't I made a spell once that shows how its done.
#3
ok cool ima try it out thx a lot :D
#4
actually i have a made spell similar to this if not exactly what you want, but i cant get posting to work, so if it isnt against rules post your email and i should be able to send it to you, its in my custom map im making with lots of other spells and stuff so if you want it i can give it to ya
#5
chuckle brother nailed it =P
just follow his directions
#6
my email is [email protected], but my spell is a lil more complicated, it consists of an ability being cast (bladestorm) then it creates 6 units around the hero that form a perfect circle, all i wanted was for these "Summons" to spin around the hero and then vanish right after a certain ammount of time ( i have 2 problems with it 1: my units dont spin (which i wanna try fixing ) and 2: whenever the main hero dies when this spell is active...he cant be revived...he is removed from the game, duno y this would happen but yeah i just wanna try doing it first, if i cant get it done then ill use ur trigger if u still want to send it to me. thx
#7
Be warned :!: Land units can't move through unpathable doodads, buildings, etc. Spells of this type may have a terrible bug!
Use flying units to prevent it.
#8
no need to make it flying....u can ezily just adjust the collision size to be 0. also when i tried to make the spell you suggested, i had a couple of questions in mind... 1. will it make the game laggy if i do a periodic even? like your example every 0.02 seconds of game time....2. when i tried to find the move trigger i only found it under move unit instantly...is there another move action?
#9
UP plz help me out
#10
No, it doesn't lag.

And yes, you can move it smoothly but using that trigger, and of course not moving it far. It will give you the impression of sliding. There are some GUI spells which might hlep you. Some perfect drag spell I think there is, which moves an unit smoothly.

~Daelin
#11
I was making similar spell to Arcane Competition, but gave it up. It summoned 6 orbs (frost, lightning, fire, darkness, venom and darkness) circling around the hero and attacking units around.
#12
DemonHunterSX2. when i tried to find the move trigger i only found it under move unit instantly...is there another move action?


What do you need another one for?
#13
I was working on spell similar on DotA Allstars Greater Bash but i found that when the unit is bashed it not move smoothly. So he probably wants units to move like that
---------------------------->
not
---> ---> ---> ---> ---> --->
#14
To make it smooth just make it move by smaller increments, for example dont move it by 8 every 0.02 move it instead by 4 every 0.01, same distance moved but it looks much smoother
#15
ahh ok so thats how it works....didnt know that it moves in short distances..thx