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.
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: aflszzwff, Ultraviolet