TerribleTerrariaPlayer
Terrarian
I have made this thread because i need some info on randomizers. Im currently thinking of a few designs but i cant figure it out on my own. Please feel free to give tips and design ideas.
do you need to randomize information or just a random signal to be outputted?
EDIT: If the latter, then there are faulty gate lamps
The wiki has a pretty good summary of the many things a faulty lamp can achieve http://terraria.wiki.gg/Logic_Gate#Faulty_Lamps
Thanks for the advice again. I have read the article but i still dont know how they work. Im not really that good when it comes to logic gates. My goal is for the randomizer to choose wich small wave comes next. The rate the waves will come is determined by a timer. I also want to try to make the traps from each wave activate in a random order. Maybe this info will help with explaining this all to me.
A faulty logic gate will have a chance of outputting a signal, that is based on the ratio of attached On logic gate lamps to Off logic gate lamps. Getting them to select a single output from many might be a bit tricky. You'll need some faulty not gate type of things. I'll see what I can whip up, and then get back to you.
Oh yeah. That is a bit smarter than what I did. I went with a kind of 50/50 binary tree type of deal.I used a similar set up to this for a random number generator that would only display 1 number at a time.
Yeah, calling the faulty logic gates "random" is some what misleading when it's a chance based on the ratio of On lamps vs Off lamps. But it is very easy to set up a random output with some faulty logic gates, a few AND gates, a dart trap and some teal pressure plates.
View attachment 176530
I used a similar set up to this for a random number generator that would only display 1 number at a time.
Oh yeah. That is a bit smarter than what I did. I went with a kind of 50/50 binary tree type of deal.
Before logic gates we did basically the same thing, but with doors. They open in a random direction, when triggered by wire.
Yes, I remember the doors. I'm so glad we have actual logic gates now and don't need to make randomizers with doors.Oh yeah. That is a bit smarter than what I did. I went with a kind of 50/50 binary tree type of deal.
Before logic gates we did basically the same thing, but with doors. They open in a random direction, when triggered by wire.
Yes, I remember the doors. I'm so glad we have actual logic gates now and don't need to make randomizers with doors.
Yeah, when the wiring update came out the very first thing I did was make a mini-game.
It's really not all that hard to understand when you break it down to all the basic parts.
Do you understand how the randomizer I showed works?
Well, i'm too late, but i'll still drop in a couple of examples that i doodled after reading your post.
So, here example of a spawner, that each second pulses a random statue out of 4 (could be any amount of them):
Or, here a teleporter, that teleport you to a random destination:
And i also build this, lol:
Kind of... As said before the faulty logic gates are triggered based on the number of ON vs OFF lamps. Because the faulty gates in my picture have 1 ON and 1 OFF that means they have a 1/2 or 50% to trigger or not too. If they are triggered they will switch the lamps above the AND gates. The row of AND gates have the lamps above them in a way that makes it so only 1 of the gates at a time can be active.
And there is also 0% and 100% chance generators, that we use mainly as transistors, but there is endless amount of applications.