Right then im gonna show you the expression. As far as i know about the expression it aint all that hard to learn you might just need a few tips here and there and thats what im here for.
Now when you take the expression tool click on new expression and then you will se a Label Input Output and Line 1-60.
Im gonna start showing you the simplest of expressions like:
Add.
Inputs:A B
Outputs:C
Line1:C=A+B
And there you have it. Thats an add gate.
You can also make it divide, subtract, multiply as far as i know.
Here are the signs for each of them:
Divide=/
So its C=A/B
Subtract=-
Multiply=*
You can make other things like this:
Inputs:A
Outputs:B
Line1:A==1 -> B=5;
Line2:A==0 -> B=2;
Right there you are saying it if the A input is 1 it should output B as a value of 5. And if A is 0 then output 2. And each line like that must always end with a ; not a : but a ; and it must not end with a ; if its a add or subtract or anything like that.
Here is another thing you can do too.
Inputs:Ranger
Outputs:Fire
Line1:Ranger>50 -> Fire=1;
Line2:Ranger<50 -> Fire=0;
There its simply if someone is farther than 50 from the ranger then the turret should fire but if its closer then it should not fire. The > and < are greater than and lessthan signs. Greather than is this > and Lessthan this <.
And yeah i forgot the -> thing means like then. So like let me make it as i whould read an expression
Line1:If A is 1 then B is 5;
Line2:If A is 0 then B is 0;
And no its just how i say it is when i am making expressions.
And if you are making like if the button is this then this is that you must always have a == not a single = becouse if its a single = then you are telling it that it is that value but if its == then you are asking it.
And the last thing i want to show you is a think i have just learned and that is concommand. Concommand is a thing that goes and says stuff to the console.
Like so:
Inputs:A
Outputs:
Line1:A -> concommand("kill");
So there if you wire A to a button so everytime you push the button then it will kill the owner of the expression.
You can also make expressions make you say stuff.
Like so:
Inputs:A
Outputs:
Line1:A -> concommand(' say This is how it works');
And it must always end with a ;
So thats all so far i might add more later when i feel like it. I hope this has helped you in becoming a wire god (im not one),
Now when you take the expression tool click on new expression and then you will se a Label Input Output and Line 1-60.
Im gonna start showing you the simplest of expressions like:
Add.
Inputs:A B
Outputs:C
Line1:C=A+B
And there you have it. Thats an add gate.
You can also make it divide, subtract, multiply as far as i know.
Here are the signs for each of them:
Divide=/
So its C=A/B
Subtract=-
Multiply=*
You can make other things like this:
Inputs:A
Outputs:B
Line1:A==1 -> B=5;
Line2:A==0 -> B=2;
Right there you are saying it if the A input is 1 it should output B as a value of 5. And if A is 0 then output 2. And each line like that must always end with a ; not a : but a ; and it must not end with a ; if its a add or subtract or anything like that.
Here is another thing you can do too.
Inputs:Ranger
Outputs:Fire
Line1:Ranger>50 -> Fire=1;
Line2:Ranger<50 -> Fire=0;
There its simply if someone is farther than 50 from the ranger then the turret should fire but if its closer then it should not fire. The > and < are greater than and lessthan signs. Greather than is this > and Lessthan this <.
And yeah i forgot the -> thing means like then. So like let me make it as i whould read an expression
Line1:If A is 1 then B is 5;
Line2:If A is 0 then B is 0;
And no its just how i say it is when i am making expressions.
And if you are making like if the button is this then this is that you must always have a == not a single = becouse if its a single = then you are telling it that it is that value but if its == then you are asking it.
And the last thing i want to show you is a think i have just learned and that is concommand. Concommand is a thing that goes and says stuff to the console.
Like so:
Inputs:A
Outputs:
Line1:A -> concommand("kill");
So there if you wire A to a button so everytime you push the button then it will kill the owner of the expression.
You can also make expressions make you say stuff.
Like so:
Inputs:A
Outputs:
Line1:A -> concommand(' say This is how it works');
And it must always end with a ;
So thats all so far i might add more later when i feel like it. I hope this has helped you in becoming a wire god (im not one),