Hello. Please help with arrays.
I want to implement one mechanic...
The gist:
I need to check if there are items in the party inventory and if so, how many.
I created 5 items under numbers 23, 24, 25, 26, 27
I need to somehow put them in an array, and in the maker check this array, if at least one item is there, then call a dialog.
I don't know JS, but I suppose there is some kind of thing: $gameItem[n] or no. =(
With variables I could do something like: $gameVariables.value(var, [23, 24, etc])
but I don't know how to make an array of items =(
Please help.
I want to implement one mechanic...
The gist:
I need to check if there are items in the party inventory and if so, how many.
I created 5 items under numbers 23, 24, 25, 26, 27
I need to somehow put them in an array, and in the maker check this array, if at least one item is there, then call a dialog.
I don't know JS, but I suppose there is some kind of thing: $gameItem[n] or no. =(
With variables I could do something like: $gameVariables.value(var, [23, 24, etc])
but I don't know how to make an array of items =(
Please help.