Modding Help Status Effects Help

Discussion in 'Starbound Modding' started by Apple Kid, Jun 19, 2016.

  1. Apple Kid

    Apple Kid Big Damn Hero

    So I'm having a bit of trouble here... Each time I attempt to add a status effect to a piece of armor it ends up turning into a generic item in game.
    I have looked all over the web on how to fix this but so far no luck, so I've decided to post here hoping for help on this.

    This is what I've been trying to use:
    "statusEffects" : [
    {
    "stat" : "protection",
    "amount" : 0
    },
    {
    "kind": "slow"
    }
    ],

    Everything works fine until I addin
    {
    "kind": "slow"
    }
    Once this is added into the coding it turns the item into a generic item.

    I've looked up different tutorials and pretty much all of em were the same.
    I don't know if adding status effects onto mods was updated or what, all i know is every time i try to add one it turns into a generic item.
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    The first question you should ask your self.
    Does a slow Status effect actually exist - or did I make it up thinking it does.

    All status effects possible are in the stats folder.
    Always make sure you are using freshly unpacked assets.
     
  3. Apple Kid

    Apple Kid Big Damn Hero

    Well, seeing this file here clearly shows that a slow status effect exists.
    [​IMG]
     
  4. C0bra5

    C0bra5 Oxygen Tank

    well i see the problem, the reason why your item turns into a PGI(perfectly generic item) is because you got the syntax wrong here have an example, it's my water wings mod... wow i'd never thought i would use this mod as a reference.

    but here is the short of it:

    Code:
    "statusEffects" : [
        //Stat buffs or more technically correct statistic
        //modifiers are required to be in an element since they
        //require multiple values.
        {
            "stat" : "protection",
            "amount" : 0
        },
      
        //Effects don't they only require quotes around them.
        //now this status effect will be properly applied
        //You don't need to put curved brackets anything around it.
        "slow",
      
        //you can put what ever you want after the order
        //doesn't matter at all.
        {
                "stat" : "powerMultiplier",
                "baseMultiplier" : 1.5
        },
      
        //yes this is a thing and o my lord i have to stop jumping
        //down a mountain for no reason
        "nofalldamage"
    ],
     

    Attached Files:

  5. The | Suit

    The | Suit Agent S. Forum Moderator

    I think the important message to take away is - "Freshly unpacked assets".

    The file you are showing is from 2014.
    In the latest nighties - slow does not exist.

    There are variations of slow mudslow \ slimeslow \ etc.
    But no slow.
     
    C0bra5 likes this.
  6. Apple Kid

    Apple Kid Big Damn Hero

    Ah, gotcha.
    So instead of just using slow, slimeslow or mudslow works?
     
  7. The | Suit

    The | Suit Agent S. Forum Moderator

    As I stated earlier - first thing unpack your assets so they are always new.
    Then go to the stats folder and check which status effects are available for you and only use those and you should be fine.
     
    Apple Kid likes this.
  8. C0bra5

    C0bra5 Oxygen Tank

    if you just want a plain slow effect you can just duplicate one of the slow effects and remove the animator.functionNameHere and effect.functionNameHere lines from it's lua file and it would be just as good but there would be no colored overlay or particles coming out of the character. you might want to remove or add a new icon for the effect though, i don't think a mud/slime/frost icon is a good representation of a simple slow effect
     
    Apple Kid likes this.

Share This Page