• Hey! Register here to create your account, engage with the community, and talk about what is new!

NODE BETA: Function Params Iteration 1

D

Deleted member 26

Guest

PLEASE NOTE THINGS ARE TEMPORARY AND CAN CHANGE



1631830256221.png
This item represents an "argument".
Type in chat to set the name of this argument, so for example I will set it to "message".

1631830310857.png
Currently, you need to specify the type of the variable.

1631830326428.png
By clicking on it you can see the GUI for modifying the argument. This is where you specify the type and optional value.

1631830379078.png
It should be noted that the variable value is not a type that accepts "any type". It represents the variable pointer itself, so that means that you can make arguments similar to those that are in set variables.

1631830363104.png
To set a default value, put an item inside this slot.

1631830512639.png
Once you have your type, put it in the function block chest. NOT CALL FUNCTION!!!
This is specifying the "argument structure".


1631830660352.png
Now we have to use this variable, we want to send the message to whatever value message is.
Middle-click on the argument (TEMPORARY) to get the value.
This variable represents the value of the argument, so then you can use this as a normal value. In this case, we put it in a send message block.


1631830544564.png
Now when you look over your function in the call function menu you can see the argument!
This means that you can put items into the call function.

1631830589674.png
In this case, I put this here.


Now when I call the function I get this... tada!
1631830736296.png
 

stinkey

Forum adept
Joined
Sep 8, 2020
Messages
225
Reaction score
74
Idea: make DF pure functional

anyways this is going to make binary tree inversion so much easier
 

StalkingEye

Forum adept
Overlord
Joined
Sep 10, 2020
Messages
112
Reaction score
28
My man making things more Complicated for DF Such Poggers of you
 
Top Bottom