I have a quick question about variables.
is there a way to access variables from a script
lets say for example i want to make a Window and within that window i want to have a certain number of buttons (list of buttons), but how many buttons is determined by the variable 0001:Example.
OR
a script that would take three variables (from the list of ingame variables) and find the smallest one
note: i know the basics of ruby and i know how to find the smallest of three numbers, so all i need to know if it is possible to pass variables from the game into a script and then return value from a script into a ingame variable
little diagram:
ingame variable[1] > script > [process the variable] > ingame variable[2]
thank in advance
is there a way to access variables from a script
lets say for example i want to make a Window and within that window i want to have a certain number of buttons (list of buttons), but how many buttons is determined by the variable 0001:Example.
OR
a script that would take three variables (from the list of ingame variables) and find the smallest one
note: i know the basics of ruby and i know how to find the smallest of three numbers, so all i need to know if it is possible to pass variables from the game into a script and then return value from a script into a ingame variable
little diagram:
ingame variable[1] > script > [process the variable] > ingame variable[2]
thank in advance