Jump to content
3000AD Forums
Sign in to follow this  
Joaquin

TAKEOVER command

Recommended Posts

Hi folks,

How does TAKEOVER +source+ +target to capture+ command work? + source + is a new parameter that only appears for this command. I didn't find any reference in the GBSII forum. TAKEOVER appears only once in the enclosed documentation an IF statement version that doesn't have the same parameters.

Thanks,

Joaquin

Share this post


Link to post
Share on other sites

Nothing you posted made any sense whatsoever. The TAKEOVER command parameters are clearly listed in the GBS docs PDF file.

TAKEOVER "source" "target" : This command is used to force the race|caste of the target to be that of the source. It is only used when you want to make the change immediate, instead of - in the case of a station - making an NPC try (and possibly fail) to capture the station.

source = the object whose race/caste will be transfered to the target.

target = the station being takenover by the source

e.g.

code:


events

!startup

TAKEOVER myship starpath

endevents


You can also check the state of the race/caste when either the TAKEOVER or CAPTURE actions are used.

e.g.

code:


events

!startup

capture galcomhq

!level1tick

IF FLAG1 galcomhq RETURN

IF galcomhq TAKEOVER gammulan military THEN

broadcast "GALCOMHQ IS NOW UNDER GAMMULAN MILITARY CONTROL"

FLAG1 ON galcomhq

ENDIF

endevents


When a ship actually captures a station (using the CAPTURE command), the TAKEOVER command is automatically called internally in order to transfer the race/caste of the ship to the station.

Share this post


Link to post
Share on other sites

Hmmm.. I see what you mean. I'll edit my questions more carefully next time.

Thanks for explaining TAKEOVER "source" "target".

Joaquin

Share this post


Link to post
Share on other sites

You can also use the mod_racecaste command to alter the default race case of a unit.

e.g. this will change the Starpath station from Terran/Military to Gammulan/Military when the scenario starts. You can add it anywhere, but adding it in the God object means that it will be done as soon as the scenario loads.

code:


[ai]

.ghq,100,100,100,100,100,100,1

start orbit blk05z^flx-11,10000,10,90,0

stop

events

!startup

cloak on this

invincible on this

weapons off this

autogen off

mod_racecaste starpath gammulan military

endevents


Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×