Starbound

Starbound

63 vurderinger
Currency Variations
2
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
19.759 KB
20. juli 2023 kl. 14:22
22. juli 2023 kl. 17:21
3 ændringsbemærkninger ( vis )

Abonner for at downloade
Currency Variations

Beskrivelse
Have you ever wanted that pixels looked and felt like you were actually stealing valuable stuff?
No?
Oh, uhhhh, this is akward....

For users
This mod makes pixels look like a variety of coins and gems when in chests or on the ground.
Any "replacer" mod still works like normal except in the 2 cases above.
Though they are still just pixels and are worth the same, it's neat and can allow for more indepth pixel replacers.

For modders
Adds a new buildscript (buildCurrency.lua) that allows the icon to be randomly selected from some config options.
  • "weights": A list of numbers to determine how likely is each image.
  • "weightIcon": A list of images to be selected.
Check the files in this mod for the specifics, there's like... two.

Ready-support
If you want your mod to work with/without this mod:
  • Create a lua file that contains this code:
    function build(directory, config, parameters, level, seed) pcall(function() require("/items/buildscripts/buildCurrency.lua") build(directory, config, parameters, level, seed) end) return config, parameters end
  • Make the builder of your currency files that new lua file.
  • This will make it work like a normal replacer without this mod, but will use this mod if installed.

Patching
  • See the included "money.currency.patch".
  • Images must be provided.
  • The above trick can be used to make it "support ready".
  • If not then it MUST also require this mod, else the game won't start.

Help needed
If someone knows how to obtain item-count inside a buildscript, it would really help out making this mod change icon depending on how much currency is in the item.

Compatibility
Yes

Uninstalling
Shouldn't be a problem, but pixels on the ground or in chests may become invisible because the images were removed.
New chests won't have this problem.
11 kommentarer
MithranArkanere 3. juni kl. 10:51 
Since it doesn't seem like it's possible to check the amount to turn pixels into coins of various denominations, I though "hey, let's go all in on the randomness", and made a bunch images for the pixels that look like the vanilla pixels recolored. 6 colors of the rainbow, black, white and gray, brown and pink.

It looks pretty good, it makes it look a bit like things break into pixels.

So I was thinking, would it be possible to give the pixel icon a compeltely random color every time it's spawned, using just 1 image and recoloring the icon every time, like with equipment and saplings?
~!Optimus-Prime!~ 22. maj kl. 8:20 
Cool! Def using this!
Boss Poltroon 8. mar. 2024 kl. 0:12 
This actually really adds alot to the feel of the game to a degree I wasnt even expecting when I dl'd it. Great mod!
bidiguilo 15. okt. 2023 kl. 11:21 
interesting
Mr. Red Bee 14. sep. 2023 kl. 10:48 
genuinely really good ive always wanted to collect lots of shiny things and this mod fits the bill!
Neddy 23. aug. 2023 kl. 11:05 
Thank you!
FelmastProMcLane  [ophavsmand] 22. juli 2023 kl. 17:21 
Pain
Silver Sokolova 22. juli 2023 kl. 10:23 
Unfortunately I don't think there's a way to detect item count via buildscripts
DrakonBlake 21. juli 2023 kl. 8:35 
It's always nice to have some more variety in the vast expanse of space
FelmastProMcLane  [ophavsmand] 20. juli 2023 kl. 15:15 
It just alters the pixel item to change the icon randomly.
So it should be compatible with everything at the current moment.