• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

help bugged spell

Status
Not open for further replies.
Level 6
Joined
Oct 11, 2005
Messages
142
i made a spell where a unit teleports to the target atacks then moves to the next target with in range (kind of like omni slash in FF7) i set it to end after 20 atacks or there are no more units in range. but after the spell set to end insted of the casting unit standing where he last teleported he goes instantly to the center of the map. i dont know how to fix this.


EX of spell (the spell in 3 triggers)

Start(trigger #1)
1.make unit invincible
2.unselected unit
3.tele to target
4.atack target
5.set var for next target within 500 of casting unit

Middle(trigger #2)
6.loop #3-5 in trigger one

END (trigger #3)
1.attack count var = 20 then #2-3
or
no units in target var then #2-3
2.make cancel invincible for unit
3.select unit
 
Level 9
Joined
Jul 27, 2006
Messages
652
same problem

i have the same problem with alot of spells...
the basic thing is that if the point reqired does no exist then it is set to the center of playable map...

I think the problem is in there being no units or no unit point is slected....
make sure you 1st trigger does not keep running by making it display text everytime its run ( this helps find the problem)...
if that doesnt work then i cant help you... :(
 
Status
Not open for further replies.
Top