Ability died

Asdfblah1

New Member
Reaction score
10
Ok. This ability was working in the previous version. Nothing at all has changed in this trigger from the previous. I've tried turning off ALL triggers yet this still won't work.

For some reason it won't Add the last created unit to that unit group. It displays no unit name. Any ideas why Add Unit would stop working?

Edit: Every unit is given a unique custom value. I've double checked the unit to make sure it is staying the same and it is.

Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Ability being cast) Equal to Range
    • Then - Actions
      • Set Temp_Point = (Position of (Casting unit))
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set Temp_Point_2 = (Temp_Point offset by 420.00 towards (36.00 x (Real((Integer A)))) degrees)
          • Unit - Create 1 Range Dummy for (Owner of (Casting unit)) at Temp_Point_2 facing Default building facing degrees
          • Animation - Change (Last created unit) flying height to 325.00 at 108.33
          • Unit Group - Add (Last created unit) to Units_Range[(Custom value of (Casting unit))]
          • Custom script: call RemoveLocation(udg_Temp_Point_2)
      • Unit Group - Pick every unit in Units_Range[(Custom value of (Casting unit))] and do (Actions)
        • Loop - Actions
          • Game - Display to (All players) the text: (Name of (Picked unit))
      • Custom script: call RemoveLocation(udg_Temp_Point)
    • Else - Actions
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Change all casting unit to triggering unit and move the group add 1 line up
 

deebee

New Member
Reaction score
15
What is the full trigger?

Your game text is wrong and you said it displayed no unit name?
 

Asdfblah1

New Member
Reaction score
10
I typed that pick every unit thing out to show that debugging it didn't worked...had a picked unit typo. I'll make your suggestions are tell you the news!

Edit: Still no luck. Everything works (unit is created, etc) except for some reason it isn't added to that group. I've even tried changing it to a high integer (500) and it didn't work.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Changing the integer to a custom one will do nothing. As i said change all (Casting Unit) to (Triggering Unit)
 

Asdfblah1

New Member
Reaction score
10
I did and nothing happened. I nabbed the triggers from an older version and replaced them. But the problem still exists. If it's not trigger related...?
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Make the unit group array 1 and not custom value then try it.
 

deebee

New Member
Reaction score
15
Did you try changing the Integer A to something else?
I would try a set number instead of a custom value and see what happens

-------

What did you add to this newer version compared to your previous?
 

Asdfblah1

New Member
Reaction score
10
Did you try changing the Integer A to something else?
Yes. Using Integer B and again using a variable.

I would try a set number instead of a custom value and see what happens
Tried it using the numbers 1 and 500.

What did you add to this newer version compared to your previous?
New units, triggers, and abilities. I've tried disabling all but the displayed trigger, replacing the unit and ability from the new version with the old version, and had no luck.

Edit: After a couple more tests, it turns out to still be trigger related. Going to be fun figuring this one out D:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top