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-5-12. : 8:51 pm]
    l)ark_ssj9kevin -- Are you excited for Homeworld 3?
    [2024-5-12. : 8:44 pm]
    l)ark_ssj9kevin -- Hi Brusilov
    [2024-5-12. : 4:35 pm]
    O)FaRTy1billion[MM] -- Brusilov
    Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
    my server that was hosting it died
    [2024-5-10. : 8:46 pm]
    NudeRaider -- Brusilov
    Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
    https://armoha.github.io/eud-book/
    [2024-5-10. : 8:36 am]
    Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
    [2024-5-09. : 11:31 pm]
    Vrael -- :wob:
    [2024-5-09. : 8:42 pm]
    Ultraviolet -- :wob:
    [2024-5-08. : 10:09 pm]
    Ultraviolet -- let's fucking go on a madmen rage bruh
    [2024-5-08. : 10:01 pm]
    Vrael -- Alright fucks its time for cake and violence
    [2024-5-07. : 7:47 pm]
    Ultraviolet -- Yeah, I suppose there's something to that
    Please log in to shout.


    Members Online: lil-Inferno