Tutorial PSA: Edit walk speed and other default movement variables

Discussion in 'Starbound Modding' started by enigma576, Feb 11, 2015.

  1. enigma576

    enigma576 Void-Bound Voyager

    Not sure if anyone else was wondering how to change this, but here goes.

    Let's create an effect called "walkfaster":

    Create folders (stats->effects->walkfaster)
    Make the walkfaster.statuseffect file:
      "name" : "walkfaster",
      "scripts" : [
    Make the walkfaster.lua file:
    function init()
    function update(dt)
          walkSpeed = 14.0
    function uninit()
    The default runSpeed is 14, so if you assign this effect to an item, your character will walk at the same speed (i.e. when you go backwards, hold shift, or hold up a shield).

    Now that we've created an effect to change walkSpeed, you know how to change any variable in the "default_actor_movement.config" file.

    Some other options are: runSpeed, flySpeed, liquidImpedance, gravityEnabled

    I wasn't sure how to do this before, so I figured that other people might find it useful.

    Let me know if you have any questions.
    bmarquis, Canto and The | Suit like this.
  2. GunshiMarrow

    GunshiMarrow Void-Bound Voyager

    I'm really new to all of this coding nonsense, but I'm quite sick of moving so fast. I wanted to swap the run and walk speeds so I would essentially hold shift to run. Is that doable? If so, I could really use as much help as possible doing that, because I have no idea what I'm doing.

Share This Page