Ludeon Forums

RimWorld => Mods => Help => Topic started by: Basker_ville on September 12, 2021, 11:55:40 AM

Title: Any way to use RNG with only XML?
Post by: Basker_ville on September 12, 2021, 11:55:40 AM
E.g. a gun that fires a randomized projectile from a list.

Can this only be accomplished in .dlls?
Is there a function in RimWorld that can simply be referenced in XML to randomly pick from a list in XML?

Title: Re: Any way to use RNG with only XML?
Post by: Canute on September 12, 2021, 12:16:34 PM
No,
XML mod can only modified existing gameplay mechanics, and what you describe isn't at vanilla so you need to create that meachinc yourself with c#.
Title: Re: Any way to use RNG with only XML?
Post by: Basker_ville on September 12, 2021, 12:26:52 PM
Thank you.