Staredit Network

Staredit Network -> UMS Assistance -> Trigger problem.
Report, edit, etc...Posted by TDT-DaRkFiRe on 2005-07-17 at 18:21:56
This doesnt work:

Trigger("Player 6"){
Conditions:
Always();

Actions:
Move Location("Player 6", "Protoss Observer", "Anywhere", "Spawn units #3");
Preserve Trigger();
Comment("Spawn units #5");


Trigger("Player 6"){
Conditions:
Bring("Player 1", "Men", "Spawn units #3", At least, 1);

Actions:
Kill Unit At Location("Player 6", "Protoss Observer", 1, "Spawn units #3");
Create Unit("Player 8", "Zerg Hydralisk", 1, "Spawn units #3");
Create Unit("Player 8", "Zerg Zergling", 4, "Spawn units #3");
Comment("Spawn units #6");
Create Unit("Player 6", "Protoss Observer", 1, "Spawn units #3");
Preserve Trigger();

I think the problem lies with the move locations. But I didnt get it to spawn units even once.

Im sorry I did this so sloppy, but I am feeling really sleepy, so I posted this right before I went to bed.

I hope someone can help me out here.
Report, edit, etc...Posted by Snipe on 2005-07-17 at 18:23:28
ok. here is what you have to do. Explain what you want it to do.. like is the trigger to kill somhting or w/e. Explain the acual trigger and we will help you with it.
Report, edit, etc...Posted by slayer766 on 2005-07-17 at 18:27:57
QUOTE(Da-Darkfire @ Jul 17 2005, 05:21 PM)
Trigger("Player 6"){
Conditions:
Always();

Actions:
Move Location("Player 6", "Protoss Observer", "Anywhere", "Spawn units #3");
Preserve Trigger();
Comment("Spawn units #5");
Trigger("Player 6"){
Conditions:
Bring("Player 1", "Men", "Spawn units #3", At least, 1);

Actions:
Kill Unit At Location("Player 6", "Protoss Observer", 1, "Spawn units #3");
Create Unit("Player 8", "Zerg Hydralisk", 1, "Spawn units #3");
Create Unit("Player 8", "Zerg Zergling", 4, "Spawn units #3");
Comment("Spawn units #6");
Create Unit("Player 6", "Protoss Observer", 1, "Spawn units #3");
Preserve Trigger();


You have the second trigger for the conditions set up to Player 1 Brings at least one men to spawn units 3, and what you want is for when the observer gets there for player 6 to spawn units, thats why it's not working. So just change this:

Trigger("Player 6"){
Conditions:
Bring("Player 6", "Men", "Spawn units #3", At least, 1);

Actions:
Kill Unit At Location("Player 6", "Protoss Observer", 1, "Spawn units #3");
Create Unit("Player 8", "Zerg Hydralisk", 1, "Spawn units #3");
Create Unit("Player 8", "Zerg Zergling", 4, "Spawn units #3");
Comment("Spawn units #6");
Create Unit("Player 6", "Protoss Observer", 1, "Spawn units #3");
Preserve Trigger();

I think that's how you want it though.
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-18 at 01:59:02
I can't understand your impossibly flawed syntax.

Move Location("Player 6", "Protoss Observer", "Anywhere", "Spawn units #3");

Is this "MOVE LOCATION "Spawn units #3" ON "Protoss Observer" OWNED BY "Player 6" AT "Anywhere"?

Starforge: MoveLocation(Spawn units #3,Protoss Observer,P6,Anywhere);

I can't follow your triggers very well.

Second, triggers will always work, unless you corrupt the CHK. They may not do what you want them to do.

Third of all, you need to state in what way the trigger fails to fufill your expectations. What goes wrong?
Report, edit, etc...Posted by TDT-DaRkFiRe on 2005-07-18 at 07:38:25
Well, first of all, what I was trying is: I have a bunch of observers, about 50, roaming around the map with junkyard dog. (When they get out of ''range'' they get moved back to the middle) Well, its an RPG. So player 1 controles 1 unit. When he gets near an observer, the observer is supposed to explode and enemies should be spawned.

The triggers where copied from the SCMDraft plugin.

And I dont know what ''impossibly flawed syntax.'' means. Since im only 16 and not American happy.gif .

QUOTE
Is this "MOVE LOCATION "Spawn units #3" ON "Protoss Observer" OWNED BY "Player 6" AT "Anywhere"?


Jup, thats right.

QUOTE
Third of all, you need to state in what way the trigger fails to fufill your expectations. What goes wrong?


The thing that goes wrong is, nothing happends. They roam around, they stay in their area. I can't see if the move location is wrong, or the spawning, since nothing happends.
Report, edit, etc...Posted by Snipe on 2005-07-18 at 11:29:31
oook. I see what you wanted to do. Thats interesting. I hope slayer put it down for you. I didn't understand what it was. WEll good luck on completing your map.
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-18 at 14:22:39
Slayer is wrong. The system fails because if you have 50 P6 obsevrers running around in a box, the single location "Spawn Units #3" will constantly center on only the top-left-most observer. (or bottom left I forget which). Therefore, the location that triggers the spawn only follows one observer, it doesn't jump between them. If you brought your unit to the the one observer with the location, then the trigger you fire.

Slayer's advice would create a stream of enemies under a stationary exploding observer.

Your system has several flaws. First, you need to make the location follow the hero owned by player one, and make the trigger fire when an observer appears over your hero. Second, you need to respawn the observer not where you killed it, otherwise it will spam enemies right there and the observer won't move.

QUOTE
And I dont know what ''impossibly flawed syntax.'' means. Since im only 16 and not American happy.gif .


Then screw TrigEdit. The way those trigger values flow makes no logical sense, making them hard to read.
Report, edit, etc...Posted by TDT-DaRkFiRe on 2005-07-18 at 14:37:47
Oh right, thanks, I should have thought that up myself..

And about the spawning observer observer part, Those are just for show, but I forgot the kill trigger..

Thanks for your help.
Report, edit, etc...Posted by slayer766 on 2005-07-18 at 15:20:11
QUOTE(DT_Battlekruser @ Jul 18 2005, 01:22 PM)
[color=#b5b5ff]Slayer is wrong.  The system fails because if you have 50 P6 obsevrers running around in a box, the single location "Spawn Units #3" will constantly center on only the top-left-most observer. (or bottom left I forget which).  Therefore, the location that triggers the spawn only follows one observer, it doesn't jump between them.  If you brought your unit to the the one observer with the location, then the trigger you fire.

Slayer's advice would create a stream of enemies under a stationary exploding observer.


Yeah well I did not understand with where he was coming from, and my suggestion was just a temporary one anyways, with everyone else giving support.
Next Page (1)