effects = [
SetTroops value = min((NamedRealLookup name = "IMPERIAL_GARRISON_MAXTROOPS_EFFECT"), Value(Target.MaxTroops))
GenerateSitRepMessage
message = "IMPERIAL_GARRISON_ACTIVATED"
label = "IMPERIAL_GARRISON_ACTIVATED_LABEL"
icon = "icons/sitrep/combat_damage.png"
parameters = [
tag = "empire" data = Target.Owner
tag = "planet" data = Target.ID
tag = "turn" data = Target.LastTurnColonized
tag = "system" data = Target.SystemID
]
]
Oberlus wrote: ↑Sat Oct 17, 2020 10:56 am
I've tried with several other tags used in other SitReps: "ship", "rawtext", "data"... None work, I keep getting LastTurnColonized ERROR.
oh, my fault. yes i meant rawtext tag (there is no data tag). not at my computer to look up stuff.
you should be able to use tag = "turn" in the sitrep and %rawtext:turn% in stringtables to show that value.
Oberlus wrote: ↑Sat Oct 17, 2020 10:56 am
colonized on turn: 5
Hm. Should work. Could you try to ouput an int e.g. 5 ? Could you try to output that value (Target.LastTurnColonized + 33000)? Could you try to output that value (Target.LastTurnColonized + 66000)?
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.