Modding Help Adding new status effect?

Discussion in 'Starbound Modding' started by hsidnomeL, Dec 9, 2013.

Thread Status:
Not open for further replies.
  1. hsidnomeL

    hsidnomeL Void-Bound Voyager

    Question for the modding masses.

    Is it possible to add in a custom status effect? I'd like to add in something that has a time limit, and can stack. I know that the vanilla effects have this capability but I'm unsure where to start to create my own, if even possible. Any tips?
  2. p0pp3t

    p0pp3t Void-Bound Voyager

    You can create simple one using the ones already ingame. For example the file assets/statuseffects/testingburning.statuseffect is
      "kind" : "testburning",
      "duration" : "5sec",
      "initialTick" : false,
      "interval" : 1.0,
      "primitives" : [
        { "name" : "periodic" }
      "effectSources" : [ "burning" ],
      "tick" : {
        "statusEffects" : [
            "kind" : "directDamage",
            "damageKind" : "testburning",
            "amount" : 3
          { "kind" : "glow" }
      "mainInterfaceIcon" : "/interface/statuses/fire.png"
    You can easily change the duration or what it does.
  3. hsidnomeL

    hsidnomeL Void-Bound Voyager

    I figured that was how to do it but was afraid to mess anything up. :p Thank you!

    Now for question 2. Is there a way to check if a Status Effect is active when using a consumable, such as food?
  4. Inconspicuous

    Inconspicuous Scruffy Nerf-Herder

    If you've coded it correctly there should be an icon under your health and energy bar and particle effects on your character. It's there in the code.
    The icon is under
    "mainInterfaceIcon" : "/interface/statuses/fire.png"
    Particle effect is a bit more complicated, it seems to be a universal particle affect for burning so you'll find it somewhere else when you crack open the file for the "testburning" damage kind
  5. hsidnomeL

    hsidnomeL Void-Bound Voyager

    By check I mean... for example, when eating a food item, I would like to check if a certain effect is active and change what the food does if it is.
  6. Inconspicuous

    Inconspicuous Scruffy Nerf-Herder

    Then you would have to check the food's file. If it has an effect it'll show you.
      "itemName" : "avesmingoicecream",
      "rarity" : "Common",
      "inventoryIcon" : "avesmingoicecream.png",
      "description" : "Avesmingos can taste like anything! For better or worse, so can this ice cream.",
      "shortdescription" : "Avesmingo Ice Cream",
      "handPosition" : [2, 2],
      "effects" : [ [
            "kind" : "food",
            "amount" : 100
            "kind" : "mollyhealing3" },
            "kind" : "energy",
            "amount" : 50
            "kind" : "doping" }
        ] ]

    Thats the code for an avesmingo icecream, as you can see it gives a healing effect like bandages, restores energy and "doping" though I have no idea what that does. If you want to change the effects then just change the code.
  7. RaxiCax

    RaxiCax Void-Bound Voyager

    I don't think you can check the current effects on your character while eating.
    Example: Create statuseffects and each "Sugar" he eats, the buff changes and at the end he might throw up.
  8. narhiril

    narhiril Tentacle Wrangler

    Apologies if this is a noob question, but Is there a way to tie this to a weapon and/or armor? Like, equip a certain weapon, gain a status effect?
  9. AlyksThatGuy

    AlyksThatGuy Void-Bound Voyager

    yes, by using the same format as it has for the food, but add that to the armor. Someone else might go into more depth on telling you, but I wanted to confirm that you can. Another neat way of doing this is through augments, which you can easily add to armor. Adding a status effect to augments is pretty easy, as is adding augments to armor.
  10. DarkestDude2014

    DarkestDude2014 Void-Bound Voyager

    Likely this has been asked already, but is there a way possibly to increase the range of existing status effects, namely BreathProtection, and ColdProtection? only seem to be able to move around 16-17 blocks from the object with them, but changing the numbers higher doesn't seem to increase the range at all, sorry for the bother
  11. emelerud1

    emelerud1 Void-Bound Voyager

    How would I go about making a status effect that ignores damage and energy use completely?
  12. The | Suit

    The | Suit Agent S. Forum Moderator

    Please don't necro threads from 1 year ago, especially when they are completely out of date.
    Just make a new thread instead.
Thread Status:
Not open for further replies.

Share This Page