Modding Help fixedLevel Question

Discussion in 'Starbound Modding' started by projectmayhem, Aug 15, 2020.

  1. projectmayhem

    projectmayhem Spaceman Spiff

    Im working on some randomized guns, I was looking at vanilla assets and I was wondering if I need to use "fixedLevel" : false in order for the weapons to scale to the planets threat level.
    Ive noticed the vanilla random weapons do not have it, but some weapons do have it. Maybe I am assuming it does something different than what it actually does.
    Any help is appreciated, thank you!
     
  2. bk3k

    bk3k Oxygen Tank

    This is used for buildscripts
    In non-random things
    Code:
      if level and not configParameter("fixedLevel", true) then
        parameters.level = level
      end
    
    If undefined, as you see the default is true.
    In random generated things
    Code:
      if level and not configParameter("fixedLevel", false) then
        parameters.level = level
      end
    
    As you see, the default is false
    In both cases you can override the default.
    The vanilla cases where this seems to be set is in non-randomly generated shields, where it is set to false.

    Where "level" is sent as an argument to the function (the base engine is calling the buildscript) and where "fixedLevel" is not true, then it will use the "level" argument.
     
    projectmayhem likes this.
  3. projectmayhem

    projectmayhem Spaceman Spiff

    Thank you, you do such am amazing job each time you explain things.
     
  4. bk3k

    bk3k Oxygen Tank

    Glad if that was helpful.
     

Share This Page