Starbound

Starbound

评价数不足
Die mod
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
21.878 KB
2016 年 10 月 29 日 上午 4:46
2017 年 1 月 22 日 上午 7:47
3 项改动说明 ( 查看 )

订阅以下载
Die mod

描述
I missed the possibility to generate random numbers to distribute loot in multiplayer.

Instructions:
Craft a die and throw it.
Wait until the die is still.
Pick up the die to display a random number between one and hundred.

Improvments:
- added light effect
- changed color of text from orange to white

Fixed Bug:
- damage on pick up
热门讨论 查看全部(2)
2
2019 年 7 月 5 日 上午 5:20
bug report
MR_Monkey
2
2022 年 6 月 3 日 上午 4:10
feature requests
MR_Monkey
27 条留言
Zumoku 2020 年 8 月 3 日 下午 5:40 
Yeaaaazz!! this is exsactly what I was looking for!! Awesome mod!!
Soblow 2019 年 7 月 5 日 上午 11:43 
I tried in vanilla and with my "light" modpack, and it works normaly, but with the full modpack, the die just stand here for 1 min, then I can pick it up.
This might be a mod conflict, but I have no way to tell exactly, as there is REALLY nothing in logs (at least, nothing is added between when I launch the die and when I retrieve it)
MR_Monkey  [作者] 2019 年 7 月 5 日 上午 5:20 
@Doctor Tee / Soblow did you try to pick up the die by walking over it? I tested this in version 1.4.3 (windows x86_64). I could not reproduce the bug you described.
Soblow 2019 年 7 月 3 日 上午 7:43 
It doesn't seem to work with 1.4 (The die stays on the ground for 1 min, but no text appear)
MR_Monkey  [作者] 2017 年 5 月 6 日 上午 3:01 
@Lord Zarnox i tested the function math.random(lower, upper)
at https://www.lua.org/cgi-bin/demo . lower and upper are possible values.
"Is that inclusive or exclusive (including 1 and 100 or not including them)?"
It is inclusive 1 and 100.
MR_Monkey  [作者] 2017 年 5 月 6 日 上午 2:05 
@Lord Zarnox I use

math.randomseed(os.clock()*100000000000)
local r = tostring(math.random(1,100))

http://lua-users.org/wiki/MathLibraryTutorial

says that "math.random(lower, upper) generates integer numbers between lower and upper."

I am not sure. But i think 1 and 100 are possible.
Zarnox 2017 年 5 月 5 日 下午 3:30 
Is that inclusive or exclusive (including 1 and 100 or not including them)?
MR_Monkey  [作者] 2017 年 4 月 27 日 下午 11:36 
@Sdb62 "Pick up the die to display a random number between one and hundred."
sdb62 2017 年 4 月 27 日 下午 8:21 
How many numbers?
Zarnox 2017 年 1 月 22 日 下午 1:45 
You're welcome.