Posted 17 March 2012 - 06:22 PM
Hello everyone ! this is my first post :D/>/>
So , yeah , i had in mind to make a casino or something like that with tekkit. actually , i've coded a lot with gmod's E2 ( a simplified lua code) but I still don't understand everything.
so , i wanna make a slot machine , i know how it should work.
The Slot Machine
note that the tekkit version is not updated , if it was, i'll use screen and a lever.
so basically , the computer have a startup programs and for it to work you'll have to put an item in a chest , and a redpower block will suck it out. it will with another redpower block send a redstone signal to the computer , who'll start doing the slot machine's job. if it happen that the user win , it will send some signal behind it to make some music and some signal down to launch the price out of the dispenser.
that's the basic idea , but i have a lot of problems with code.
so first : how do i make the letters and number "roll" like an actual slot machine ? i had the idea to give each of them a number
(for instance , O = 1 ; X = 10 ; V = 50)
so if the total result is 3 , or 30 , or 150 , you'll win. but , then again , i don't know how to value … a value.
thank's for reading and/or helping me.
ZoumeyZ
So , yeah , i had in mind to make a casino or something like that with tekkit. actually , i've coded a lot with gmod's E2 ( a simplified lua code) but I still don't understand everything.
so , i wanna make a slot machine , i know how it should work.
The Slot Machine
note that the tekkit version is not updated , if it was, i'll use screen and a lever.
so basically , the computer have a startup programs and for it to work you'll have to put an item in a chest , and a redpower block will suck it out. it will with another redpower block send a redstone signal to the computer , who'll start doing the slot machine's job. if it happen that the user win , it will send some signal behind it to make some music and some signal down to launch the price out of the dispenser.
that's the basic idea , but i have a lot of problems with code.
so first : how do i make the letters and number "roll" like an actual slot machine ? i had the idea to give each of them a number
(for instance , O = 1 ; X = 10 ; V = 50)
so if the total result is 3 , or 30 , or 150 , you'll win. but , then again , i don't know how to value … a value.
thank's for reading and/or helping me.
ZoumeyZ