Staredit Network

Staredit Network -> UMS Assistance -> Switching unit between lanes
Report, edit, etc...Posted by Slayer_dt_ on 2005-11-26 at 03:53:22
Okei, this is the problem here. I'm trying to switch units between lanes when a person who is supposed to occupy that lane has left, been banned or does not exist. I'm supposed to do that 3 times. The first lane switch was succesful but the second wasn't. I'm currently using this trigger:
Conditions: Player 2 brings 0 units to Location 2
Triggers: Move all units owned by Current player (Player 1, 3 and 4) to Location 3 (Lane 3)
However, moving from 3 to 4 does not work. Can someone help me with this?
Report, edit, etc...Posted by www.com.au on 2005-11-26 at 09:47:33
i cant understand what youre trying to do..

can u post a screenshot or a more detailed explanation please?

i kind of get you want something to change lanes.. if theyre not there or something..
Report, edit, etc...Posted by M_s4 on 2005-11-26 at 10:39:44
Are you trying to make a line tower defense (I only got a little of your explanation, but I took a look at your siggy)
Report, edit, etc...Posted by Slayer_dt_ on 2005-11-26 at 10:51:56
QUOTE(M_s4 @ Nov 26 2005, 11:39 PM)
Are you trying to make a line tower defense (I only got a little of your explanation, but I took a look at your siggy)
[right][snapback]365024[/snapback][/right]

All my current 'help me please' topics are related to my Line Tower D..
Ok I'll explain a bit simpler.
Lane A -> Lane B (Works Fine)
Lane A -> Lane B -> Lane C (Units SHOULD be moving down the lane but they keep stopping as if though they are getting the command to stop)
Lane A -> Lane B -> Lane C -> Lane D __
^________________________________|

I want the units to keep circulating... hope you get what I'm trying to say...
Report, edit, etc...Posted by Oo.Turin.oO on 2005-11-26 at 12:50:22
Try using Player 12 does command players there. Also, each trigger must be under a player that is still in the game. If your triggers were for player 2, well, player 2 is gone so his/her triggers won't run.
Report, edit, etc...Posted by Oo.Insane.oO on 2005-11-26 at 17:10:51
So you would want to do something like this?


Trigger
Description:
1 to 2
Players:
¤ player8
Conditions:
¤ Player 8 goes to location Go To 2
Actions:
¤ Move all units owned by player 8 at location Go to to to location lane 2 to lane 2



Trigger
Description:
2 to 3
Players:
¤ player8
Conditions:
¤ Player 8 goes to location Go To 3
Actions:
¤ Move all units owned by player 8 at location Go to to to location lane 3 to lane 3



Trigger
Description:
3 to 1
Players:
¤ player8
Conditions:
¤ Player 1 goes to location Go Back To Lane 1
Actions:
¤ Move all units owned by player 8 at location Go to to to location go back to lane 1 to location Lane 1


Would this work or am I completely off of what you want to accomplish?

Report, edit, etc...Posted by ... on 2005-11-26 at 17:12:50
When the player leaves it belongs to P12. So, thats why your triggers doesnt work. Try to change all players in your triggers that has to do with switching lanes to P12.
Report, edit, etc...Posted by I-X-King-X-I on 2005-11-26 at 17:37:34
are you trying to make it where
each player has a little strip

units go through p1's

then go to p2's

then to p3's

then finally p4's

but if like p2 is banned

you want it to go to

p1 to p3 instead?
Report, edit, etc...Posted by Slayer_dt_ on 2005-11-26 at 19:38:06
Yes! Finally someone who understands me! That's what I need...
Report, edit, etc...Posted by fritfrat(U) on 2005-11-26 at 23:27:18
You said the units stop when you try to move them, correct?

This is most likely due to the fact that their destination location is filled or impassible, and they cannot be moved.

Are you sure that you are trying to move all the units to the correct location? Double check to make sure your destination location is right tongue.gif




If you do not get this to work, you could do alternate triggers like this, once units get to the end of path 1:

Player: the computer.

If P2 commands atleast 1 unit, move all unit at end of path 1 to start of path 2.
If P2 commands exactly 0 unit and P3 commands atleast 1 unit, move all any unit for current player from end of path 1 to start of path 3.
If P2 and P3 command 0 units and P4 commands atleast 1 unit, move all unit at the end of path 1 to the start of path 4.


Just an idea smile.gif
Report, edit, etc...Posted by Oo.Insane.oO on 2005-11-26 at 23:49:50
QUOTE(Slayer_dt_ @ Nov 26 2005, 07:38 PM)
Yes! Finally someone who understands me! That's what I need...
[right][snapback]365339[/snapback][/right]


If you want something like that do something like


Trigger
Description:
Blah
Players:
¤ All Players
Conditions:
¤ Player 2 Commands exactially 0 (Units) at location Banner
¤ Player 8 Brings atleast 1 any unit to location Go To p2
Actions:
¤ Move units from location Go To p2 to p3


Maybe that solves your question Im not positive if you need a preserve but you probally do

Report, edit, etc...Posted by I-X-King-X-I on 2005-11-27 at 00:11:33
Im not sure how to do the trigger(s) exactly but

i think its going have something with "if player 2 doesnt own a unit" skip the units to p3's strip..

er you might just have to mess with it
Report, edit, etc...Posted by Slayer_dt_ on 2005-11-27 at 03:59:40
QUOTE(fritfrat @ Nov 27 2005, 12:27 PM)
You said the units stop when you try to move them, correct?

Are you sure that you are trying to move all the units to the correct location? Double check to make sure your destination location is right  tongue.gif
[right][snapback]365493[/snapback][/right]

That's exactly what happened, and no, the location is correct tongue.gif
QUOTE(fritfrat @ Nov 27 2005, 12:27 PM)
If you do not get this to work, you could do alternate triggers like this, once units get to the end of path 1:

Player: the computer.

If P2 commands atleast 1 unit, move all unit at end of path 1 to start of path 2.
If P2 commands exactly 0 unit and P3 commands atleast 1 unit, move all any unit for current player from end of path 1 to start of path 3.
If P2 and P3 command 0 units and P4 commands atleast 1 unit, move all unit at the end of path 1 to the start of path 4.
Just an idea  smile.gif
[right][snapback]365493[/snapback][/right]

I had the same idea, but I can't find the right conditions
Report, edit, etc...Posted by I-X-King-X-I on 2005-11-27 at 04:05:37
im sure having it just going through each line wont be THAT much of a problem
Report, edit, etc...Posted by Slayer_dt_ on 2005-11-27 at 04:10:45
Yea, switching to first lane isn't hard but switching directly to second lane isn't cry.gif cry.gif cry.gif
Report, edit, etc...Posted by fritfrat(U) on 2005-11-27 at 12:08:29
I included the conditions in my post.

Conditions:
If P2 commands atleast 1 unit,
Actions:
move all unit at end of path 1 to start of path 2.

Conditions:
If P2 commands exactly 0 unit and P3 commands atleast 1 unit,
Actions:
move all any unit for current player from end of path 1 to start of path 3.

Conditions:
If P2 and P3 command 0 units and P4 commands atleast 1 unit,
Actions:
move all unit at the end of path 1 to the start of path 4.

I hope that clears it up for you.

As for your current triggers: What player do you have them under? All of these triggers should be under the computer if you use "Current Player," which you mentioned you did.
Report, edit, etc...Posted by Slayer_dt_ on 2005-11-27 at 13:10:23
I made the same trigger for each player (different player settings and locations of course) but those didn't work.. I'll try yours.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-11-28 at 14:32:36
So i'm borred now class was canceled...

I see two large potential problems. First is your trigger order, you need to make sure that it is continously moved from one to the next (move to slot 3 then slot 4)

And the second is the player who owns the triggers. You probolly have at least one computer but if your using p12 units for the enemy or some crap like that make all the triggers owned by all the human players instead.

Trigger
Players:
¤ Player 8
Conditions:
¤ Player 1 commands exactly 0 men
¤ Comp brings at least one men to P1Start
Actions:
¤ Move all men owned by Comp at P1Start to P2Start
¤ Preserve Trigger


Trigger
Players:
¤ Player 8
Conditions:
¤ Player 2 commands exactly 0 men
¤ Comp brings at least one men to P2Start
Actions:
¤ Move all men owned by Comp at P2Start to P3Start
¤ Preserve Trigger


Trigger
Players:
¤ Player 8
Conditions:
¤ Player 3 commands exactly 0 men
¤ Comp brings at least one men to P3Start
Actions:
¤ Move all men owned by Comp at P3Start to P4Start
¤ Preserve Trigger


If your spawning men at EVERY start then you will need a trigger to move units from P4>P1 and then copy all the triggers I have again, So you will have the same set both above and below the P4>P1 trigger. If your only spawning them at P1's start location then what i have listed will work.

PS. Of course adjust this for how many players you have.

That should do it for ya, if doesn't then you have left something important out of your description.
Report, edit, etc...Posted by Slayer_dt_ on 2005-11-28 at 20:56:50
Ok, but what if I don't want my units to spawn at my own lane?
Report, edit, etc...Posted by in_a_biskit on 2005-11-28 at 21:26:13
You mean, you want
Trigger
Players:
¤ Player 8
Conditions:
¤ Player 1 brings at least 1 men to 'p1 start'
Actions:
¤ move all men at 'p1 start' to 'p2 start'
¤ preserve trigger
etc?
Report, edit, etc...Posted by Slayer_dt_ on 2005-11-29 at 05:38:16
QUOTE(in_a_biskit @ Nov 29 2005, 10:26 AM)
You mean, you want


Trigger
Players:
¤ Player 8
Conditions:
¤ Player 1 brings at least 1 men to 'p1 start'
Actions:
¤ move all men at 'p1 start' to 'p2 start'
¤ preserve trigger
etc?
[right][snapback]367039[/snapback][/right]

However, the 'men' will include my builder.. something which I don't want.. should I make a trigger to just skip from P4 to P2 for red, P1 to P3 for blue and etc? I think it might work
Report, edit, etc...Posted by in_a_biskit on 2005-11-30 at 06:42:21
Your suggestion should work if you modify the previous triggers to only work for the appropriate players,
But if your builder isn't allowed into the 'start area', then simply add the action "move 'builder' from 'p# start' to 'p# area'" to handle that as well in the same trigger.
Next Page (1)