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