# [Trigger]Problem w/ skil........

Status
Not open for further replies.

#### meercat

Level 5
Well I have some problem, I want the skill to damage enemies and to add them to the group after being damaged so they won't get damaged again until the skill ends. The problem is, the skill isn't damaging at all but before it is but it's damaging the picked unit(s) consecutively....

• Events
• Unit - A unit Starts the effect of an ability
• Conditions
• (Ability being cast) Equal to Getsuga Tensho
• Actions
• Set GetsugaIchigo = (Casting unit)
• Set GetsugaPoint = (Position of (Casting unit))
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Unit-type of (Casting unit)) Equal to Shinigami Substitute
• Then - Actions
• Unit - Create 1 Blue Tensho for (Owner of (Casting unit)) at GetsugaPoint facing (Facing of GetsugaIchigo) degrees
• Else - Actions
• Unit - Create 1 Black Tensho for (Owner of (Casting unit)) at GetsugaPoint facing (Facing of GetsugaIchigo) degrees
• Set GetsugaTensho = (Last created unit)
• Set GetsugaFor = (GetsugaPoint offset by 100.00 towards (Facing of GetsugaIchigo) degrees)
• Unit - Make (Last created unit) Invulnerable
• For each (Integer A) from 1 to 20, do (Actions)
• Loop - Actions
• Unit - Move GetsugaTensho instantly to GetsugaFor
• Set GetsugaGroup = (Units within 1000.00 of GetsugaFor matching (((Matching unit) belongs to an enemy of (Owner of GetsugaIchigo)) Equal to True))
• Unit Group - Pick every unit in GetsugaDamage and do (Actions)
• Loop - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• ((Picked unit) is in GetsugaGroup) Equal to False
• Then - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (GetsugaIchigo has buff Hollowification ) Equal to True
• Then - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• Or - Any (Conditions) are true
• Conditions
• (Unit-type of (Casting unit)) Equal to Shinigami Substitute (Bankai)
• (Unit-type of (Casting unit)) Equal to Shinigami Substitute (Bankai2)
• (Unit-type of (Casting unit)) Equal to Shinigami Substitute (Bankai3)
• Then - Actions
• Unit - Cause GetsugaIchigo to damage (Picked unit), dealing 1000.00 damage of attack type Spells and damage type Normal
• Else - Actions
• Unit - Cause GetsugaIchigo to damage (Picked unit), dealing 700.00 damage of attack type Spells and damage type Normal
• Else - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• Or - Any (Conditions) are true
• Conditions
• (Unit-type of (Casting unit)) Equal to Shinigami Substitute (Bankai)
• (Unit-type of (Casting unit)) Equal to Shinigami Substitute (Bankai2)
• (Unit-type of (Casting unit)) Equal to Shinigami Substitute (Bankai3)
• Then - Actions
• Unit - Cause GetsugaIchigo to damage (Picked unit), dealing 700.00 damage of attack type Spells and damage type Normal
• Else - Actions
• Unit - Cause GetsugaIchigo to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
• Else - Actions
• Set GetsugaFor = (GetsugaFor offset by 70.00 towards (Facing of GetsugaTensho) degrees)
• Wait 0.01 seconds
• Unit - Kill GetsugaTensho
• Custom script: call RemoveLocation(udg_GetsugaPoint)
• Custom script: call RemoveLocation(udg_GetsugaFor)
• Custom script: call DestroyGroup(udg_GetsugaGroup)

#### Squiggy

Level 28
Unit Group - Pick every unit in GetsugaDamage and do (Actions)
You did not define the group in the trigger, I think, and therefore the trigger doesn't run the part

#### meercat

Level 5
i tried ur suggestion but still not working but thx niweiz!......

#### Razorbrain

Level 12
the wait is bugged, some For each (Integer) bug with Waits(not sure why), and Waits under 0.25 are inaccurate

use a Countdown Timer instead, they can actually be 0.01 long

Status
Not open for further replies.

Replies
6
Views
870
Replies
29
Views
1K
Replies
4
Views
558
Replies
3
Views
226
[Trigger] DOTs not working
Replies
5
Views
894