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-18. : 3:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[2026-4-17. : 4:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[2026-4-17. : 11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
Please log in to shout.


Members Online: 8882a