Ok, what I am trying to do is make a replica of a Interstellar Stargate bridge (In the show, a chain of Stargates connected to bridge the gap between galaxies. but since it would be silly to just have one gate "store" the player, I just place two infront of eachother and have the inertia of the player move him though to the other Stargate)
Basically, I will have all the wired keyboard values in constant values, inputted into the expression gate. Then, using the interval, cycle though the six values in the constant and then end at the 7th with a dial command (toggle of 1) Hopefully, when the Stargate disengages, all values will reset and allow for another trip.
In case you don't have any idea what I'm talking about.
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>
>=======>->=======>->======> Flow of travel
*0-----[0*0]-----[0*0]-----0 <endpoint
^ Startpoint ^ * = Dial controller
</div>
And the [0*0] Stands for two Stargates facing each other at a close distance, making the "bridge"
Anyways, i attempted to write the code myself... with no luck whatsoever.
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>N@Gatebrige_controller
I@Gate_active Input1 Input2 Input3 Input4 Input5 Input6
O@Dial_output Dial
Time = 0, If Gate_active & Time <= 200 -> interval(100);
clk() -> Time += 1;
If Time == 1 -> Input1 = Dial_output;
If Time == 2 -> Input2 = Dial_output;
If Time == 3 -> Input3 = Dial_output;
If Time == 4 -> Input4 = Dial_output;
If Time == 5 -> Input5 = Dial_output;
If Time == 6 -> Input6 = Dial_output;
If Time >= 7 -> Dial = 1;
If Gate_active == 0 -> Dial = 0;
</div>
If I could get the Gate_active to turn this on without a toggled button, that would be even better... Also, I found out that as long as I keep outputting the Dial Value, the gate will remain on, but it will automatically close after a while/someone goes though. So I would want a way for it to turn off the dial value once the other Stargate is closed.
Oh, and I will be using one gate per way, just to keep the complexity down.
Any help would be greatly appreciatedThanks! Sorry if my post makes absolutely no sense... its late.


LinkBack URL
About LinkBacks
re;overflow:auto'>



Reply With Quote



Bookmarks