Skip Navigation
variables in lists

I have 2 variables that I want the generator to randomly pick between existing. The generator already accounts for both these variables, that if one doesnt exist, to output 0 under its proper section, so that shouldnt be the issue.

How to I get it to do this?

2
Variables, addition and or statements

Hello, Im working on a generator and im trying to make this work. To explain my vision, I want r.roleBrawn to be added to s.subBrawnMod if s.subBrawnMod even exists, and if it doesnt, to instead just be added to 0, but I cant figure out how to format the syntax to make this work without doing not what I want it to do. Any help or advice?

1
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)AS
AsterBlaster @lemmy.world
Posts 2
Comments 1