Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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; https://steamhost.cn/steamcommunity_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.