If building over the UI limit, hidden (last sorted) ones would be: ground defense, patrol hq, cryo revival facility. UI currently supports only 12 buildings and shows them in sorted order, no matter the sequence in which player added them. Runcode import com.fs. String marketName = "YourMarketName" String industryID = "QueuedIndustryID" IndustrySpecAPI spec = Global.getSettings().getIndustrySpec(industryID) if (spec = null) market.getConstructionQueue().addToEnd(industryID, industr圜ost) Console.showMessage("Success - queued construction of " + industryID + " on " + marketName + " for " + industr圜ost) Building IDs can be listed with "list industries". I hope this will help for the few of us who keep asking how to do this, once i find out or someone shares with me how to add conditions based on planet type i will update this post to include that Runcode PlanetAPI star = (PlanetAPI) $loc.getEntityById("change to star name") $loc.addPlanet("cc_barren", star, "Barren World", "barren", VectorUtils.getAngle(star.getLocation(), $playerLoc), 150, MathUtils.getDistance(star.getLocation(), $playerLoc), 120) "system_a488_b < this is your second star And so on To get a planet to follow a specific star in your system run the following code and change "change to star name" to the star you found in the list planets it would look something like this Runcode PlanetAPI star = ((StarSystemAPI) $loc).getStar() $loc.addPlanet("cc_barren", star, "Barren World"", "barren", VectorUtils.getAngle(star.getLocation(), $playerLoc), 150, MathUtils.getDistance(star.getLocation(), $playerLoc), 120) Runcode SectorEntityToken ent = Global.getSector().getCampaignUI().getCurrentInteractionDialog().getInteractionTarget() if (ent.getMarket() != null) Global.getSector().getEconomy().removeMarket(ent.getMarket()) ent.getContainingLocation().removeEntity(ent) Īm still trying to figure out how to write the adding market data so for now it is just a blank planet (Maybe someone knows how we can do it based on type so that we don't have to manually pick and choose?)Īnd for spawning a general planet to move around a star run the following code ![]() If you are not happy with the planet you made dock at it and run the below code to get rid off it Runcode PlanetAPI planet = (PlanetAPI) $loc.getEntityById("desired planet") $loc.addPlanet("cc_barren", planet, "Barren World", "barren", VectorUtils.getAngle(planet.getLocation(), $playerLoc), 150, MathUtils.getDistance(planet.getLocation(), $playerLoc), 120)Ĭhange "desired planet" to the planet you want it to be orbiting around (can be gained by typing list planets in console)Ĭhange "cc_barren" to something fitting(Not too sure right now what it does again)Ĭhange "Barren World" to your desired nameĬhange "barren" to the type of world(can be gained by typing list conditions)Ĭhange the 120 at the end for planet_orbit_length For anyone who wants to make a planet orbit around another planet
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |