Starbound

Starbound

63 个评价
Currency Variations
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
19.759 KB
2023 年 7 月 20 日 下午 2:22
2023 年 7 月 22 日 下午 5:21
3 项改动说明 ( 查看 )

订阅以下载
Currency Variations

描述
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 条留言
MithranArkanere 6 月 3 日 上午 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!~ 5 月 22 日 上午 8:20 
Cool! Def using this!
Boss Poltroon 2024 年 3 月 8 日 上午 12: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 2023 年 10 月 15 日 上午 11:21 
interesting
Mr. Red Bee 2023 年 9 月 14 日 上午 10:48 
genuinely really good ive always wanted to collect lots of shiny things and this mod fits the bill!
Neddy 2023 年 8 月 23 日 上午 11:05 
Thank you!
FelmastProMcLane  [作者] 2023 年 7 月 22 日 下午 5:21 
Pain
Silver Sokolova 2023 年 7 月 22 日 上午 10:23 
Unfortunately I don't think there's a way to detect item count via buildscripts
DrakonBlake 2023 年 7 月 21 日 上午 8:35 
It's always nice to have some more variety in the vast expanse of space
FelmastProMcLane  [作者] 2023 年 7 月 20 日 下午 3:15 
It just alters the pixel item to change the icon randomly.
So it should be compatible with everything at the current moment.