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.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Roy