Modding Help How do I dynamically change fuel costs?

Discussion in 'Starbound Modding' started by spudboy, Dec 14, 2013.

  1. spudboy

    spudboy Void-Bound Voyager

    I'm trying to make a mod that lets you designate your home planet and reduce the fuel cost to go there. I've found where you set the fuel costs of travel, but I don't know how you would change them for a specific planet. I thought I might use another script somewhere, but I'm not sure where I would do that.
    Any help would be greatly appreciated.
     
  2. ejh1990

    ejh1990 Phantasmal Quasar

    If there were a setting anywhere, it'd be in cockpit.config, around this part:

    Code:
      "interSystemFuelcost" : 200,
      "intraSystemFuelcost" : 50,
    Unfortunately, there's only settings there for intersystem travel (200), and intrasystem travel (50). There's not even a setting there to configure neighbouring planets as far as I can see. :(
     
  3. spudboy

    spudboy Void-Bound Voyager

    I know about those, but I'm not sure how I would go about changing them for one planet specifically. I may be able to do it if I could be executing lua scripts to interact with the menu, but I'm not sure if that's possible.
     

Share This Page