Doubts about how to make one specific weather trigger a specific game effect

Started by Obsdark, September 13, 2020, 03:42:57 PM

Previous topic - Next topic

Obsdark

Hello there,
a question, did any of you know how to make a GameEffect happend when a Weather is triggered?

I mean, as it works with the Toxic Fallout event in Vanilla Rimworld, i'm trying to achieve that, but i cannot find anywhere in the RimWorld code the place where the game condition is triggered after the weather condition enters the game, and i'm trying to make my own game condition to happend in such cases, like in the case of Toxic Fallout event in vanilla.

I manage to actualy make the weather event to work, also an item than call such weather event, and i think i make successfully the game effect and condition too, but i cannot link both things, any ideas?

Suggestions?

Did any of you know a mod than actualy do something like that? (other than time rift, because that ones do it with pure XML, and that doesn't allow me to do the effect i'm trying)

Looking forward to read your replys

PS: Not certain where to post this topic.

LWM

Have you decompiled the code (dnSpy is great)? How does Toxic Fallout work?