- Joined
- Jan 5, 2005
- Messages
- 3,515
i have a problem with the owning properties of a building. i wanted a building to be selectable by all units on a team so it can be upgraded but only actually owned by one player. atm i have a trigger where when a player selects the building it does this:
[trigger:1:2fdfae1b4b]
Player - Make Player 11 (Dark Green) treat (Triggering player) as an Ally with shared vision and full shared units
[/trigger:1:2fdfae1b4b]
which allows the upgrades to be brought but then when you upgrade it, it makes a weird noise (which i can fix) and a thing saying "you now have controll of blah" (which you can see i have fixed below) and also if you select another unit owned by dark green you can controll it. so i made this trigger:
[trigger:1:2fdfae1b4b]
Deselect Full Sharing1
Events
Player - Player 1 (Red) Deselects a unit
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Head Quarters On map
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
Then - Actions
Player - Make Player 11 (Dark Green) treat (Triggering player) as an Ally with shared vision
Else - Actions
Do nothing
Cinematic - Clear the screen of text messages for (All allies of Player 1 (Red))
Multiboard - Show all multiboards
[/trigger:1:2fdfae1b4b]
now if you select an unit owned by dark green while having the head quarters selected it shows the green ring of an allied unit but when you select it it is removed. this is a small problem but i think its annoying. can i fix this by having the head quarters as a shop selling the upgrade but owned by dark green but if i do that wont enemies be able to buy from it? any other solutions?
[trigger:1:2fdfae1b4b]
Player - Make Player 11 (Dark Green) treat (Triggering player) as an Ally with shared vision and full shared units
[/trigger:1:2fdfae1b4b]
which allows the upgrades to be brought but then when you upgrade it, it makes a weird noise (which i can fix) and a thing saying "you now have controll of blah" (which you can see i have fixed below) and also if you select another unit owned by dark green you can controll it. so i made this trigger:
[trigger:1:2fdfae1b4b]
Deselect Full Sharing1
Events
Player - Player 1 (Red) Deselects a unit
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Head Quarters On map
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
Then - Actions
Player - Make Player 11 (Dark Green) treat (Triggering player) as an Ally with shared vision
Else - Actions
Do nothing
Cinematic - Clear the screen of text messages for (All allies of Player 1 (Red))
Multiboard - Show all multiboards
[/trigger:1:2fdfae1b4b]
now if you select an unit owned by dark green while having the head quarters selected it shows the green ring of an allied unit but when you select it it is removed. this is a small problem but i think its annoying. can i fix this by having the head quarters as a shop selling the upgrade but owned by dark green but if i do that wont enemies be able to buy from it? any other solutions?