Starbound

Starbound

Status Effect Toolbox (for modders)
此主题已被锁定
swefpifh  [开发者] 2024 年 6 月 17 日 下午 4:26
Information to personalise your status effects
...
< >
正在显示第 1 - 1 条,共 1 条留言
swefpifh  [开发者] 2024 年 6 月 17 日 下午 4:35 
⋮ How custom can i the «Energy Shield» Status Effect
This is what the status effect code looks like :

{ "name" : "sadEnergyShield", "defaultDuration" : 1, "label": "Energy Shield", "icon": "/sadEnergyShield/sadEnergyShieldIcon.png", "scripts" : [ "sadEnergyShield.lua" ], "scriptDelta" : 10, "animationConfig" : "sadEnergyShield.animation", "effectConfig": { "capacityBar": 1, "capacityBarFrameNum": 20, "shieldCapacity": 100, "shieldRechargeRate": 10, "shieldRechargeDelay": 5, "shieldHitDamageMin": 15, "shieldHitDamageMax": 25, "genProtection": 1, "resistFire": 0, "resistIce": 0, "resistElectric": 0, "resistPoison": 0, "immuFire": 0, "immuIce": 0, "immuElectric": 0, "immuPoison": 0 } }

capacityBar
Displays the life bar above the entity's head.
  • 0 = Deactivated
  • 1 = Enabled (by default)

capacityBarFrameNum
Width of your capacitor bar in pixels (not the width of your image).
  • 20 pixels (by default)

shieldCapacity
How much damage the shield can take before depleting (HP), shield takes damage before you do.
  • 100 (by default)

shieldRechargeRate
Seconds before shield starts to recharge after taking damage or depletion.
  • 10 seconds (by default)

shieldRechargeDelay
Capacity gained per second while shield is recharging.
  • 5 seconds (by default)

shieldHitDamageMin
Used to define the minimum damage received on the shield.
  • 15 seconds (by default)

shieldHitDamageMax
Used to define the maximum damage received on the shield.
  • 25 seconds (by default)

genProtection
Allows you to avoid physical damage.
  • 1 = Full physical protection (by default)
  • 0 = No physical protection

    Example :
      "genProtection": 0.50 (Physical damage reduced of 50%)

resistFire
Allows you to avoid fire damage and a negative figure amplifies the damage.
  • 1 = Full fire protection but not dot
  • 0 = No fire protection (by default)
  • -1 = Fire damage amplified

    Example :
      "resistFire": 0.50, (Fire damage reduced of 50%)
      "resistFire": -0.25, (Fire damage amplified of 25%)

resistIce
Allows you to avoid ice damage and a negative figure amplifies the damage.
  • 1 = Full ice protection but not dot
  • 0 = No ice protection (by default)
  • -1 = Ice damage amplified

    Example :
      "resistIce": 0.25, (Ice damage reduced of 25%)
      "resistIce": -0.75, (Ice damage amplified of 75%)

resistElectric
Allows you to avoid electric damage and a negative figure amplifies the damage.
  • 1 = Full electric protection but not dot
  • 0 = No electric protection (by default)
  • -1 = Electric damage amplified

    Example :
      "resistElectric": 1, (Electric damage reduced of 100%)
      "resistElectric": -0.50, (Electric damage amplified of 50%)

resistPoison
Allows you to avoid poison damage and a negative figure amplifies the damage.
  • 1 = Full poison protection but not dot
  • 0 = No poison protection (by default)
  • -1 = Poison damage amplified

    Example :
      "resistPoison": 0.75, (Poison damage reduced of 75%)
      "resistPoison": -1, (Poison damage amplified of 100%)

immuFire
Makes you immune to fire damage.
  • 1 = Totally immunity for fire damage
  • 0 = No immunity for fire damage (by default)

immuIce
Makes you immune to ice damage.
  • 1 = Totally immunity for ice damage
  • 0 = No immunity for ice damage (by default)

immuElectric
Makes you immune to electric damage.
  • 1 = Totally immunity for electrical damage
  • 0 = No immunity for electrical damage (by default)

immuPoison
Makes you immune to poison damage.
  • 1 = Totally immunity for poison damage
  • 0 = No immunity for poison damage (by default)
最后由 swefpifh 编辑于; 2024 年 6 月 18 日 上午 5:34
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50