- Joined
- Mar 13, 2008
- Messages
- 205
Before I say anything: Yes, I am aware that there are tons of threads on this exact subject, but I haven't found at least one that is solved, so...
I have an auto-cast ability "Static Charge". This ability basically adds damage on every attack, but it also has one effect that I have a problem with. Each time a unit uses Static Charge, the target becomes charged, AKA gains a buff for 10 seconds. What I want is that when the charged unit dies it releases the explosion in area around it, damaging units.
Now, here is the deal, I have no problem with making ability or damage dealing, but with condition: "Dying unit has a buff" since, as far as I learned, it can't be checked if dying unit has a buff, and I can't think of any other condition to use. Here's the trigger for better understanding (It's very simple; I know):
So, if there is a more efficient way to do this and you know it please help. If you decide to help please take this into consideration:
Me and JASS are like fire & water, so please try help me come up with a solution in GUI first, JASS should be like a final solution


P.S: I'm not the expert with GUI either, so posting the trigger of your solution would be helpful alot.
+Rep to those who help.
!!~Thanks in advance~!!
I have an auto-cast ability "Static Charge". This ability basically adds damage on every attack, but it also has one effect that I have a problem with. Each time a unit uses Static Charge, the target becomes charged, AKA gains a buff for 10 seconds. What I want is that when the charged unit dies it releases the explosion in area around it, damaging units.
Now, here is the deal, I have no problem with making ability or damage dealing, but with condition: "Dying unit has a buff" since, as far as I learned, it can't be checked if dying unit has a buff, and I can't think of any other condition to use. Here's the trigger for better understanding (It's very simple; I know):
-
Static Charge
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Dying unit) has buff Static Charge (Stacking)) Equal to True
-
-
Actions
-
Environment - Create a 1.00 second Normal ripple deformation at (Position of (Dying unit)) with starting radius 0.00, ending radius 200.00, and depth 45.00, using 0.20 second ripples spaced 50.00 apart
-
Special Effect - Create a special effect at (Position of (Dying unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Cause (Killing unit) to damage circular area after 0.00 seconds of radius 200.00 at (Position of (Dying unit)), dealing 75.00 damage of attack type Spells and damage type Unknown
-
-
Me and JASS are like fire & water, so please try help me come up with a solution in GUI first, JASS should be like a final solution
P.S: I'm not the expert with GUI either, so posting the trigger of your solution would be helpful alot.
+Rep to those who help.
!!~Thanks in advance~!!
Last edited: