Staredit Network

Staredit Network -> UMS Assistance -> I have 3 questions...Plz come in
Report, edit, etc...Posted by hata711 on 2005-01-15 at 12:17:32
First question...

How do i give units to a ally after player's left...
For example, 2 players...
1 player has left and his units will give to another player.

Second question

If player 1 owns a building at location x and it's razed by player 2.
Then the building will become player 2's at the same location.

Third question
Can i have players from 9~12 as computers and let them have units? (Building and Men).
So, i wil have a map that can let 8 players play also with 2 computers controlling.

Thanks... smile.gif
Report, edit, etc...Posted by OvErRuN on 2005-01-15 at 12:27:51
Woah, my brain has went dead of advanced skillz in mapping sence i stopped bye2.gif
Report, edit, etc...Posted by KaboomHahahein on 2005-01-15 at 12:42:24
When one of the player leaves his units will become p12 units so just make a trigger like this.


Trigger
Description:
Giveing the units after someone leaves
Players:
¤ current player
Conditions:
¤ p12 brings atleast 1 units to anywhere
Actions:
¤ Give 1 anyunit owned by p12 to current player
¤ Preserve trigger


Here is a link to the tutorial for this.

http://www.staredit.net/index.php?act=tuto...o%20Player%2012

It is basicly the same.

ADDITION:
For the other players 9-12 not all triggers will work for them so you will be limited.

If the player razes the building then you will need to recreate the building for the player that killed it.
Report, edit, etc...Posted by DT_Battlekruser on 2005-01-15 at 13:40:41
1. Yeah Kaboom Got it.
2. There isn't something simple for this. it would probabally require a complex system (which I can't think of offhand). unless it is just like one occurance of P1 death.
3. No, regardless of setting, P9-P12 units will always be neutral hostile. (I'm pretty darn sure). I set them to neutral and they still attacked.
Report, edit, etc...Posted by LegacyWeapon on 2005-01-15 at 14:55:24
p9-p11 are neutral hostile.
P12 are completely neutral.
You can let them have units but they won't do anything with them.
Report, edit, etc...Posted by hata711 on 2005-01-15 at 15:01:25
QUOTE(KaboomHahahein @ Jan 16 2005, 01:42 AM)
When one of the player leaves his units will become p12 units so just make a trigger like this.





Trigger
Description:
Giveing the units after someone leaves
Players:
¤ current player
Conditions:
¤ p12 brings atleast 1 units to anywhere
Actions:
¤ Give 1 anyunit owned by p12 to current player
¤ Preserve trigger


Here is a link to the tutorial for this.

http://www.staredit.net/index.php?act=tuto...o%20Player%2012

It is basicly the same.

ADDITION:
For the other players 9-12 not all triggers will work for them so you will be limited.

If the player razes the building then you will need to recreate the building for the player that killed it.
[right][snapback]125821[/snapback][/right]


Thanks but i have a big problem with P12...
Since i have two forces...A and B
If one play from A leaves, the unit sould goes to A.
However, the P12 doesn't have a choice for give units to ally....
Is there a way to solve this problem?
Report, edit, etc...Posted by LegacyWeapon on 2005-01-15 at 15:04:35
Depends... is there a certain area designated only for that player? How about only certain units? Any player who leaves, their units go to player 12. There is no way to tell the difference between Player 1's units and Player 2's. They are the same when they leave.
Report, edit, etc...Posted by hata711 on 2005-01-15 at 15:22:04
QUOTE(LegacyWeapon @ Jan 16 2005, 04:04 AM)
Depends... is there a certain area designated only for that player? How about only certain units? Any player who leaves, their units go to player 12. There is no way to tell the difference between Player 1's units and Player 2's. They are the same when they leave.
[right][snapback]125914[/snapback][/right]


So...that means, i can't make those quiter's units give to their allies?
Report, edit, etc...Posted by KaboomHahahein on 2005-01-15 at 15:23:28
Can't you just change the players selected?

Or you make 2 locations and if p12 brings a units to the location then give them to the certain player you want.
Report, edit, etc...Posted by hata711 on 2005-01-15 at 15:34:45
Maybe i didn't make my question clear... cry.gif

There are two forces A and B

If any one from A leaves, his units go to P12.
(Problem! I can't predict who will leave the game.)

Therefore, if one player from A leaves and his unit may applies to B.
But i want whoever's unit gives to his ally upon quiting.

Thanks... smile.gif
Report, edit, etc...Posted by KaboomHahahein on 2005-01-15 at 15:46:18
Oh i get it now. I don't think there will be a way to do that...you could make a trigger for the people who know they are going to leave to give to their friends. I think that is the only way. But then it will depend if the team mate. Wait that gives me and idea on how it could work.

YOu have a unit in an eclosed place and a loaction infront of it to give the players.


Trigger
Description:
Giving the units
Players:
¤ P1 (pretend that is the person that leaves)
Conditions:
¤ p12 command atleast 1 civilian
Actions:
¤ order all civilians to move to location give


So then when the player leaves it will order the civilian to go onto the giving location


Trigger
Description:
Giving trigger
Players:
¤ p12
Conditions:
¤ p12 bring civilian to location give
Actions:
¤ remove civilian at location give
¤ Give all units owned by p12 to p2


So what you do is make a location for each player. When the player leaves move the civilian to the beacon and in that location you will tell it to give to the specific player.

This might screw up however if 2 or more players leave before the p12 units are distributed.

Edit: Just use devilesk's method it is much easier.
Report, edit, etc...Posted by MapUnprotector on 2005-01-15 at 15:54:05
QUOTE(hata711 @ Jan 15 2005, 04:34 PM)
Maybe i didn't make my question clear...  cry.gif

There are two forces A and B

If any one from A leaves, his units go to P12.
(Problem! I can't predict who will leave the game.)

Therefore, if one player from A leaves and his unit may applies to B.
But i want whoever's unit gives to his ally upon quiting.

Thanks... smile.gif
[right][snapback]125932[/snapback][/right]


You can units at the beginning of the game to see who is in the game. Just give each player a unit that doesnt die and is there the whole game and doesnt move, such as a powerup. Then at the beginning have a trigger that detects if the player cmds the unit. Then if the player leaves, that unit will naturally be given to p12, though it will remain in the place the player that left was, which then you can detect with triggers.

Triggers would be

Conditions:
Player 12 cmds 1 powerup AT location p1 unit should be

Action:
Give units to player 1's allies

So first, player 1 will cmd a powerup. A location will be there too. Then once player one leaves, p12 will have the unit at the location. Then you know that player 1 has left. This works because if the player isnt there are the start, then the unit isnt even created for the player.
Report, edit, etc...Posted by hata711 on 2005-01-16 at 01:42:53
QUOTE(devilesk @ Jan 16 2005, 04:54 AM)
You can units at the beginning of the game to see who is in the game. Just give each player a unit that doesnt die and is there the whole game and doesnt move, such as a powerup. Then at the beginning have a trigger that detects if the player cmds the unit. Then if the player leaves, that unit will naturally be given to p12, though it will remain in the place the player that left was, which then you can detect with triggers.

Triggers would be

Conditions:
Player 12 cmds 1 powerup AT location p1 unit should be

Action:
Give units to player 1's allies

So first, player 1 will cmd a powerup. A location will be there too. Then once player one leaves, p12 will have the unit at the location. Then you know that player 1 has left. This works because if the player isnt there are the start, then the unit isnt even created for the player.
[right][snapback]125944[/snapback][/right]


I am appreciate your suggestions, but i couldn't find condition for that?
there is no such condition as "player xx commands xxxx at location xxx"
there is only "player xxx bring xxx to location xxxx"?
Report, edit, etc...Posted by (U)Bolt_Head on 2005-01-16 at 04:21:55
Thats what he means.

PS. devilesk, very good i was going to suggest that but kept reading and found out you already figured it out. You explained it a little differantly but anyone would explain it differant from someone else.
Next Page (1)