#RSL

1 messages · Page 1 of 1 (latest)

round rune
#

What does the tooltip look like for an item with multiple spoilage results?

formal venture
#

The spoil result displayed in the spoilable item will be a question mark. (for now)
I'll try to generate an icon with a mix of the multiple results, but obv this won't work if there are too many possible results.

#

Unfortunately, the spoil result tooltip is, as far as I know, generated by the engine based on the prototype

round rune
#

the mod description is kinda confusing to me. how would I make iron bacteria spoil into iron ore or copper bacteria?

formal venture
#

This is a library, an internal mod meant to be used by other mods.

Did you read the documentation ? If yes, please, point me to what you didn't understand so I can improve it.

But to keep it short :

  1. You require the rsl data registry in your mod and pass it an item, be it your own custom item, or any pre existing item in the game. You don't need to define a spoil result here, you just need to make your item and define how many spoil ticks it needs to "turn"

  2. To call the remote interface to access the runtime registry, with the name of your item, and the parameters. The parameters define how many possible results your item has when it spoils, and how they are chosen (randomly ? based on a condition ? Both)

And that's it. You then just have to call RSL on_init, on_load and on_configuration change.