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.
    [2026-9-25. : 2:22 pm]
    Oh_Man -- https://youtu.be/Lfo4C0xzU04
    [2026-9-25. : 12:00 am]
    Oh_Man -- he hasnt won a single game so far this is hilarious
    [2026-9-24. : 11:41 pm]
    Oh_Man -- new arty username Rage Against The Machine
    [2026-9-24. : 10:14 pm]
    Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
    [2026-9-24. : 8:12 pm]
    Ultraviolet -- do you even lift bro?
    [2026-9-23. : 5:21 pm]
    NudeRaider -- Oh_Man
    Oh_Man shouted: NudeRaider yeh thts straight up cheating
    the mutas yes, the wraiths probably not. Have you even watched the video? ;)
    [2026-9-23. : 12:56 pm]
    Oh_Man -- NudeRaider
    NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
    yeh thts straight up cheating
    [2026-9-23. : 12:24 pm]
    Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
    [2026-9-23. : 10:09 am]
    NimoStar -- It can by playing the same map thousands of times. It is similar to AI speedrunning games
    Please log in to shout.


    Members Online: O)FaRTy1billion[MM], MobMob