プレイ日記
admin123 FocalPoint1053
Is there a way to make something that works similar to a slot machine or a "Mystery Crate(thing used on some Minecraft servers.)?" I want to make game where the player presses a button and it randomly gives them a "prize." I'd appreciate any help y'all can give. Thanks.
2そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
You could use the RND function. It returns a random number between 0 and whatever number you put in it minus 1. E.g: RND(10) will return a number between 0 and 9. 10+RND(91) will return a number between 10+0 (10) and 10+90 (100). You can have a number represent each prize. (0 would be prize A, etc.) Make a loop that shows randomly chosen prizes for some time, then stop at one of them.
2そうだね
プレイ済み
返信[2]
親投稿
admin123 FocalPoint1053
Thanks, Oscar! That works great!
1そうだね
プレイ済み
返信[3]
親投稿
BanAgain:l medewindt
Is this using SmallBasic or is SmileBasic a different version unto itself?
0そうだね
未プレイ
返信[4]
親投稿
admin123 FocalPoint1053
I've never heard of SmallBasic before. This is using SmileBASIC, though.
1そうだね
プレイ済み
返信[5]
親投稿
BanAgain:l medewindt
*2postsleft* Ok^^ Thans
1そうだね
未プレイ