Modding Help Adding More Than One Blocking Stat?

Discussion in 'Starbound Modding' started by Wulf_Oman, Apr 25, 2015.

  1. Wulf_Oman

    Wulf_Oman Existential Complex

    Pretty much the title; is there any way to add more than one blocking stat?


    Doesn't work because it counts both as a duplicate line
    Code:
    {
      "name" : "testglow",
      "effectConfig" : {},
      "defaultDuration" : 5,
      "blockingStat" : "testlight",
      "blockingStat" : "testlight2", 
    
      "scripts" : [
        "testglow.lua"
      ],
    
      "animationConfig" : "testglow.animation",
    
      "label" : "Test Glow",
      "icon" : "/interface/statuses/icon.png"
    }

    Doesn't work because it isn't properly done
    Code:
    {
      "name" : "testglow",
      "effectConfig" : {},
      "defaultDuration" : 5,
      "blockingStat" : { "testlight", "testlight2" },
    
      "scripts" : [
        "testglow.lua"
      ],
    
      "animationConfig" : "testglow.animation",
    
      "label" : "Test Glow",
      "icon" : "/interface/statuses/icon.png"
    }
     
  2. Kayuko

    Kayuko Oxygen Tank

    I'm guessing it's hardcoded like the mainItemGrid function in inventories, but you could try:

    "blockingStat" : [
    {
    "testlight",
    "testlight2"
    }
    ]

    Tho I doubt that'll work.
     
  3. That is not even syntactically correct. Ditch the { }.

    Wulf I dont think this system is made to do that though.
     
    The | Suit likes this.
  4. NanoPi

    NanoPi Scruffy Nerf-Herder

    Code:
    {
      "name" : "testglow",
      "effectConfig" : {},
      "defaultDuration" : 5,
      "blockingStat" : [ "testlight",  "testlight2" ],
    
      "scripts" : [
        "testglow.lua"
      ],
    
      "animationConfig" : "testglow.animation",
    
      "label" : "Test Glow",
      "icon" : "/interface/statuses/icon.png"
    }
    don't know if it would accept multiple stats but this is how it would be written if it did.
     
  5. Wulf_Oman

    Wulf_Oman Existential Complex

    Thanks for the responses guys; I'll just ditch the idea
     

Share This Page