why doesnt my triggered spell function right?

X-maul

AKA: Demtrod
Reaction score
201
here it is
Code:
Damned Cirkle
    Events
        Unit - A unit Begins channeling an ability
    Conditions
        (Ability being cast) Equal to Damned Cirkle (Dreadful Shaman)
    Actions
        Game - Display to (All players) the text: it works
        Set BC_RadiusCounter = 200
        Set PlayerGroup = (All allies of (Owner of (Triggering unit)))
        Player Group - Pick every player in PlayerGroup and do (Actions)
            Loop - Actions
                Set BloodCirkle_Player = (Picked player)
        Custom script:   call DestroyForce(udg_PlayerGroup)
        Game - Display to (All players) the text: it works
        For each (Integer A) from 1 to 150, do (Actions)
            Loop - Actions
                Wait 0.01 seconds
                Game - Display to (All players) the text: it works
                Set Temp_Point = (Position of (Triggering unit))
                Set TempPoint = (Temp_Point offset by (Real(BC_RadiusCounter)) towards (Real(((Integer A) x 40))) degrees)
                Unit - Create 1 DC Dummy for (Owner of (Triggering unit)) at (Temp_Point offset by (Real(BC_RadiusCounter)) towards (Real(((Integer A) x 40))) degrees) facing Default building facing degrees
                Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
                Set BC_dummys[(Integer A)] = (Last created unit)
                Set Temp_Point = (Position of BC_dummys[(Integer A)])
                Set TempGroup = (Units within 100.00 of Temp_Point matching ((Owner of (Picked unit)) Not equal to BloodCirkle_Player))
                Unit Group - Pick every unit in TempGroup and do (Actions)
                    Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                And - All (Conditions) are true
                                    Conditions
                                        (Owner of (Picked unit)) Not equal to BloodCirkle_Player
                                        ((Picked unit) is A structure) Not equal to True
                            Then - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Level of Damned Cirkle (Dreadful Shaman) for (Triggering unit)) Equal to 1
                                    Then - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                ((Owner of (Picked unit)) is an ally of (Owner of (Triggering unit))) Not equal to True
                                            Then - Actions
                                                Unit - Cause (Triggering unit) to damage (Picked unit), dealing 80.00 damage of attack type Spells and damage type Normal
                                                Game - Display to (All players) the text: it works
                                            Else - Actions
                                    Else - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Level of Damned Cirkle (Dreadful Shaman) for (Triggering unit)) Equal to 2
                                    Then - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                ((Owner of (Picked unit)) is an ally of (Owner of (Triggering unit))) Not equal to True
                                            Then - Actions
                                                Unit - Cause (Triggering unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal
                                                Game - Display to (All players) the text: it works
                                            Else - Actions
                                    Else - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Level of Damned Cirkle (Dreadful Shaman) for (Triggering unit)) Equal to 3
                                    Then - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                ((Owner of (Picked unit)) is an ally of (Owner of (Triggering unit))) Not equal to True
                                            Then - Actions
                                                Unit - Cause (Triggering unit) to damage (Picked unit), dealing 280.00 damage of attack type Spells and damage type Normal
                                                Game - Display to (All players) the text: it works
                                            Else - Actions
                                    Else - Actions
                            Else - Actions
                Custom script:   call RemoveLocation(udg_TempPoint)
                Custom script:   call RemoveLocation(udg_Temp_Point)
                Custom script:   call DestroyGroup(udg_TempGroup)
the dummy unit is a unit with locust and invulnerable and the model of Animate Dead (Special)



it just make like 3 dummy units, and then the ability stops, and it should stay for like 15 seconds...
 

Azlier

Old World Ghost
Reaction score
461
What is it supposed to do? 'This doesn't work' does not work.

EDIT: Glad you found out. I didn't want to trawl through a block of GUI...
 

X-maul

AKA: Demtrod
Reaction score
201
well i thought that i figured it out, but i didnt, it still doesnt works, it should create a ring of spikes around the hero that cirkles around and then it should deal damage every time a unit get hit...
 

Azlier

Old World Ghost
Reaction score
461
All I can find are these:

1. It leaks a force at the top.

2. You remove dummies. What you should do is add an expiration timer.
 

J3LADE

New Member
Reaction score
7
Try slowing the trigger down and add game messages to tell you where the trigger gets up to. Then you can find out exactly where the trigger is malfunctioning. Bit of a trial and error method but it saves me from having to read it. :D
 

X-maul

AKA: Demtrod
Reaction score
201
i found the fail, i just changed it to integer B, then it works....

anyway +rep to all of you...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top