It involves fetching all visible systems, and parsing it into a svg-like form so i can recreate it in a vector drawing program. It seems i have hit a bit of a snag.
This is the code:
Code: Select all
EffectsGroup
scope = And [
System
VisibleToEmpire empire = Source.Owner
]
activation = Source
effects =
GenerateSitRepMessage
message = "<circle r='4' cy='%rawtext:yval%' cx='%rawtext:xval%' id='%rawtext:planet%!' style='opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1' />"
label = "Map Readout"
NoStringtableLookup
icon = "icons/meter/troops.png"
parameters = [
tag = "planet" data = Target.Name
tag = "xval" data = Target.X
tag = "yval" data = Target.Y
]
empire = Source.Owner
So far so good, but is there any way to have it all be in one message so it could be copy and pasted easily instead of having to copy and paste each individual message?
Follow up question, i looked for a bit but i haven't seen any information on whether starlanes can be printed or not. Is it possible, and if so, what would be the appropriate way of fetching it?