Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Overtime Trigger not peforming as I assume it should?
Overtime Trigger not peforming as I assume it should?
Oct 26 2015, 7:58 pm
By: 3oDAtlas  

Oct 26 2015, 7:58 pm 3oDAtlas Post #1



So I wanted to make an over time function in a map and it seems like everything is laid out how it should be but its just not working properly.


Team Hot/Team Cold win triggers work just fine. If you set each teams ore/gas manually and then wait until the 10 second timer reaches 0 it displays who has won correctly.

But if you assign both teams the same ore/gas and then wait until the timer reaches 0 it says Team Hot wins 100% of the time. I attached the map which is just a blank canvas with just these triggers and the score setting triggers. I feel like its something to do with order of operations or something but I just can't seem to figure it out.

Thanks!

Force1Winning
Players

  • Force 1
  • Conditions

  • Most Resources(ore);
  • Countdown Timer(Exactly, 0);
  • Elapsed Time(At least, 10);
  • Actions

  • Set Switch("Force1Win", set);
  • Preserve Trigger();
  • Comment("Force1Winning");



  • Force2Winning
    Players

  • Force 2
  • Conditions

  • Most Resources(ore);
  • Countdown Timer(Exactly, 0);
  • Elapsed Time(At least, 10);
  • Actions

  • Set Switch("Force2Win", set);
  • Preserve Trigger();
  • Comment("Force2Winning");



  • Tie Game / OT
    Players

  • Player 1
  • Conditions

  • Switch("Force1Win", set);
  • Switch("Force2Win", set);
  • Switch("EndGame", not set);
  • Elapsed Time(At least, 10);
  • Countdown Timer(Exactly, 0);
  • Actions

  • Display Text Message(Always Display, "Tie!");
  • Set Switch("Force1Win", clear);
  • Set Switch("Force2Win", clear);
  • Set Countdown Timer(Set To, 10);
  • Preserve Trigger();
  • Comment("Tie Game / OT");


  • Team Hot Wins
    Players

  • Player 1
  • Conditions

  • Switch("Force1Win", set);
  • Switch("Force2Win", not set);
  • Switch("EndGame", not set);
  • Elapsed Time(At least, 10);
  • Countdown Timer(Exactly, 0);
  • Actions

  • Display Text Message(Always Display, "Team Hot Wins");
  • Set Switch("EndGame", set);
  • Preserve Trigger();
  • Comment("Team Hot Wins");


  • Team Cold Wins
    Players

  • Player 1
  • Conditions

  • Switch("Force2Win", set);
  • Switch("Force1Win", not set);
  • Switch("EndGame", not set);
  • Elapsed Time(At least, 10);
  • Countdown Timer(Exactly, 0);
  • Actions

  • Display Text Message(Always Display, "Team Cold Wins");
  • Set Switch("EndGame", set);
  • Preserve Trigger();
  • Comment("Team Cold Wins");


  • Attachments:
    TestingOT.scx
    Hits: 0 Size: 40.07kb



    None.

    Oct 26 2015, 8:07 pm Roy Post #2

    An artist's depiction of an Extended Unit Death

    It's trigger execution order. Player 1 runs the Force1Winning trigger, and then runs the Team Hot Wins trigger. This all happens before any of Force 2's triggers run.

    This is because trigger groups expand out to belong to each individual player, and trigger execution always runs all of Player 1's triggers before Player 2's triggers, and so on for the eight players.

    Change the victory/tie triggers to be owned by a single player to fix the issue. Of course, you'll need to sort out how you want to display the text messages separately to each player. I'd set a death for all players and then display a message based on the death number (E.g., 1 death means show Team Hot Wins, 2 deaths means Team Cold Wins, and 3 deaths means a tie).




    Oct 26 2015, 8:20 pm 3oDAtlas Post #3



    Ah, alright. That's what I figured it was, since I had them initially in "All Players" I thought that would of covered that base but I guess not. I just added them to Player 8 (Which is AI/holds Hypers ect.) so that works just fine.

    And yeah, I will be using a DC to display the message ect.

    Thanks sir!



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [03:20 am]
    Symmetry -- Dang I'm up to 155 minerals gambling really pays off guys
    [2026-10-11. : 6:02 am]
    Donald -- Samase
    [2026-10-09. : 2:53 am]
    Mr.BurnLiquid -- Symmetry
    Symmetry shouted: I'll check it out this weekend!
    Thanks
    [2026-10-09. : 2:47 am]
    Symmetry -- I'll check it out this weekend!
    [2026-10-09. : 2:40 am]
    Mr.BurnLiquid -- Symmetry
    Symmetry shouted: Another map maker? Damn we really ARE back
    I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
    [2026-10-09. : 2:27 am]
    Symmetry -- Another map maker? Damn we really ARE back
    [2026-10-09. : 1:51 am]
    Mr.BurnLiquid -- Ultraviolet
    Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
    Now that I wanted to change my avatar, the error image is showing up, haha.
    [2026-10-09. : 1:34 am]
    Mr.BurnLiquid -- Ultraviolet
    Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
    Mr.BurnLiquid
    Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
    I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
    [2026-10-09. : 1:33 am]
    Mr.BurnLiquid -- Ultraviolet
    Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
    Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
    Please log in to shout.


    Members Online: NudeRaider, DarkenedFantasies