Starbound

Starbound

Starbound Workshop
Is something missing from your Starbound Universe? Maybe you'll find it here amongst the wonderful user created mods, or maybe you'll make it yourself!
Learn More
Hemiptera 9 Apr, 2023 @ 10:38pm
Can Objects be Randomly Generated like Monsters and Weapons?
Hi ya'll!

I was wondering if anyone knew of a way to create a "builder" for randomly generating objects like we see used for weapons and generated monsters? Or perhaps someone knows of a mod where this has already been done?

I'm imagining all sorts of cool uses for this- mainly, enabling us to use a single object as cosmetic filler rather than making a million different versions of the same thing. An easy example would be customized animated fish tanks- different sets of frames containing different fish in different positions would mean that placing multiple fish tanks in a scene would result in some variation rather than a bunch of identical fish all moving in sync.

Yeah, I COULD just make a dozen different objects with unique graphics each, but that's a little more tedious and less flexible if you ask me.

I'm assuming this could be done by creating a lua script somehow randomizing the "imagelayers" used by the object, but I'm no wiz when it comes to scripting. Am I on the right track? Anyone have any ideas?

Thanks!