Page 1 of 1

Changing an event's planet

Posted: Mon Jul 04, 2016 1:47 pm
by gentasaurus
Does anyone know if it's possible to change an event's planet?

Code: Select all

<text planet="PLANET_GAS">blahblahblah</text>
I want my event to have a gas planet but the above code has no effect. I don't see why it shouldn't be working since the game does the same thing.
My code is appending properly because my event still shows up, but with a random planet.

Re: Changing an event's planet

Posted: Mon Jul 04, 2016 2:02 pm
by Sleeper Service
Seems in order, so this should work. However, one thing to note is that text tags can only call planets when the event is first called up. If you use this functionality in a deeper event level or a follow up event then it wont take effect. You can't change planets mid event basically. Also note that text tags are usually the first tag to be listed in events, this might affect whether calling the planets works.

Another thing you can try is using the planet tag that is independent from texts:

Code: Select all

<img back="BACKGROUND" planet="PLANET_POPULATED"/>
You can check the vanilla files for examples on how this is used. I think the above mentioned limitations still apply when using this tag. As far as I can tell the vanilla events seem to prefer using this tag first in events, that might again feature into whether it takes effect.

Re: Changing an event's planet

Posted: Mon Jul 04, 2016 2:43 pm
by gentasaurus
Sleeper Service wrote: Another thing you can try is using the planet tag that is independent from texts:

Code: Select all

<img back="BACKGROUND" planet="PLANET_POPULATED"/>
You can check the vanilla files for examples on how this is used. I think the above mentioned limitations still apply when using this tag. As far as I can tell the vanilla events seem to prefer using this tag first in events, that might again feature into whether it takes effect.
Thank you, Sleeper. The <img> tag works, strangely enough. I wonder why.. it's just a normal event that you encounter. At least it works now.