You shouldn't bother with explaining Galaxy in a tutorial teaching people about GUI. GUI exists because people don't like Galaxy.
Anyways a couple points you should probably fix:
Quote:
Local Variables Any local variables you want to declare for this function, it is damn good programming etiquette to create and set a local variable for every parameter variable you have.
Sorry, but this is blatantly wrong. Using parameter variables is fine, and its far better programming etiquette to not create useless extraneous variables.
Also you don't need to use custom script to call functions (and this is a pain for someone who uses GUI). Essentially, you only need to use a variable set action to call them - ie, Set variable myInt to value myFunction(). If you don't want to have a variable storing the value you get from the function, why are you making a return function anyways? You can use an action definition instead to do the same thing more efficiently.
Hint text is basically like comments regarding the function. For example, you could include notes on what the function does exactly or other things. I would say tis important for anyone making libraries, but if the functions are just for personal use in a map its pretty extraneous.
EDIT: Also you should include that the function needs to be able to return a value every time, outside of if/then blocks. For example, if you have a function that returns X if "2 + 2 == 4", then it will have an error saying that its possible for it to not return a value. Even though this is obviously untrue, you need to include a return statement outside of the if/then statement so that it can compile properly.
You shouldn't bother with explaining Galaxy in a tutorial teaching people about GUI. GUI exists because people don't like Galaxy.
Anyways a couple points you should probably fix:
Sorry, but this is blatantly wrong. Using parameter variables is fine, and its far better programming etiquette to not create useless extraneous variables.
Also you don't need to use custom script to call functions (and this is a pain for someone who uses GUI). Essentially, you only need to use a variable set action to call them - ie, Set variable myInt to value myFunction(). If you don't want to have a variable storing the value you get from the function, why are you making a return function anyways? You can use an action definition instead to do the same thing more efficiently.
Hint text is basically like comments regarding the function. For example, you could include notes on what the function does exactly or other things. I would say tis important for anyone making libraries, but if the functions are just for personal use in a map its pretty extraneous.
EDIT: Also you should include that the function needs to be able to return a value every time, outside of if/then blocks. For example, if you have a function that returns X if "2 + 2 == 4", then it will have an error saying that its possible for it to not return a value. Even though this is obviously untrue, you need to include a return statement outside of the if/then statement so that it can compile properly.