安装 Steam						
					
				
				
									登录
											 | 
						语言
						
																																															繁體中文(繁体中文)
																													日本語(日语)
																													한국어(韩语)
																													ไทย(泰语)
																													български(保加利亚语)
																													Čeština(捷克语)
																													Dansk(丹麦语)
																													Deutsch(德语)
																													English(英语)
																													Español-España(西班牙语 - 西班牙)
																													Español - Latinoamérica(西班牙语 - 拉丁美洲)
																													Ελληνικά(希腊语)
																													Français(法语)
																													Italiano(意大利语)
																													Bahasa Indonesia(印度尼西亚语)
																													Magyar(匈牙利语)
																													Nederlands(荷兰语)
																													Norsk(挪威语)
																													Polski(波兰语)
																													Português(葡萄牙语 - 葡萄牙)
																													Português-Brasil(葡萄牙语 - 巴西)
																													Română(罗马尼亚语)
																													Русский(俄语)
																													Suomi(芬兰语)
																													Svenska(瑞典语)
																													Türkçe(土耳其语)
																													Tiếng Việt(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
 
											 
													

 1
 1								 
					 
													




 举报此帖
 举报此帖


-- the writer. the number input will be in a string. the writer needs to be named thingamalangInput1
-- now, thingamlang is whatever number the "thingamalangInput1" writer is in string.
-- if you wanted to display this text on a display, use:
-- display = getDisplays()[1]
-- display.clear()
-- display.drawText(1, 1, thingamalang)
-- display.forceFlush()
-- display.flush()
-- and just put this below the tostring(getreg( line
display = getDisplays()[1]
N1 = tostring(getreg("N1"))
N2 = tostring(getreg("N2"))
N3 = tostring(getreg("N3"))
N4 = tostring(getreg("N4"))
ENN = N1 + N2*10 + N3*100 + N4*1000
display.clear()
display.drawText(1,1, ENN)
display.flush()
function callback_loop()
if _endtick then
display.clear()
display.forceFlush()
end
end
so, you need 4 writers named "N1", "N2", "N3", and "N4"
add a counter block, and add the number blocks with the 4 digits coloured for numbers in the thousands. connect the first digit to the "N1" writer, second to "N2", and so on.
add a number into the counter, and turn the computer off and then back on. it will show that number in the display.