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.
    [2024-4-27. : 9:38 pm]
    NudeRaider -- Ultraviolet
    Ultraviolet shouted: NudeRaider sing it brother
    trust me, you don't wanna hear that. I defer that to the pros.
    [2024-4-27. : 7:56 pm]
    Ultraviolet -- NudeRaider
    NudeRaider shouted: "War nie wirklich weg" 🎵
    sing it brother
    [2024-4-27. : 6:24 pm]
    NudeRaider -- "War nie wirklich weg" 🎵
    [2024-4-27. : 3:33 pm]
    O)FaRTy1billion[MM] -- o sen is back
    [2024-4-27. : 1:53 am]
    Ultraviolet -- :lol:
    [2024-4-26. : 6:51 pm]
    Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
    [2024-4-26. : 6:50 pm]
    NudeRaider -- Vrael
    Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
    sounds like moisture control is often a pressing concern in your city
    [2024-4-26. : 6:50 pm]
    Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
    [2024-4-26. : 6:49 pm]
    Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
    [2024-4-26. : 6:48 pm]
    Vrael -- On this Topic, I could definitely use some Introductions.
    Please log in to shout.


    Members Online: jjf28