Skip to content

Planet for Surface signals detected #2258

Discussion options

You must be logged in to vote

You can use BodyDetails() to obtain full information about the body given its name. Perhaps something like this?

{set surfacesignals to []}
{for signal in event.surfacesignals: 
    {set surfacesignals_desc to: 
        {signal.amount} {signal.source}{if signal.amount > 1:s}
    }
    {set surfacesignals to cat(surfacesignals, [surfacesignals_desc])}
}

{set body to BodyDetails(event.bodyname, system.systemname)}
{if body:
    {OneOf(
        "{OneOf('Sensors', 'Scanners', '')} {OneOf('Picking up', 'Detecting')} {List(surfacesignals)} on {body.bodytype} {P(body.shortname)}",
        "{List(surfacesignals)} detected on {body.bodytype} {P(body.shortname)}", 
    )}.
|else:
    {List(surface…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@CMDR-Evolution
Comment options

@CMDR-Evolution
Comment options

Answer selected by CMDR-Evolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants