This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TheKhaoticFiddler's profile picture

Help With A Game ( Button redstone input powered)

Started by TheKhaoticFiddler, 28 November 2015 - 08:32 AM
TheKhaoticFiddler #1
Posted 28 November 2015 - 09:32 AM
Hiya, so by posting here, i'm clearly stating that I am not holding any intellectual right to the idea and will not bash videos tutorial how to make it this is an idea hereby from the public for the public.

The idea is a 4 player
Button based ( pressure plate)
Race.
The code should be simple enough. There are 4 different inputs, from 4 buttons going into the computer.
The computer has to be able to differentiate between the buttons and apply them to a code.

The code needs to have 4 bars displayed in realtime or close on a monitor with a customizable counter input
Persay the button needs to be pressed 100 times to reach the top (or side, in any sense an "end"). First to finish wins. The game is a race.
Or say the button needs to be pressed a thousand times etc etc.

the code needs to be able to see who won. And relay a drop of items into that button station. My thoughts for this is a bundled cable from the bottom of the computer connected to 4 different color wires?

the reason i want to do this, is gambling has really blown up on the tekkit legends server i play on, though most gambling games are very basic and pretty dull and straight to the point. I want an attraction that is exciting. Exhilarating and captivating to watch. Players will come from all over the world to see the champions face off in a race to the finish.

I'm not very good with computer craft. And i've gotten allot of bases covered but this one has trumped me on my many efforts, i find the tutorials hazy and hard to comprehend. Much help would be appreciated. Thank you!
If you'd like to get direct immediate contact with me you can do so
through
http://jaminrecordsofficial.wix.com/home#!jamin-jordan/bxtqc
Edited by
Bomb Bloke #2
Posted 28 November 2015 - 10:12 AM
Moved to General. Please use Ask a Pro to ask questions, not to make requests.
TheKhaoticFiddler #3
Posted 28 November 2015 - 06:32 PM
Moved to General. Please use Ask a Pro to ask questions, not to make requests.
Thank you much, sorry first time on the forum. I was honestly asking /how/ to do it though.
I need to know how to make a bar that correlates with a button so it can be seen in realtime from a monitor. i apologize if that was unclear.
Lupus590 #4
Posted 29 November 2015 - 03:49 PM
The members here are usually more willing to teach people how to write their own programs over taking requests to make programs.
You will need to know the redstone API and the colours API knowing how to use a monitor will help too.

Do you have any prior programming experience?
Edited on 29 November 2015 - 02:49 PM
Engineer #5
Posted 30 November 2015 - 06:44 PM
I have created such a game on your request, however how do you want to continue after a game has been won? I have it setup right now so it will play the game, but then somebody has to touch the monitor (currently thus not working on just a computer) to continue for the next game.
The current draft can be found on pastebin and is using vanilla redstone (as I cannot seem to remember and bother to support bundled cables) and is highly customisable.

First thing we need, are the sides the input redstone are placed, call it like so:

button_clicker_game s:left s:right s:top
This can be any length, as long as one side is given. Physically it is only possible to support 6 inputs. The left side will be player 1, right player 2 and top player 3; it is thus in order.
The count defaults to 100, but can be set to a positive number with the argument
c:<number>
. The screen defaults to inside terminal but can be set to be ran to a monitor with the argument
m:<lan_name side="">
.


button_clicker_game s:left s:right s:front s:back m:top c:65 rununtilkey
This command wil have 4 players:
  1. Player 1 (left)
  2. Player 2 (right)
  3. Player 3 (front)
  4. Player 4 (back)
And will display to the monitor on the top of the computer. Also this will count to 65, the first to reach this number wins. When then the monitor is touched the game will reset because of the rununtilkey command; when a key is pressed then the current game will finish and afterwards close the application. Without this command it will play only 1 game.

Spoiler
Edited on 30 November 2015 - 05:53 PM
TheKhaoticFiddler #6
Posted 02 December 2015 - 02:27 PM
I have created such a game on your request, however how do you want to continue after a game has been won? I have it setup right now so it will play the game, but then somebody has to touch the monitor (currently thus not working on just a computer) to continue for the next game.
The current draft can be found on pastebin and is using vanilla redstone (as I cannot seem to remember and bother to support bundled cables) and is highly customisable.

First thing we need, are the sides the input redstone are placed, call it like so:

button_clicker_game s:left s:right s:top
This can be any length, as long as one side is given. Physically it is only possible to support 6 inputs. The left side will be player 1, right player 2 and top player 3; it is thus in order.
The count defaults to 100, but can be set to a positive number with the argument
c:<number>
. The screen defaults to inside terminal but can be set to be ran to a monitor with the argument
m:<lan_name side="">
.


button_clicker_game s:left s:right s:front s:back m:top c:65 rununtilkey
This command wil have 4 players:
  1. Player 1 (left)
  2. Player 2 (right)
  3. Player 3 (front)
  4. Player 4 (back)
And will display to the monitor on the top of the computer. Also this will count to 65, the first to reach this number wins. When then the monitor is touched the game will reset because of the rununtilkey command; when a key is pressed then the current game will finish and afterwards close the application. Without this command it will play only 1 game.

Spoiler

I plan to thoroughly study this code, and apply the methods and basic properties to many projects to come. Much thanks. It'll be featured in an arcade on my favorite server, which i wont post here for fear of advertisement ban or something silly like that… But uhm i guess contact me personally if you'd like to see the vast future of this game.