Ludeon Forums

RimWorld => Mods => Help => Topic started by: jonny02 on July 10, 2019, 04:11:13 PM

Title: How to activate a new Raid Strategy after certain days passed?
Post by: jonny02 on July 10, 2019, 04:11:13 PM
I am trying to update a mod from Beta 18 to 1.0 and need help how to activate a new Raid Strategy after a certain time. At the version Beta 18 you wrote <minDaysPassed>15</minDaysPassed> to the new raid but now I just get an error that it doesnt more exist (looked in the source code). Im looking forward for your replys!  :)
Title: Re: How to activate a new Raid Strategy after certain days passed?
Post by: Mehni on July 11, 2019, 03:28:17 AM
<earliestDay>15</earliestDay>
Title: Re: How to activate a new Raid Strategy after certain days passed?
Post by: jonny02 on July 11, 2019, 08:27:02 AM
Thanks for your reply. Sadly it didnt worked :(

Error: XML error: <earliestDay>15</earliestDay> doesn't correspond to any field in type RaidStrategyDef.
Title: Re: How to activate a new Raid Strategy after certain days passed?
Post by: Canute on July 11, 2019, 08:42:49 AM
Maybe a hint, look at the
XML Auto-Documentation
https://ludeon.com/forums/index.php?topic=21440.0
you should find the entry for earliestDay and maybe it helps.
Title: Re: How to activate a new Raid Strategy after certain days passed?
Post by: LWM on July 11, 2019, 11:41:26 PM
earliestDay is part of IncidentDefs, not RaidStrategyDefs.

Maybe you need to find a way to tie the raid that uses your strategy to an incident def?  I'm v fuzzy on how this aspect of things works, but maybe that will help?

--LWM