Modding Help Creating a recharging energy shield for armor

Discussion in 'Starbound Modding' started by AdmiralKew, Jul 3, 2015.

  1. AdmiralKew

    AdmiralKew Scruffy Nerf-Herder

    Hi, I've been trying to create a recharging energy shield as a status effect for various sets of armor with no success. I've been using shieldeffect.lua and shieldregen.lua as a basis for the recharging effect.

    Here's the link to what I have:
    http://pastebin.com/RutfF1qN

    What I want it to do is that it would have:
    • Configurable health and recharge rate in a statuseffect file
    • Would stop recharging for several seconds upon damage, the time of which is also configurable
    • Would be disabled until it finishes its recharge cycle
    • Would display an animated effect while active, and spark while disabled/recharging
    • Would start at 0 HP when first worn
    • And if possible, display a health bar.
    May I have help with this?
     

Share This Page