- Joined
- Mar 19, 2017
- Messages
- 34
- Reaction score
- 6
- First Language
- English
- Primarily Uses
- RMVXA
hello, so i want to ask about variable array.
here is the example:
V[5] = [0, 1, 2, 3]
i want to display the second index (which mean index with value=1) in a text or item desc.
i tried to use this on show text or item description:
variable array 5 index 2 is \V[5][1]
but the result is:
variable array 5 index 2 is [0, 1, 2, 3][1]
instead, the result i want is:
variable array 5 index 2 is 1
i know that we can put array value into another variable and display said variable in example:
$game_variables[6] = $game_variables[5][1]
variable array 5 index 2 is \V[6]
but i don't want to use other variable to display said value
so how do i achieve that? any help is appreciated
here is the example:
V[5] = [0, 1, 2, 3]
i want to display the second index (which mean index with value=1) in a text or item desc.
i tried to use this on show text or item description:
variable array 5 index 2 is \V[5][1]
but the result is:
variable array 5 index 2 is [0, 1, 2, 3][1]
instead, the result i want is:
variable array 5 index 2 is 1
i know that we can put array value into another variable and display said variable in example:
$game_variables[6] = $game_variables[5][1]
variable array 5 index 2 is \V[6]
but i don't want to use other variable to display said value
so how do i achieve that? any help is appreciated


