Help with spell

Status
Not open for further replies.
Level 17
Joined
Jun 28, 2008
Messages
776
I want to create a spell that is like the ability of pudge or clockwerk goblin in dota.It has to shoot a hook and grab something and then pull the caster to that point.

The hook is for my new RPG, Ancient Wars.

Please help me with this problem, I have tried countless times to create it, but its always a fail.

Thanks in advance
 
This was originally an ability where units swaped positions but i changed it around to make it more for what you want where only 1 unit moves. So this should move the target to the caster instantly hope it helps.

*Ability*
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to *Ability*
Actions
Set target[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
Set caster_location = (Position of (Triggering unit))
Unit - Move target[(Player number of (Owner of (Triggering unit)))] instantly to caster_location

the variable 'target' is a unit with an array of 12 and 'caster_location' is a point
 
well you could try to do this:

Selection - Clear selection for (Owner of (Casting unit))

then give it the locust ability(this is so it cant be selected to make it stop moving)
then turn collision for unit u wanna move off
then order unit to move wherever u want it(i would use the variables)
maybe wait 1 or 2 seconds
and finally take away locust ability
 
Unless your proficient at JASS (which then you could make it yourself) There's no way to explain how to do it. Basically you just create units in a line, then if you detect a nearby unit, you start destroying them and moving your unit along as they are destroyed.

I'd have to make this to help you out. I'll consider it since I could use it for my map as well.
 
also if you wanted to make the unit go in the air or sumthin you could do this:

Actions
Unit - Add jump trick to (Casting unit)
Unit - Remove jump trick from (Casting unit)
Animation - Change (Casting unit) flying height to 500.00 at 250.00
Wait 2.00 seconds
Animation - Change (Casting unit) flying height to 0.00 at 250.00

the ability "jump trick" can be taken from storm crow form. doing this turns the unit into a flying unit temporarily allowings its height to be manipulated and might be required to go over cliffs but im not sure. Change (Casting unit) flying height to 500.00 at 250.00 means that the flying height will be changed to 500 at 250 per second so it will take 2 seconds for it to get to 500. if u wanted the unit to fly up very fast you would do Change (Casting unit) flying height to 500.00 at 1000.00 which wud get it to 500 in 1/2 a second and you would do the opposite if u wanted it to go up slower.
 
Why would you want hook in a RPG? Then your players can hook bosses or jump into combat from say the edge of the town? Seems like a stupid idea for a RPG..
 
Why would you want hook in a RPG? Then your players can hook bosses or jump into combat from say the edge of the town? Seems like a stupid idea for a RPG..

It is for a Ninja rope attack, like in Mortal kombat, the rope Scorpion uses.But instead of pulling a unit to the caster it is turned around.

wait did u wanna make the casting unit go to the targeted unit and then pull both units back to the original position of the casting unit?

It must pull the caster to the target.

I don't know Jass and I have tried counles times to do it in GUI.
 
Status
Not open for further replies.
Back
Top