It's fine with triggers, but could you tell me the method in a bit more detail. I think the way I did it is very inefficient and buggy.
NOTE: The CC is not pre-placed, it is created when the player enters the game (its a start location building [I have no idea what the official name of these buildings are])
Hi, I'm creating a little arcade/custom mod in which one of the race has a Command Center, and can only build from it, but it can only build right next to itself. The created structure can also only create a structure right beside itself, and so on. This mechanic is already implemented (although its a little goofy). The problem is, I need those buildings to create a continuous line, a Power Supply line.
I created a search area + apply behavior effect, and Morph skills, so when building has behavior false, building morphs into an Inactive state, and when the behavior is applied, it transforms back. The first Behavior comes from the CC, and: if caster unit has the behavior-> it can cast the skill. The problem is, when I severe the power line's connection with the CC (removing 1 building from the line), the power supply keeps itself on, since the can apply the behavior to each other.
I have no idea how to solve this. Is there a validator that effect can not be applied to creator of unit? Or what could I possibly do? No, I won't accept defeat and cry in the corner! Ok, I maybe will.
Thank you very much for the responses, I'll try to figure it out using the data you provided :D Thank you very very much!
@FunkyUserName: Go
It's fine with triggers, but could you tell me the method in a bit more detail. I think the way I did it is very inefficient and buggy.
NOTE: The CC is not pre-placed, it is created when the player enters the game (its a start location building [I have no idea what the official name of these buildings are])
Hi, I'm creating a little arcade/custom mod in which one of the race has a Command Center, and can only build from it, but it can only build right next to itself. The created structure can also only create a structure right beside itself, and so on. This mechanic is already implemented (although its a little goofy). The problem is, I need those buildings to create a continuous line, a Power Supply line.
I created a search area + apply behavior effect, and Morph skills, so when building has behavior false, building morphs into an Inactive state, and when the behavior is applied, it transforms back. The first Behavior comes from the CC, and: if caster unit has the behavior-> it can cast the skill. The problem is, when I severe the power line's connection with the CC (removing 1 building from the line), the power supply keeps itself on, since the can apply the behavior to each other.
I have no idea how to solve this. Is there a validator that effect can not be applied to creator of unit? Or what could I possibly do? No, I won't accept defeat and cry in the corner! Ok, I maybe will.