• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Colateral targets

Status
Not open for further replies.
Level 20
Joined
Feb 27, 2019
Messages
594
No. The instance you cast the spell there are no secondary targets. They are calculated the instance the chain jumps. There is no variable for the secondary targets. One trick to find the secondary targets is to use a specific dummy unit to deal the damage, if the unit dealing damage is this specific dummy, we know it comes from that specific spell. Depending on what effects you want it may be enough. There is another way using damage detection without the dummy aswell but I am not sure how to do it.

The best way however would be to trigger the chain spell because it allows to find all targets and gives more control to change the spell. Chain spells are not easy to make because of the lightning and effects of the chain spell. If someone has a good guide on how to create chain spells or has any examples or a chain system it would be very nice! :)
 

zam

zam

Level 3
Joined
Jan 1, 2021
Messages
31
If i'm not mistaken Chain lighting applies a buff eachtime it's spread to secondary targets. You can detect that by a DDS and apply certain stuff you want.
 
Status
Not open for further replies.
Top