• 0

    posted a message on Prevent Blocking/Walling With Units!

    Working nicely now, thanks guys.

    Posted in: Triggers
  • 0

    posted a message on Prevent Blocking/Walling With Units!

    Untitled Trigger 004
    Events
    Timer - Every 2.0 seconds of Game Time
    Local Variables
    Conditions
    Actions
    Unit Group - Pick each unit in (Any units in (Entire map) owned by player 15 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
    Actions
    Unit - Order (Picked unit) to ( Move targeting Point 014) (Replace Existing Orders)

     

    Makes units move

     

    Untitled Trigger 015
    Events
    Unit - Any Unit uses Move at Generic1 - Any stage (Ignore shared abilities)
    Local Variables
    Conditions
    (Owner of (Triggering unit)) == 15
    Actions
    General - If (Conditions) then do (Actions) else do (Actions)
    If
    ((Position of (Triggering unit)) and Point 014 are connected by pathing) == False
    Then
    Unit - Order (Triggering unit) to ( Patrol targeting Point 014) (Replace Existing Orders)
    Else

    *Supposed* to make the creeps check every 2 seconds if the path is passable, but it's not working.  The problem is they remain connected by pathing despite there being units blocking their path, so the condition isn't being met.  I'm searching for a way to check if their path is blocked by either units or structures, so they know whether they need to attack or just move through mazes

     

    Untitled Trigger 020
    Events
    Unit - Any Unit uses Patrol at Generic1 - Any stage (Ignore shared abilities)
    Local Variables
    Conditions
    (Owner of (Triggering unit)) == 15
    Actions
    General - If (Conditions) then do (Actions) else do (Actions)
    If
    ((Position of (Triggering unit)) and Point 014 are connected by pathing) == True
    Then
    Unit - Order (Triggering unit) to ( Move targeting Point 014) (Replace Existing Orders)
    Else

    Posted in: Triggers
  • 0

    posted a message on Create Random Unit Group

    Hi, this is my first post.  I'm new to the editor.  What is the simplest way to create a random unit group?  I want to have groups such as 6 marines and 1 medic, or 2 immortals and 2 stalkers, or 5 hydras, and so on.  I want the player to get a random pre-made group when they send an scv to a location

     

    EDIT: solved, there was a close enough answer here and I learned what I needed from there

    Posted in: Triggers
  • To post a comment, please or register a new account.