Staredit Network > Forums > SC2 Assistance > Topic: Problem with an action?
Problem with an action?
May 28 2010, 10:41 am
By: ZeroAme  

May 28 2010, 10:41 am ZeroAme Post #1



Im getting a red dot on an action in this trigger I made but I don't see anything wrong with it. Can any of you guys see what might not be working in this or why it says it wont work?

Code
       General - If (Conditions) then do (Actions) else do (Actions)
           If
               (Chance count for 1, counting Complete) == 1
           Then
               Variable - Set Quality[0] = 100
           Else
               General - If (Conditions) then do (Actions) else do (Actions)
                   If
                       (Chance count for 1, counting Complete) == 2
                   Then
                       Variable - Set Quality[0] = 70
                       Variable - Set Quality[1] = 30
                   Else
                       General - If (Conditions) then do (Actions) else do (Actions)
                           If
                               (Chance count for 1, counting Complete) == 3
                           Then
                               Variable - Set Quality[0] = 60
                               Variable - Set Quality[1] = 30
                               Variable - Set Quality[2] = 10
                           Else
                               General - If (Conditions) then do (Actions) else do (Actions)
                                   If
                                       (Chance count for 1, counting Complete) == 4
                                   Then
                                       Variable - Set Quality[0] = 50
                                       Variable - Set Quality[1] = 30
                                       Variable - Set Quality[2] = 20
                                   Else
                                       General - If (Conditions) then do (Actions) else do (Actions)
                                           If
                                               (Chance count for 1, counting Complete) == 5
                                           Then
                                               Variable - Set Quality[0] = 40
                                               Variable - Set Quality[1] = 30
                                               Variable - Set Quality[2] = 20
                                               Variable - Set Quality[3] = 10
                                           Else
                                               General - If (Conditions) then do (Actions) else do (Actions)
                                                   If
                                                       (Chance count for 1, counting Complete) == 6
                                                   Then
                                                       Variable - Set Quality[0] = 30
                                                       Variable - Set Quality[1] = 30
                                                       Variable - Set Quality[2] = 30
                                                       Variable - Set Quality[3] = 10
                                                   Else
                                                       General - If (Conditions) then do (Actions) else do (Actions)
                                                           If
                                                               (Chance count for 1, counting Complete) == 7
                                                           Then
                                                               Variable - Set Quality[0] = 20
                                                               Variable - Set Quality[1] = 30
                                                               Variable - Set Quality[2] = 30
                                                               Variable - Set Quality[3] = 20
                                                           Else
                                                               General - If (Conditions) then do (Actions) else do (Actions)
                                                                   If
                                                                       (Chance count for 1, counting Complete) == 8
                                                                   Then
                                                                       Variable - Set Quality[0] = 10
                                                                       Variable - Set Quality[1] = 30
                                                                       Variable - Set Quality[2] = 30
                                                                       Variable - Set Quality[3] = 30
                                                                   Else
                                                                       General - If (Conditions) then do (Actions) else do (Actions)
                                                                           If
                                                                               (Chance count for 1, counting Complete) == 9
                                                                           Then
                                                                               Variable - Set Quality[0] = 0
                                                                               Variable - Set Quality[1] = 30
                                                                               Variable - Set Quality[2] = 30
                                                                               Variable - Set Quality[3] = 30
                                                                               Variable - Set Quality[4] = 10
                                                                           Else


I have tried taking every thing from
Code
General - If (Conditions) then do (Actions) else do (Actions)
                   If
                       (Chance count for 1, counting Complete) == 2
and after and putting it in a different trigger and nothing was wrong with that that didnt go red so then I tried changing
Code
               Variable - Set Quality[0] = 100
to
Code
               Variable - Set Quality[1] = 100
and I still have the red dot.

Post has been edited 1 time(s), last time on May 28 2010, 10:53 am by ZeroAme.



None.

May 28 2010, 1:08 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

quality array has a size of at least 5?




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:28 am]
Ultraviolet -- sounds like Bound & Defend
[07:43 pm]
Symmetry -- If you take the reins you damn well be ready to ride
[2026-5-23. : 2:46 pm]
NudeRaider -- you wish
[2026-5-23. : 12:43 am]
IskatuMesk -- Ah, so Reindeer Breeding 3: BDSM edition.
[2026-5-22. : 12:45 am]
Moose -- tbh
[2026-5-20. : 8:27 pm]
Symmetry -- It's a bound map where you cross obstacles to earn units to defend your base
[2026-5-20. : 8:16 pm]
Symmetry -- No, the world isn't ready for that
[2026-5-20. : 5:11 pm]
Zoan -- Reindeer Breeding 3?
[2026-5-19. : 7:20 pm]
Symmetry -- I've started *another* map too. Feeling nostalgic.
[2026-5-19. : 7:17 pm]
Symmetry -- But people need constant access to my creations!
Please log in to shout.


Members Online: Dem0n, O)FaRTy1billion[MM], Sie_Sayoka