Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: UMS AI trigger help
UMS AI trigger help
Apr 11 2010, 2:31 am
By: Duljin  

Apr 11 2010, 2:31 am Duljin Post #1



I'm attempting to make my first UMS map with Scmdraft 2.0. (I know: welcome to the party 10 years late), but I'm having trouble with something that should be very simple. I cannot get a group of Marines and a group of Zerglings to fight each other. Both are in different forces in a named location, and I can get actions to trigger when the player enters my separate... uh, trigger location, but I cannot make them just attack each other. The best I've been able to manage is with the "Kill" command, but that just blows'em up from nowhere.

This is probably covered somewhere, but I've searched Google, the forums here, and several tutorials with no success. Please help.



None.

Apr 11 2010, 2:39 am LoTu)S Post #2



Have you toggled with the alliance status? Be aware that for player 1 to unally player 2. Its:
Trigger
Players

  • Player 2
  • Conditions

  • always (or w/e)
  • Actions

  • Set A.I Script:set unally for player 1


  • sorta weird. Hope this helps



    None.

    Apr 11 2010, 2:54 am DeM)s. Post #3



    Quote from Duljin
    I'm attempting to make my first UMS map with Scmdraft 2.0. (I know: welcome to the party 10 years late), but I'm having trouble with something that should be very simple. I cannot get a group of Marines and a group of Zerglings to fight each other. Both are in different forces in a named location, and I can get actions to trigger when the player enters my separate... uh, trigger location, but I cannot make them just attack each other. The best I've been able to manage is with the "Kill" command, but that just blows'em up from nowhere.

    This is probably covered somewhere, but I've searched Google, the forums here, and several tutorials with no success. Please help.
    Not sure if this will help but, if the Marines and the Zerglings aren't allied together you can have a trigger that makes them patrol to your desired location where you want them to fight and once they get into each other's range they'll automatically attack each other.

    Trigger
    Players

  • Player X
  • Conditions

  • Player X brings Unit X to Location X
  • Actions

  • Order *amount* of Unit Y at Location Y to "Patrol" to Location Y

  • *Note
    - Player X and Unit X represent the player and their unit while Location X represents "my separate... uh, trigger location"

    Then you can do the same for the other group of units, as long as they're heading either 1) towards the same location and they'll meet up or 2) towards two different locations but they'll also meet up. Not sure if this will help or not seeing as I'm entirely new to the whole map making myself but I just wanted to throw in my little bit.



    None.

    Apr 11 2010, 3:05 am DavidJCobb Post #4



    Lotus is wrong, just use the Set Alliance Status trigger action. Be aware that the player that's setting the status has to run the trigger. (For P1 to set P2 to enemy, P1 must run a SAS trigger.)

    DeMS' triggers are correct, but bear in mind that if the two groups (somehow) reach their destination without encountering each other (or when they're done killing each other), they'll head back to the start, and then they'll head back to the destination again. (This can actually be useful... When they're done fighting, whichever side is still alive will return to their base. You can just detect when they re-enter, and order them to stop (by using Move Unit to move them to a location they cannot be moved to).) Also note that they'll attack any enemies they notice while patrolling.



    None.

    Apr 11 2010, 3:16 am LoTu)S Post #5



    Quote
    Lotus is wrong, just use the Set Alliance Status trigger action. Be aware that the player that's setting the status has to run the trigger. (For P1 to set P2 to enemy, P1 must run a SAS trigger.)

    The truth hurts, but i swore for p1 to unally p2, p2 runs Ai script unally p1.



    None.

    Apr 11 2010, 4:39 am Duljin Post #6



    Thanks for the quick responses, guys! It was indeed a simple problem, and your solutions have helped me figure it out.

    That said, what I'm really attempting to do is have several battles between Terran and Zerg forces that the player ends up watching/participating in as a third party. Right now I'm thinking about toggling the ally status to enemies when the player enters a location, then having the two forces encounter each other via DeMs' patrol suggestion, then flipping them back to allies when all units in the location die so that units in other locations don't end up killing one another.

    Any suggestions for better ways to do this as they work their way through multiple encounters?



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [05:51 pm]
    UndeadStar -- Symmetry
    Symmetry shouted: kinda looks like we need to auto ban all new accounts with 3 numbers at the end lmao
    Members Online: UndeadStar, FranciBizjak898, LukaNovak271, GesineFalkenthal863, AjdaSkubic907, JonasAlthaus047, LukasWeigel655
    [05:13 pm]
    lil-Inferno -- SEN literally had a butlerian jihad before and now he talmbout we aren't anti-bot? 🤨
    [12:17 pm]
    Zakerozi -- Dfk is going on here :D
    [03:47 am]
    Symmetry -- kinda looks like we need to auto ban all new accounts with 3 numbers at the end lmao
    [12:56 am]
    Heinermann -- who decided "we're not necessarily anti-bot"? It's worse than spam, it's social engineering to trick people into believing that they are legitimate and get them to click their links
    [2026-11-12. : 6:04 pm]
    NudeRaider -- ihjel
    ihjel shouted: "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
    ihjel
    ihjel shouted: "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
    it's rather inconvenient actually, as it requires you to transfer it to Custom Score which might even interfere with what you're measuring. But IIRC you can also use EUDs to display it which by now could actually be somewhat convenient.
    [2026-11-11. : 9:25 pm]
    ihjel -- "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
    [2026-11-11. : 6:59 pm]
    Symmetry -- I just pasted what google ai told me to try to form a feedback loop
    [2026-11-11. : 1:24 pm]
    NudeRaider -- UndeadStar
    UndeadStar shouted: https://staredit.net/topic/18961/ <= wow, if there wasn't a capital letter on almost every word in the title, and a link in the signature, I may not have guesses it's an AI bot. I don't know much about map editing, but the content may even be relevant enough to be kept.
    Yeah, I've noticed it, but it raised a couple of relevant questions and kept the ad to the signature so if someone were to engage with the topic it could be a net positive which is why I kept it. We're not necessarily anti-bot, just anti-spam. Thanks to Symmetry who realized my hope. :)
    Please log in to shout.


    Members Online: ihjel, Soul Filcher