Joaquin Posted February 6, 2005 Report Share Posted February 6, 2005 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 Link to comment Share on other sites More sharing options...
Supreme Cmdr Posted February 6, 2005 Report Share Posted February 6, 2005 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 endeventsYou 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 endeventsWhen 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. Link to comment Share on other sites More sharing options...
Joaquin Posted February 7, 2005 Author Report Share Posted February 7, 2005 Hmmm.. I see what you mean. I'll edit my questions more carefully next time. Thanks for explaining TAKEOVER "source" "target". Joaquin Link to comment Share on other sites More sharing options...
Supreme Cmdr Posted February 7, 2005 Report Share Posted February 7, 2005 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now