• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
Level 5
Joined
Jan 27, 2007
Messages
154
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
                • Unit Group - Add (Picked unit) to GetsugaDamage
                • 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)
    • Custom script: call DestroyGroup(udg_GetsugaDamage)
 
Status
Not open for further replies.
Top