Results 1 to 4 of 4

Thread: Is there a simpler way?

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    5

    Default Is there a simpler way?

    There are two teams. Every player selects a fighting unit by placing a selector on a beacon.
    How can I most efficiently define rule so that trigger player get his selected troops on one of two possible locations, depending on which team he is a part of.

    Currently I'm using action "Unit-Create X Unit for player (Triggering player) at Team 1 facing 270 degrees", but this way I would have to define over 30 rules for EACH player., since there will be 30 possible selections.

    Is there a way to define Trigger players team?

    Or some other logic I'm missing...

  2. #2
    Gradius's Avatar SC:L Addict
    Join Date
    Apr 2009
    Posts
    9,988

    Default Re: Is there a simpler way?

    I don't know if there's a way to make it completely easy, but you can cut down on the amount of triggers by putting players in player groups during map initialization and then doing this:

    General - If (Conditions) then do (Actions) else do (Actions)
    If
    ((Triggering player) is in team1PlayerGroup) == true
    Then
    Unit - Create 2 Marauder for player (Triggering player) at Top Team Spawn facing 270.0 degrees (No Options)
    Else
    Unit - Create 2 Marauder for player (Triggering player) at Bottom Team Spawn facing 270.0 degrees (No Options)

  3. #3
    Junior Member
    Join Date
    Aug 2010
    Posts
    5

    Default Re: Is there a simpler way?

    thx, That is exactly what I needed.

  4. #4
    Junior Member
    Join Date
    Aug 2010
    Posts
    5

    Default Re: Is there a simpler way?

    btw, where did you get that quote from?

Similar Threads

  1. Simpler, more realistic Thor model?
    By 0neder in forum StarCraft Discussion
    Replies: 128
    Last Post: 02-21-2010, 04:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •