• 0

    posted a message on How to make waves spawn 1 unit at a time?

    If you'd like I can show you a cleaner (but more confusing) way to do this in a couple hours via a skype or twitch stream. But due to it being more complex I didn't even want to attempt explaining it with limited resources at work. With HotS release I've been thinking about getting back into Galaxy Editor, and would help you with your project whatever it may be until I come up with something for myself to work on.

    I'm no professional but I've made a fully functional TD before with leaderboards and dialogs and income and lots of TD stuff. :)

    Let me know.

    Posted in: Triggers
  • 0

    posted a message on How to make waves spawn 1 unit at a time?

    Been a while since I triggered but here is generally how I'd do it.

    [
    Trigger: Map initialization.
    Actions-
    Set variable (real) SpawnTimer = 0.5 (How fast you want the individual units to spawn)
    Set variable (integer) SpawnCount = 30 (How many units you want to spawn per wave)
    Set variable (integer) SpawnedUnits = 0 (How many units have spawned so far)
    ]

    [
    Trigger: Spawn Unit (Initially Off)
    Event-
    Periodic timer every (int(SpawnTimer)) seconds (Once turned on this trigger will run every 0.5 seconds)

    Actions-
    If Then Else - Multiple Actions
    If-
    SpawnCount <- SpawnedUnits (If the number of spawned units is less than the number of units we need to spawn)
    Then-
    Create Unit - 1 'WaveUnitType' at spawnpoint facing whatever direction (Create a unit)
    Set SpawnedUnits =+ 1 (Add one to number of spawned units variable)
    Else-
    Trigger - Turn off this trigger. (If we created all 30 of our units turn off this trigger to stop spawning units)
    ]

    [
    Trigger: Level 1
    Event- Whatever starts spawning units
    Actions-
    Set WaveUnitType = "Marine"
    Set SpawnedUnits = 0 (Reset the number of units spawned to 0 if you're doing more than 1 level)
    Set SpawnCount = 30 (You can change how many units spawn for each level, say you want 15 bc instead of 30 marines for level 2)
    Set SpawnTimer = 0.5 (You can also change the spawn timer here to spawn units slower or faster depending on what level you're on)
    UI - Display Message 'Level 1 - ' + String(Unit Type(Name of WaveUnitType)) (Display to the player what level it is)
    Trigger - Turn On Spawn Unit (Turn on the unit spawning trigger)
    ]

    Posted in: Triggers
  • 0

    posted a message on Trigger to check units in region?

    @Fullachain

    I've written what I think might work.

    If Then Else
     -If
       -Number of Units in Unit Group
          -Type: Living
          -Unit Group: Units in Region With Alliance To Player
             -Region: Triggering Region
             -Alliance: Enemy
             -Player: Triggering Player
             -Unit Filter: Excluded: Structure, Missile, Dead, Hidden
          -Operator: =
          -Value: 0
     -Then
        - Unit
           -Change ownership of Supply Depot (Lowered) [30.50, 35.50] to player (Owner of (Triggering unit)) and Change Color
     -Else
        -UI
           -Text Message Display "DEBUG: Can not capture, enemy units..." for (All players) to Subtitle area

    Posted in: Triggers
  • 0

    posted a message on Controlling zones

    @Cbasz95: Go

    Hey, I made quick map demonstrating how to accomplish what I think you're trying to do. I put comments in there trying to explain what I was doing. http://dl.dropbox.com/u/6781109/ControlZones.SC2Map Download Size 34KB

    Enter a control zone with any unit and it becomes yours (spawning units). When all of the spawned units from that control zone die, whoever killed the last one immediately takes control of the zone, and has units spawned for him.

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