ok so im making a chip.
i don't have the code now but what it does it every 3 seconds the sign(text screen) changes to another string.
at first i thought a lua code (wait(100)) would work.
but it didnt.
somone help? D:
Be more specific then. I thought you were asking for something similar to a wait command.
An interval(3000) would make your code execute every 3 seconds, if you want something changing every 3 seconds that's probably what you need :/
If you want it to go to a random one every three seconds you could do something like this
for 5 strings
Code:@name Random String thingy @outputs RandomString:string @persist Number String1:string String2:string String3:string String4:string String5:string interval(3000) Number=round(random(1,5)) String1="A" String2="B" String3="C" String4="D" String5="E" if(Number==1){RandomString=String1} if(Number==2){RandomString=String2} if(Number==3){RandomString=String3} if(Number==4){RandomString=String4} if(Number==5){RandomString=String5}
Last edited by Flyingtaco; 08-03-2010 at 09:56 PM.
Shortened :3Code:@name RandString @persist Strings:array String interval(3000) Strings[1, string] = "1" Strings[2, string] = "2" Strings[3, string] = "3" String = Strings[round(randint(1, 3)), string]
Last edited by Ninja101; 08-03-2010 at 08:37 PM. Reason: Forgot interval() :3
--Orson Scott CardIn [his] experience that was a sentence never to be uttered except to prove its own inaccuracyI'm not stupid!
See even though my code had the equal sign problem it still managed to get a nice code.
Last edited by Flyingtaco; 08-05-2010 at 04:10 PM.
Bookmarks