So I have these events:
Can I make it more automatic? And no need to make specific events for every row and column, Like:
And how to make name become empty or “” if the quantity is 0?
The structure variable have name and quantity etc
Thanks.
So I have these events:
And how to make name become empty or “” if the quantity is 0?
The structure variable have name and quantity etc
Thanks.
Get rid of the 2 conditions on the repeat, and just have the set animation name action with :
GlobalVariableString(toolBox.page1["row"+ ToolsInventoryWindowTool.VariableString(row)]["column" + ToolsInventoryWindowTool.VariableString(column)].name)
Is using “[]” to tweak the variable name only apply for structure variable?
Can it be used for:
There is variable1, variable2, variable3
Then to use the chosen variable is by using [“variable”+x], x is a number.
Yes, though it’s not tweaking the variable, but creating a string from the variable. It allows the name of the structure’s child to be passed as a string.
No, unfortunately. That would be a good use for it.
Hi you can do something like this
Before start the loop set
PageNumber=0 or the value you need as start.
RowNumber= 0 or the value you need as start.
ColumNumber=0 or the value you need as start.
In a Foreach, Repeat or While
ToolBox[“page”+VariableString(PageNumber)][“row”+VariableString(RowNumber)][“column”+VariableString(ColumNumber)][“name”]
PageNumber+=1
RowNumber+=1
ColumNumber+=1