Spawn Help
May 17 2010, 1:29 am
By: DeM)s.  

May 17 2010, 1:29 am DeM)s. Post #1



I need help on spawning. Currently, during the course of the game the desired group of units that are supposed to spawn don't spawn.

Here's my trigger:
Trigger
Players

  • Current Player
  • Conditions

  • Countdown time is at most 1 game second
  • Current player commands at least 1 Base X
  • Actions

  • Create X number of units at Location X
  • Preserve Trigger
  • Comment: Base X Spawn X


  • Any help? I tried looking in the wiki but I couldn't find anything. If there's a wiki page about it please point me in its direction. Thanks.

    Post has been edited 1 time(s), last time on May 19 2010, 8:45 pm by DeM)s..



    None.

    May 17 2010, 1:51 am Chia-Tyrant Post #2



    Why do you use "Countdown timer is at least 1 game second" ? Don't you mean "Elapsed Scenario time" ? Otherwise, you need to have the countdown timer activated and above 1 second.



    None.

    May 17 2010, 2:12 am DeM)s. Post #3



    The countdown timer is activated and no i did not mean Elapsed Scenario Time. For the game there are 2 minute "cycles" and upon the completion of each "cycle" (00:00 technically) that's when the spawn is supposed to occur. In most cases in does occur but sometimes it skips and I want to know why that's happening.



    None.

    May 17 2010, 5:39 am rockz Post #4

    ᴄʜᴇᴇsᴇ ɪᴛ!

    I'll give you a hint:
    The countdown timer isn't 1, current player doesn't command at least 1 base x, or you typed in the trigger wrong.

    My bet is you type the trigger in wrong, and it's:
    Countdown time is at most 1 game second

    That way, the trigger cycle occasionally skips the time when the countdown timer is 0:00-0:01. To remedy this, make the triggers run at exactly 0:00, and then reset the timer with player 8 (or the last computer player who uses the countdown clock in triggers) at 0:00 to 2 minutes.

    Either way, I can't figure out exactly what you're doing wrong since you only posted one trigger. Either post the relevant triggers or the map.



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    May 20 2010, 8:57 pm DeM)s. Post #5



    Okay here it is. Please take a look at it.

    Attachments:
    Battle for Middle-Earth.scx
    Hits: 1 Size: 272kb



    None.

    May 20 2010, 10:06 pm rockz Post #6

    ᴄʜᴇᴇsᴇ ɪᴛ!

    Code
    Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6","Player 7","Current Player"){
    Conditions:
        Countdown Timer(At most, 1);
        Command("Current Player", "Power Generator", At least, 1);

    Actions:
        Create Unit("Current Player", "Protoss Zealot", 1, "The Shire Spawn Area");
        Create Unit("Current Player", "Terran Marine", 2, "The Shire Spawn Area");
        Preserve Trigger();
        Comment("The Shire Spawn [0]");
    }

    //-----------------------------------------------------------------//

    These triggers won't run 100% if you don't have hyper triggers. Change it to exactly 0, and put:
    Code
    Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6","Player 7"){
    Conditions:
        Countdown Timer(Exactly, 0);

    Actions:
        Preserve Trigger();
        Set Countdown Timer(Set To, 150);
        Comment("Reset Countdown Timer");
    }

    //-----------------------------------------------------------------//

    at the bottom of the trigger list under player 8.

    Also note that more enemies spawn based on the number of player in the game since each player will run that trigger. if you only want the same amount regardless of player number, use player 8 to spawn them, making sure that the reset timer is below the spawn trigger. Also note that "current player" is not a proper player type.

    If you're wondering how I got these text triggers, it's in SCMDraft under Trigger Editor (not classic).



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [02:43 am]
    Symmetry -- I'm doing my best, damn it
    [2026-9-28. : 4:46 pm]
    Ultraviolet -- @:@
    @:@ shouted: this community still going strong?
    Still going.. strong is debatable though.
    [2026-9-28. : 4:13 pm]
    WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
    [2026-9-28. : 4:11 pm]
    WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
    [2026-9-28. : 4:10 pm]
    WeirdoX4857 -- Where is everybody
    [2026-9-28. : 1:21 pm]
    @:@ -- this community still going strong?
    [2026-9-27. : 4:30 pm]
    Oh_Man -- yeah, probs
    [2026-9-27. : 3:11 pm]
    NudeRaider -- I bet it just needs another training session against pros instead of only against itself and nobody will be able to stop it anymore.
    [2026-9-27. : 3:09 pm]
    NudeRaider -- Oh_Man
    Oh_Man shouted: pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
    so it can be beaten by a prepared pro, even in macro games, if only barely. the muta micro in particular seems really hard to handle for protoss ground though. In the open goons can't catch them, in the base they trip over buildings, it just instantly flies out of storms and they fly circles around archons. Mass cannons do work, but can't cover the whole map with it. Probably need mass corsair to counter and hope you can outmaneuver all the scourge.
    [2026-9-27. : 2:14 am]
    Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
    Please log in to shout.


    Members Online: MobMob