Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Trigger creating more zealots than I'd like
Trigger creating more zealots than I'd like
This topic is locked. You can no longer write replies here.
May 11 2010, 12:13 am
By: Symmetry  

May 11 2010, 12:13 am Symmetry Post #1

Dungeon Master

So I've got these triggers:

Code
Trigger("All players"){
Conditions:
    Always();

Actions:
    Set Resources("Current Player", Set To, 50, ore);
}

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

Trigger("All players"){
Conditions:
    Command("Current Player", "Any unit", At most, 0);

Actions:
    Defeat();
}

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

Trigger("All players"){
Conditions:
    Command("Non Allied Victory Players", "Any unit", At most, 0);

Actions:
    Victory();
}

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

Trigger("All players"){
Conditions:
    Command("Player 12", "Terran Comsat Station", At least, 1);

Actions:
    Move Location("Player 12", "Terran Comsat Station", "Anywhere", "Location 0");
    Remove Unit At Location("Player 12", "Terran Comsat Station", All, "Anywhere");
    Create Unit("Current Player", "Protoss Zealot", 1, "Location 0");
    Wait(50);
    Preserve Trigger();
}

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

+hypers


And for some reason, when I spawn a comsat station it creates a zealot at the location, and an additional zealot at the center of the map. I have no idea why it creates a zealot at the center of the map, and if anyone could help out, it'd be nice :/



:voy: :jaff: :voy: :jaff:

May 11 2010, 12:23 am NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Problem 1: Trigger owner is All Players. ==> Use only one player that owns the trigger
Problem 2: Commands doesn't update until the next trigger loop. ==> use bring

Fixing either problem will make it work.




May 11 2010, 12:31 am Symmetry Post #3

Dungeon Master

You sir are a God among men! Thank you.

Topic can be locked :DDDDDDDDD



:voy: :jaff: :voy: :jaff:

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-4-29. : 2:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: jun3hong, Revenant