So here's the issue I've been tinkering around to make a bunker-like structure that is neutral and can be used by 2 opposing parties.
I want to make it a C&C-styled garrison so that range attacks were still valid but also possible to be "stormed" or "flushed out" by a specific enemy unit.
So my original design was to use the abandoned structure unit, make it neutral, set a one-way alliance from the neutral player to the rest and make a "while" trigger that will change the ownership of any of the said unit to the occupying player but be set back to neutral after it is vacant.
The problem being I can't find the right value fields to modify and its not coming out well.
Here are the relevant issues:
-I want all players to see the cargo space bar.
-I want ownership to change after occupation.
-(after value field modifications) I can make my units enter the cargo bay of the transport structure unit but I have either, no control over the unit (it doesn't change ownership), or, no visibility of the command card and its buttons (which I had already set up) or both.
Um, I couldn't really make out exactly what you wanted but from what I did make out is that you want to be able to have a neutral structure that can load units as cargo and then change ownership to the unit that is currently loaded as cargo?
If so, take a look at this. Very simple trigger.
Untitled Trigger 001
Events
Unit - Any Unit Loads cargo
Local Variables
Conditions
Actions
Unit - Change ownership of (Triggering unit) to player (Owner of (Triggering cargo unit)) and Change Color
So here's the issue I've been tinkering around to make a bunker-like structure that is neutral and can be used by 2 opposing parties.
I want to make it a C&C-styled garrison so that range attacks were still valid but also possible to be "stormed" or "flushed out" by a specific enemy unit.
So my original design was to use the abandoned structure unit, make it neutral, set a one-way alliance from the neutral player to the rest and make a "while" trigger that will change the ownership of any of the said unit to the occupying player but be set back to neutral after it is vacant.
The problem being I can't find the right value fields to modify and its not coming out well.
Here are the relevant issues:
-I want all players to see the cargo space bar.
-I want ownership to change after occupation.
-(after value field modifications) I can make my units enter the cargo bay of the transport structure unit but I have either, no control over the unit (it doesn't change ownership), or, no visibility of the command card and its buttons (which I had already set up) or both.
Any help would be greatly appreciated.
@darthuser3220:
Um, I couldn't really make out exactly what you wanted but from what I did make out is that you want to be able to have a neutral structure that can load units as cargo and then change ownership to the unit that is currently loaded as cargo?
If so, take a look at this. Very simple trigger.
Untitled Trigger 001
Events
Unit - Any Unit Loads cargo
Local Variables
Conditions
Actions
Unit - Change ownership of (Triggering unit) to player (Owner of (Triggering cargo unit)) and Change Color
You may find a better solution to this in the Data forum.