Exclusive percent chances

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Exclusive percent chances

Post by Honktown »

A subtle thing, noticeable in mods: the probability of results = {} is does not need to add to 1, and unless I'm mistaken, may cause a craft to output nothing.

Is there an actual way to do percents? A XOR B XOR C? I imagine with floats there could be rounding issues, but something close enough. There's at present no way to distinguish in the tooltop whether the percents listed are exclusive or not, so there's that too.
I have mods! I guess!
Link

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Exclusive percent chances

Post by Bilka »

Honktown wrote:
Sat Oct 12, 2019 7:29 am
Is there an actual way to do percents? A XOR B XOR C?
No.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Modding discussion”