Complex Trigger Problem

Siretu

Starcraft 2 Editor Moderator
Staff member
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
 

Kyuft

Member
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:
 

Siretu

Starcraft 2 Editor Moderator
Staff member
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)
 

Kyuft

Member
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:
 

Siretu

Starcraft 2 Editor Moderator
Staff member
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
 

Attachments

Kyuft

Member
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:
 

Phubar

Well-Known Member
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 :)
 

X-maul

AKA: Demtrod
Use the turn off trigger action

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

Kyuft

Member
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:
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    The old shoutbox wasn't supported anymore. We updated xenForo, so it had to be replaced.
  • jonas jonas:
    let's see if everyone finds it... the nice thing about the shoutbox was I could check on it even while logged out, but the existence of this one is hidden when you're not logged in
  • Ghan Ghan:
    We can fix that.
  • Ghan Ghan:
    Chat should show on the sidebar when not logged in now.
  • Ghan Ghan:
    (You'll still need to log in to post messages)
  • Ghan Ghan:
    Test!
  • tom_mai78101 tom_mai78101:
    I must be in a test server.
  • tom_mai78101 tom_mai78101:
    Nice, Twitter tweets embedding now works
  • Wizard Wizard:
    Yup.
  • Ghan Ghan:
    Excellent.
  • Ghan Ghan:
    @tom_mai78101 Hello there.
  • Ghan Ghan:
    Tagging works in the chat too.
  • tom_mai78101 tom_mai78101:
    @Ghan Missed it.
  • Wizard Wizard:
    Still fixing things here and there. Added widgets to the portal, will make it match the ones here on the forum index tomorrow.
  • Ghan Ghan:
    The venerable World Editor Tutorials site has been converted to HTTPS at last.
  • jonas jonas:
    cool
  • jonas jonas:
    and I can even edit my messages, nice
  • seph ir oth seph ir oth:
    GENERAL CHIT CHAT, YOU ARE A BOLD ONE
  • Ghan Ghan:
    Hello there
  • The Helper The Helper:
    this new chatbox is great and the forum software update is great too
    +1
  • The Helper The Helper:
    upgrade has fixed forum registration spam problem
  • tom_mai78101 tom_mai78101:
    Something tells me we might be able to customize the chatbox a bit, considering that there's a gap under every message.
  • Wizard Wizard:
    Going to deploy a fix soon, just had to take some time for myself this weekend.
  • Varine Varine:
    Unbelievable. Time for yourself? How dare you!

    Members online

    No members online now.

    Affiliates

    Hive Workshop
    Top