Jamming a construction?

Jamming a construction?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Jamming a construction?

Post by PauloMorfeo »

My first idea with TLL was having it start with a galactic gate and then spawn a commander. Not possible.

But now, with unit limit, i can limit it so it can only build one, working around that (although it will have some problems). Problem is that, like that, if we lose our commander, unit limit goes to 0 again and we can build another. Is there any way to jamm the possibility of construction so that, after building the first commander, i can't build anymore comms?

I can work around that too, by making the comm have an explosion at creation that destroys the galactic gate. But either the construction distance of the gate is small, or the explosion needs such a radius that it can easily destroy the gates of other people. Is there anyway to make the explosion of the comm target only it's builder? Or to make it so that, only when building the comm, it's building range is diferent?
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

It can be done in TA, but I don't know exactly how. It's done with scripting
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Um, you can make a unit set off an "explosion" that only affects that unit. And you can trigger events that occur after a unit has finished building something. So, making a unit that can build another unit precisely once is completely practical, yes.

I have not made a unit that does exactly that, but if you go look at the Lord in NanoBlobs, you will see a unit that sets off explosions (as part of its death sequence)... making that same kind of event that occurs after the unit has finished building something is trivial.

So, yeah, you can do this. It's a little complicated, but not too bad :-)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Change the yardmap in the script so that the construction position in the wargate is blocked about 5 seconds after the commander is first built.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

But can i do all that after i built specifically a unit? I mean, if the galactic gate gets jammed after building any one unit, it basically means that the galactic gate (the single unit we start with) can not be used to build like a BotLab, a VecPlant, ..., ... and a commander.

It needs to react specifically to the building of only the commander... Is that possible?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

AFAIK no.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

You could do it with a transport script, maybe.

i.e. when a unit completes, cycle through ids of units on your team until you find one that is within a certain range of the gate, then check its height, if its the comm height, lock the build script.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

You could make the Galatic gate be unrepairable (not sure if possible but I think yes) and give it negative regeneration in a way it will already be longly dead by the time someone gathers the power to kill your com.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

Those are 2 interesting ideas!
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Post by Pxtl »

manored wrote:You could make the Galatic gate be unrepairable (not sure if possible but I think yes) and give it negative regeneration in a way it will already be longly dead by the time someone gathers the power to kill your com.
Does this work? My understanding is that negative regeneration will result in unit with 0 health, but still alive.

Either way, that's not a safe bet on a tiny map. You could have a player commrush another player's base and respawn at the gal-gate... I guess you could give the gate a lifespan of 15 seconds or something... that would make sense, you could think of it as more of a "temporary portal, opened to drop the comm".
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

Or he could make the order of building the com also be an order of autodestruction (not sure if possible). Then the wreckage of the galatic gate could be an other galatic gate but unable to make coms, and winhout explosion it would look the galatic gate was never destroyed.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

manored wrote:Or he could make the order of building the com also be an order of autodestruction (not sure if possible). ...
Not possible acording to the answers i got from this thread. No, wait, actually it might be, with that script hack involving transportation.
manored wrote:... Then the wreckage of the galatic gate could be an other galatic gate but unable to make coms, and winhout explosion it would look the galatic gate was never destroyed.
Wreckages can't be another unit. If only .. it would solve so much.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

PauloMorfeo wrote:
manored wrote:Or he could make the order of building the com also be an order of autodestruction (not sure if possible). ...
Not possible acording to the answers i got from this thread. No, wait, actually it might be, with that script hack involving transportation.
manored wrote:... Then the wreckage of the galatic gate could be an other galatic gate but unable to make coms, and winhout explosion it would look the galatic gate was never destroyed.
Wreckages can't be another unit. If only .. it would solve so much.
I heard it can. Anyway you can make the wreckage exacly equal to the undestroyed galatic gate. :wink:
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

I think he wants it to build stuff other than the com even after the com is built.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

KDR_11k wrote:I think he wants it to build stuff other than the com even after the com is built.
Which is a more difficult problem. I wonder if you can transport nanoframes in Spring as you can in OTA. Otherwise even with the transport script its probably not possible.
Post Reply

Return to “Game Development”