Complex Trigger Problem

Discussion in 'Starcraft 2 (SC2) Editor Help' started by Kyuft, May 27, 2013.

  1. Siretu

    Siretu Starcraft 2 Editor Moderator Staff Member

    Ratings:
    +295 / 0 / -0
    Trigger:
    • Trigger - Turn (Current trigger) Off

    Here's an updated version of what I meant:
    Trigger:
    • Single Unit order
      • Events
        • Unit - Any Unit is issued an order to Any Ability Command
      • Local Variables
        • DataValue = "" <String>
      • Conditions
      • Actions
        • Trigger - Turn (Current trigger) Off
        • Variable - Set DataValue = (String((Custom value 0 of (Triggering unit))) with Any Precision decimal places)
        • Unit - Order all units in ("MarineSquad[" + lv_dataValue + "]" from the Global data table) to ((Ability command for (Triggering order))) (Replace Existing Orders)
        • Trigger - Turn (Current trigger) On
     
  2. Kyuft

    Kyuft Member

    Ratings:
    +11 / 0 / -0
    The trigger that you posted does not work, Siretu. It does not command the rest of the group to do the same thing as the single unit. It seems to have no effect on the group.

    -Kyuft:cool:
     
  3. Siretu

    Siretu Starcraft 2 Editor Moderator Staff Member

    Ratings:
    +295 / 0 / -0
    My bad, it should be:
    Trigger:
    • Unit - Order all units in ("MarineSquad[" + lv_dataValue + "]" from the Global data table) to (Triggering order) (Replace Existing Orders)
     
  4. Kyuft

    Kyuft Member

    Ratings:
    +11 / 0 / -0
    Still doesn't work... I think the problem is the event. It requires an Ability Command, but I don't see any "Any Order" option.

    -Kyuft:cool:
     
  5. Siretu

    Siretu Starcraft 2 Editor Moderator Staff Member

    Ratings:
    +295 / 0 / -0
    Should not be a problem. According to the comment of the event it says: "This event fires when a unit is issued an order. Use "Triggering order" to get the order".

    Try to do some debugging on your own. I haven't got your entire system set up so it's harder for me to test.

    I tried it out on my own but instead of ordering a MarineSquad, I ordered every unit on the map. When I did, it worked great. This means, it's probably something wrong with the way it gets the group of units.

    I attached my very simple test map, so you can check it out
     

    Attached Files:

    • Like Like x 1
  6. Kyuft

    Kyuft Member

    Ratings:
    +11 / 0 / -0
    It worked all along, I just made a really stupid mistake. Every time I use Custom Script, I always accidentally put it in as a value rather than a custom script. Its such a stupid mistake... Well, I owe a huge favor to all of you, because this works exactly how I want it to! Thank you all so much!

    -Kyuft:cool:
     
  7. Phubar

    Phubar Well-Known Member

    Ratings:
    +30 / 0 / -0
    Siretu i did not undestand what you wanted to say until i saw your triggers! :) There were a lot of misunderstandings in this topic!
    Clever solution!

    I'm glad that all works fine :)
     
  8. X-maul

    X-maul AKA: Demtrod

    Ratings:
    +200 / 0 / -0
    Use the turn off trigger action

    EDIT: Wow a lot of messages popped up before I even got to ansver :rolleyes:
     
  9. Kyuft

    Kyuft Member

    Ratings:
    +11 / 0 / -0
    Haha :p
    Well, the system worked well with just marines, but after modifying it for all units, many errors surfaced, and so I will probably be sending the map to Siretu to have him take a look. I hope this will all work out after all of the work that we all put into it.

    -Kyuft:cool:
     
  10. Phubar

    Phubar Well-Known Member

    Ratings:
    +30 / 0 / -0
    Upload your map instead of sending it to Siretu, i can see it too :)
     
  11. Kyuft

    Kyuft Member

    Ratings:
    +11 / 0 / -0
    Well, thanks to Siretu, it seems to work great! Until faults arise... :p

    -Kyuft:cool:
     

Share This Page