- Joined
- Jun 22, 2007
- Messages
- 13
I am currently trying to reimplement my WC3 abilities to SC2 and would like to do it without using triggers, where possible. So far, I was successful but am not sure, how to implement the more advanced abilities without using triggers - if even possible at all.
Question:
Is it possible to figure out the origin/caster of a certain buff and use that as reference for other abilities?
Scenario:
In my multiplayer map, I have a unit (Caster) that can apply a buff to (one and only one) other friendly unit (Target). While being affected by that buff, there is a chance that attacks done by the Caster trigger some bonus effects (healing, etc.) on the Target.
Since it is possible that there are more than one units of type Caster, I need to figure out which buff comes from which Caster, so that the bonus effects are applied from the right source to the right target.
Any ideas or suggestions? I haven't played around with validators yet, so I am not sure if that's a possibility. As said before, I would like to do it without triggers (i.e. not keeping an array of Casters and thier Target that I check on every attack).
Many thanks in advance
Question:
Is it possible to figure out the origin/caster of a certain buff and use that as reference for other abilities?
Scenario:
In my multiplayer map, I have a unit (Caster) that can apply a buff to (one and only one) other friendly unit (Target). While being affected by that buff, there is a chance that attacks done by the Caster trigger some bonus effects (healing, etc.) on the Target.
Since it is possible that there are more than one units of type Caster, I need to figure out which buff comes from which Caster, so that the bonus effects are applied from the right source to the right target.
Any ideas or suggestions? I haven't played around with validators yet, so I am not sure if that's a possibility. As said before, I would like to do it without triggers (i.e. not keeping an array of Casters and thier Target that I check on every attack).
Many thanks in advance