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:27 am]
    Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
    [2026-7-17. : 2:58 pm]
    Ultraviolet -- Symmetry
    Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
    fr fr
    [2026-7-17. : 2:39 am]
    Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
    [2026-7-16. : 6:28 am]
    NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
    [2026-7-16. : 6:26 am]
    NudeRaider -- I mean yes, maps - through EUDs - were theoretically able to do that as well, but that was patched quickly.
    [2026-7-16. : 6:25 am]
    NudeRaider -- Symmetry
    Symmetry shouted: Ohhh imagine a SC map that could delete itself
    not the map, the editor
    [2026-7-16. : 2:28 am]
    Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
    [2026-7-16. : 2:28 am]
    Symmetry -- Ohhh imagine a SC map that could delete itself
    [2026-7-15. : 8:51 pm]
    NudeRaider -- Symmetry
    Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
    yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
    [2026-7-15. : 4:10 am]
    Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
    Please log in to shout.


    Members Online: RIVE, Symmetry