Page 1 of 1

Unit ownership

Posted: April 25th, 2009, 2:49 am
by storyyeller
1. Is there any way to have a unit belong to player 1, but have player 2 be able to select the unit and view its abilities, but not issue orders? Sort of like a limited form of share control.

2. Suppose I want to have a 12 player map, but I also have extra units (the scenery). What is the best way to do this? Is there anyway to have units not owned by any player, like Neutral Hostile or something? Is there anything special I have to do in that case?

Re: Unit ownership

Posted: April 26th, 2009, 7:00 am
by Arabidnun
If you create neutral hostile units, they will attack both sides. However, if thats what your after yes, you can have basically more than 12 players.

Re: Unit ownership

Posted: April 26th, 2009, 6:17 pm
by storyyeller
What if I want them to just sit there and not do anything?

Re: Unit ownership

Posted: April 26th, 2009, 8:21 pm
by patrick-the-bomb
You could remove the attack capability, couldn't you? You may still attack them, but you could go around that.
You could also take away the neutral hostile's unit's ability to move.

Then you could make a region around the unit and have it be like
"Any unit that enters region (region around neutral hostile unit) -> (remove ability to attack)"
However that works. Then when they leave region they can attack again, and you wont kill the evil units and they wont kill you.

I don't know if this helps at all, but I tried.

Re: Unit ownership

Posted: April 26th, 2009, 11:38 pm
by storyyeller
If I give it the locust ability, will that prevent it from moving and attacking too?

These unit's are mainly intended to just act as scenery and decoration, so it's not terribly important whether you can select them or not.

Re: Unit ownership

Posted: April 27th, 2009, 3:30 am
by Syre
No, locust ability just makes the units invulnerable and unselectable. They can still attack and move as they wish. If your just going to make units that are scenery why not just make them Neutral Passive? That way they wont attack anyone and nobody will be hostile towards them. And with a simple trigger, you can make it so that when a unit trys to attack them, that they stop beforehand, so you wont need to make them invulnerable.

Re: Unit ownership

Posted: April 27th, 2009, 6:30 am
by Ozzapoo
Giving a unit Locust will essentially render them useless, if you are intending for another player to control them. They will still be able to move, though. So it's best to just make them invulnerable and pause them. Or, if you really want them to be able to be clicked and abilities viewed, just make a trigger to order the unit to stop whenever it does something.

Re: Unit ownership

Posted: April 27th, 2009, 9:44 pm
by storyyeller
If I do Neutral Passive, would they just sit there, or would they wander around?
Also, the players aren't supposed to be able to click on them. I think I'll just go with locust + no attacks enabled + 0 movement speed or something.

Ozzapoo wrote: Or, if you really want them to be able to be clicked and abilities viewed, just make a trigger to order the unit to stop whenever it does something.

I assume you are talking about the first question here. The problem is that that wouldn't really work because it would also cancel the unit's previous orders as well.

Re: Unit ownership

Posted: April 28th, 2009, 1:01 am
by Syre
If you make them neutral passive, they wont move around on their own, unless you give them the skill "Wander (Neutral)". To have scenery that would be the best bet. Make them neutral passive, and give them the Locust ability. If you do that, players wouldent be able to attack them, and neutral passive doesnt move own its own and wont attack anyone. And since locust makes them invulnerable, AOE skills wont damage em at all like they would without it. So you wouldent have to change a bunch of stats, and instead just add one ability.