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-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
[2026-6-19. : 9:57 am]
Oh_Man -- artosis dropped pretty interesting vid: https://youtu.be/EqZHB8Blra4
[2026-6-18. : 5:01 pm]
Ultraviolet -- :wob:
[2026-6-17. : 6:15 am]
RexyRex -- :wob:
[2026-6-16. : 6:18 am]
IskatuMesk -- me when sick af
[2026-6-16. : 5:45 am]
NudeRaider -- Ultraviolet
Ultraviolet shouted: unless you're a euro weirdo
seems plausible: [01:55 am] dumbducky -- real dad hours who up
[2026-6-16. : 2:45 am]
Ultraviolet -- unless you're a euro weirdo
[2026-6-16. : 2:45 am]
Ultraviolet -- "[08:55 pm] dumbducky -- real dad hours who up" better question, who's already down at 8:55pm?
[2026-6-16. : 12:55 am]
dumbducky -- real dad hours who up
[2026-6-15. : 7:17 pm]
NudeRaider -- why not both?
Please log in to shout.


Members Online: jun3hong