Editing help! Simple way to stop players from lifting buildings?

Post Reply
lobski
Terran Academy Student (50k mineral debt)
Terran Academy Student (50k mineral debt)
Posts: 5
Joined: Wed Aug 20, 2008 2:59 am

Editing help! Simple way to stop players from lifting buildings?

Post by lobski »

QUESTION UPDATED!

Here is my situation:

I have stacked 35 buildings into one area (For prerequisite), they contain an Engineering Bay, and Barracks.  There is NO space to place the Terran buildings seperately! I must stack them.

The problem is, players will lift their buildings and scout with them. I have made all the buildings invulnerable, so players can build only turrets/cannons/etc.

I am close to success, as I have made the buildings spawn back to their original position when they are moved out of their little area.  The problem is, there is a workaround for this. If you lift a building and try to move it, it won't move. But if you lift it, and select it to land somewhere far away, it will keep going! I think if you use the "Land" command instead of "Move" it ignores the "move back" trigger I have for it.

Now, it would be simple if I made the building blow up and spawn again the moment the player lifts it.... BUT since the buildings are stacked in the area, it cannot spawn there!

So my questions are:
How do I fix the "Land" bug?
How do I create a building that's ALREADY lifted?



OR, the SIMPLEST way to fix my problem is, to disable lifting completely. But I don't think thats possible. Either that, OR... When the building is destroyed, it simple creates a new one back in the original location, but it gets created LIFTED... Possible?
Last edited by lobski on Wed Aug 20, 2008 6:16 am, edited 1 time in total.
User avatar
Legion
Xel'naga Hero
Xel'naga Hero
Posts: 1140
Joined: Tue Aug 21, 2007 1:17 am

Re: Editing help! Simple way to stop players from lifting buildings?

Post by Legion »

Well, a simple way would be to make the mission fail if the player does not bring any of those buildings to their current location. As in:

Conditions:
Current player brings 0 Engineering Bay to location "eBay"
Actions:
Display for current player: "You aren't allowed to lift your buildings!"
End mission in defeat for current player

That's just one very basic way and probably fucks up a lot of other things you might wanna do, though.

EDIT:
Alternatively, if your only problem is players using the buildings for scouting, you could give those buildings a very low HP (either by default for everyone on the map, or manually lower the building's HP percentage) so that if somebody would actually use it to scout, it'll be shot down by enemy players in no-time.
Last edited by Anonymous on Wed Aug 20, 2008 4:06 am, edited 1 time in total.
lobski
Terran Academy Student (50k mineral debt)
Terran Academy Student (50k mineral debt)
Posts: 5
Joined: Wed Aug 20, 2008 2:59 am

Re: Editing help! Simple way to stop players from lifting buildings?

Post by lobski »

lē'jən wrote: Well, a simple way would be to make the mission fail if the player does not bring any of those buildings to their current location. As in:

Conditions:
Current player brings 0 Engineering Bay to location "eBay"
Actions:
Display for current player: "You aren't allowed to lift your buildings!"
End mission in defeat for current player

That's just one very basic way and probably fucks up a lot of other things you might wanna do, though.

EDIT:
Alternatively, if your only problem is players using the buildings for scouting, you could give those buildings a very low HP (either by default for everyone on the map, or manually lower the building's HP percentage) so that if somebody would actually use it to scout, it'll be shot down by enemy players in no-time.
Hi, I edited my first question. Please read it and see if you can help me in my desperate situation :/
User avatar
Thalraxal
Protoss Stargate Concierge
Protoss Stargate Concierge
Posts: 1212
Joined: Sun Aug 12, 2007 12:42 pm
Location: Ontario, Canada

Re: Editing help! Simple way to stop players from lifting buildings?

Post by Thalraxal »

1) Hmm... for making your players not move the buildings, did you use the 'Order' action?  If so, try using a 'Move unit to location' action on them if they leave the area instead.

2) You can't create a building that's already been lifted-off.  Even if you use the 'Create Unit with propertires', it'll still spawn in on the ground before lifting off.

What you can do to work around that though, is spawn the building in a different location, and then use a 'move unit to location' action to move it to where it's supposed to be (You might need a wait action in there too, I'm not sure, it's been a while since I used this trick).
User avatar
Legion
Xel'naga Hero
Xel'naga Hero
Posts: 1140
Joined: Tue Aug 21, 2007 1:17 am

Re: Editing help! Simple way to stop players from lifting buildings?

Post by Legion »

Thalraxal wrote:

2) You can't create a building that's already been lifted-off.  Even if you use the 'Create Unit with propertires', it'll still spawn in on the ground before lifting off.
What are you talking about? Of course you can, just check IN TRANSIT in the unit properties window.
User avatar
Thalraxal
Protoss Stargate Concierge
Protoss Stargate Concierge
Posts: 1212
Joined: Sun Aug 12, 2007 12:42 pm
Location: Ontario, Canada

Re: Editing help! Simple way to stop players from lifting buildings?

Post by Thalraxal »

lē'jən wrote:
Thalraxal wrote:

2) You can't create a building that's already been lifted-off.  Even if you use the 'Create Unit with propertires', it'll still spawn in on the ground before lifting off.
What are you talking about? Of course you can, just check IN TRANSIT in the unit properties window.
The building will spawn on the ground, then lift-off.  So if you tried to spawn in a location where it needs to be Lifted-off to be, it won't spawn and you'll get a nice little error message.
User avatar
Legion
Xel'naga Hero
Xel'naga Hero
Posts: 1140
Joined: Tue Aug 21, 2007 1:17 am

Re: Editing help! Simple way to stop players from lifting buildings?

Post by Legion »

Thalraxal wrote:
lē'jən wrote:
Thalraxal wrote:

2) You can't create a building that's already been lifted-off.  Even if you use the 'Create Unit with propertires', it'll still spawn in on the ground before lifting off.
What are you talking about? Of course you can, just check IN TRANSIT in the unit properties window.
The building will spawn on the ground, then lift-off.  So if you tried to spawn in a location where it needs to be Lifted-off to be, it won't spawn and you'll get a nice little error message.
Not in space. :P

So - don't spawn, but just place a flying building somewhere on the map and have a trigger move it.
Post Reply