Starbound

Starbound

Status Effect - Customisable Detection Area (for modders)
This topic has been locked
swefpifh  [developer] 7 Jun, 2024 @ 5:16pm
Information to personalise your status effect
.
< >
Showing 1-1 of 1 comments
swefpifh  [developer] 7 Jun, 2024 @ 5:33pm 
⋮ sadDetectionArea.statuseffect INFORMATIONS
(statusAreaDetection/statuseffects/sadDetectionArea.statuseffect)

This is what the status effect code looks like :
{ "name": "sadDetectionArea", "defaultDuration": -1, "label": "Detection Area", "icon": "/statuseffects/sadDetectionArea.png", "scripts": ["/scripts/statuseffects/sadDetectionArea.lua"], "effectConfig": { "dpsActivation" : 0, "affectNPCscrew": 0, "affectPlayers": 0, "affectMonstersPassive": 0, "affectMonstersAgressive": 1, "affectNPCsPassive": 0, "affectNPCsAgressive": 1, "detectionRange": 50, "detectionDailyCycle": 0, "statusEffectName": ["minibossglow"], "statusEffectDuration": 2 } }

defaultDuration
⤷ This configures the activation time (in seconds) of the detection zone.
  • -1 = Infinite
  • 1 = 1 second
  • 60 = 60 second

dpsActivation
⤷ In the area zone, status effects can be activated on entities by inflicting damage on a target.
  • 0 = Deactivated (by default)
  • 1 = Enabled

affectNPCscrew
⤷ The detection zone only affects npc crew.
  • 0 = Deactivated (by default)
  • 1 = Enabled

affectPlayers
⤷ The detection zone only affects players.
  • 0 = Deactivated (by default)
  • 1 = Enabled

affectMonstersPassive
⤷ The detection zone only affects passive monsters.
  • 0 = Deactivated (by default)
  • 1 = Enabled

affectMonstersAgressive
⤷ The detection zone only affects agressive monsters.
  • 0 = Deactivated
  • 1 = Enabled (by default)

affectNPCsPassive
⤷ The detection zone only affects passive NPCs.
  • 0 = Deactivated (by default)
  • 1 = Enabled

affectNPCsAgressive
⤷ The detection zone only affects agressive NPCs.
  • 0 = Deactivated
  • 1 = Enabled (by default)

detectionRange
⤷ Extends the range of the detection zone to apply the status effect configured below it.

detectionDailyCycle
⤷ Enables the detection zone to be activated during the daily cycle, day, night or both.
  • 0 = Both (by default)
  • 1 = Day
  • 2 = Night

statusEffectName
⤷ Note the ID of the status effect to be applied to the entities. If you want to add more than one, add like this : ["minibossglow", "SE1", "SE2, "ETC"]

statusEffectDuration
⤷ Duration of the status effect, in second, applied to entities once the zone is deactivated.
Last edited by swefpifh; 19 Aug, 2024 @ 7:17am
< >
Showing 1-1 of 1 comments
Per page: 1530 50