So i'm stuck with the custom Sitreps and just can't get this thing to work.
I want to check my fleets for their health percent to see if i should send them back or can push my luck.
So here is my first Sitrep i made to show planets i have in my territory and i could build a colony at.
Thats pretty much where my progress is with ships, i can show one of their stats as "rawtext", like Target.Structure or Target.MaxStructure.
Code: Select all
EffectsGroup
scope = And [
Planet
Not Species
Not Planet Type = GasGiant
Not Enqueued
Ownedby empire = Source.Owner
VisibleToEmpire empire = Source.Owner
]
activation = Source
effects =
GenerateSitRepMessage
message = "The planet %planet% is without colony."
label = "Missing_Colony"
NoStringtableLookup
icon = "icons/planet/terran.png"
parameters = [
tag = "planet" data = Target.ID
]
empire = Source.Owner
The commented parts are old trial and error.
Code: Select all
EffectsGroup
scope = And [
Fleet
OwnedBy empire = Source.Owner
//Contains Ship low = 2
]
activation = Source
effects =
GenerateSitRepMessage
message = "The ship is at %rawtext% percent."
label = "Fleet_Detail"
NoStringtableLookup
icon = "icons/planet/gasgiant.png"
parameters = [
//tag = "rawtext" data = ((Target.Structure / Target.MaxStructure)*100)
//tag = "rawtext" data = Sum value = ((LocalCandidate.Structure / LocalCandidate.MaxStructure)*100) condition = Ship
//tag = "rawtext" data = LocalCandidate.Structure
tag = "rawtext" data = Sum value = LocalCandidate.Structure
]
empire = Source.Owner
Code: Select all
tag = "rawtext" data = ((Target.Structure / Target.MaxStructure)*100)
What i want to achive is a Sitrep like:
"The fleet %fleet% at system %system% is at %rawtext% percent health"
Could someone please help me out?