安装 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(越南语)
Українська(乌克兰语)
报告翻译问题








WHEN hastarget = TRUE DO
FOR program DO Run
FOR program2 DO Run
*Does not seem to run 'program' though it will run 'Program2'. Each program block is ment to detach from the main grid when run. Using this script for the two program blocks; http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=807454034
*Eventually i would like to have this;
[tbm script]
WHEN hastarget = TRUE DO
FOR program DO Run
WAIT 6
WHEN hastarget = TRUE DO
FOR program2 DO Run
Thanks again for the hard work!
Try to set up terminal block manager script in each torpedo.
That script will not work the way it was intended, because 'WHEN' can't be embedded in another 'WHEN' block.
[tbm script]
WHEN hastarget = TRUE DO
FOR program DO Run
WAIT 6
FOR program2 DO Run
Thank you for your time!
But i have a solution for you.
Put timer in grid and set up needed delay and action to run 'program2' block in it,
then rewrite turret's script to this:
Then write the next script in timer's custom data:
This should work fine.
for example i have this.
[tbm script]
WHEN hastarget = TRUE DO
FOR timer1 DO Trigger
FOR timer2 DO Start now
However timer2 will start count down but get stuck, by stuck i mean, if its count down from say, 6sec seconds it will hit 5seconds and not go beyond that point. When i go into the timer block It says on the right "Time to Trigger 5 but will not be changing. Also, nothing is set up to stop the timer block. Have also just set it up with the one script ( Your amazing script ) to see if other scripts were conflicting and still get issue.
It is not actually a bug, because these actions are executing each program tick while logical expression is true. For such cases there is a 'ONCE' keyword. With it actions will be executed only once time, and will not be executed until logical expression become false and true again.
By the way, if you love my script, take a look at the Easy Automation script. It is a lot better than mine. I wish I could know about it before writing my script (◡_◡)
Thanks anyway.
(tbm in rotor)
[tbm script]
WHEN IsAttached = FALSE DO
WAIT 0.5
FOR Rotor2 DO Detach
* Error log:
* Line 1: Block 'Rotor1' has no property 'isattached'.
Unfortunately, information about terminal properties in the wiki is a bit obsolete. There is no more terminal property 'IsAttached' for rotor block. But I just added this in the additional properties, so your script should work fine in the last version of tbm. Thanks for report.
Great script by the way!
This custom data:
WHEN ENABLED going_up AND,
currentPosition OF Piston_v1 = 10 AND,
status OF ConnectorTop = connected DO ONCE
DISABLE Merge_block_nacel_bottom
* Error log:
* Line 2: Block 'going up' has no property 'connected'.
The combinaison of Status and the OF keyword does not seems to work, or I'm using it wrong.