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
Its totally awesome script by the way.
if [condition] = [value] {
then
{
[do some things]
}
else
{
[do some different things]
}
}
but in your tutorial video for the "if" the formatting is just
if [condition] = [value]
[do some things]
if[condition] = [value] <-- if this is true it will run and skip everything else in the current block
[do some things]
Skip
if[condition] = [value] <-- this will be skiped if the previous [condition] was true
[do some things]
Skip
[do some things] <-- this will be skiped if the any of the [condition] was true
if the contition is true then it will run to the end of the if statement then skip the rest of the code block and return to the code block that refferenced it. Skip is detailed in tutorial 5 along with End.
Bright Light01
Bright Light02
Dim Light01
Dim Light02
Bright Dim Light01
then
"OnOff Light" will toggle All Lights
"OnOff Light01" will toggle Bright Light01, Dim Light01 and Bright Dim Light01
"OnOff Bright Light" will toggle Bright Light01 and Bright Light02
"OnOff Bright" will toggle Bright Light01, Bright Light02 and Bright Dim Light01
"OnOff Dim Light" will toggle Dim Light01 and Dim Light02
In this fashion you can have "groups" with common names, there is no risk that a future update will mess with the groups you make, and it also encourages good naming habits so that you don't end up with a bunch of generically named blocks that can easily be confused.
Okay so how do I read "Room pressure" of an airvent for an "If"? I wrote
If Room pressure of L_Airlock_Vent < 1
but nothing happening
Room pressure of L_Airlock_Vent < 1%
should work, don’t forget to add the unit indicator "%" when using a detailed info check.
Let me know if this does not do it, I am not so sure about this one because it changes to text when it is at 0% so you might run into some problems.
If this is fails, then how do I check for open or closed door? Open, Open_On or Open_Off?
with the limets set to 170 and 190
@Seesaw{
if Current angle of rotor < 180d
Velocity of rotor = 10
if Current angle of rotor > 180d
Velocity of rotor = -10
if Current angle of rotor = 180d
Velocity of rotor = 0
}
this might do it? Play around with this and see what you come up with :)
if Open of door = true
this will check if the door is open