- Joined
- Mar 19, 2017
- Messages
- 34
- Reaction score
- 6
- First Language
- English
- Primarily Uses
- RMVXA
hi, i think it's a basic question, but still
so here, i have a variable array
V[67]
as you can see, i want to add all the values in variable array V[67] with + 1
i make a parallel event to check:
if V[67][0] = 1?
and if yes, it self switch A= on, if not, will not do anything
but not just one event,
there are another event like
if V[67][1] = 1?
if V[67][2] = 1?
and so on.
and at one point, i want to make all values in variable array V[67] to become 1 since the default is 0
i tried to make it with the default system control variables with constant value = 1
and when i tried to make $game_values[67][0] = 0 the output is,

and as far as i know, this is because the game only know V[67] as single variable but not array.
Long story short,
1. anyone know how to add a numeric value to all values in variable array?
2. anyone know how to use loop in script call?
thank you
Edit: i tried to use this script call
my_array = [0]
for i in 1..(30)
my_array << 1
end
$game_variables[67] = my_array
well i'm just messing around with it, and still doesn't work out
so here, i have a variable array
V[67]
as you can see, i want to add all the values in variable array V[67] with + 1
i make a parallel event to check:
if V[67][0] = 1?
and if yes, it self switch A= on, if not, will not do anything
but not just one event,
there are another event like
if V[67][1] = 1?
if V[67][2] = 1?
and so on.
and at one point, i want to make all values in variable array V[67] to become 1 since the default is 0
i tried to make it with the default system control variables with constant value = 1
and when i tried to make $game_values[67][0] = 0 the output is,

and as far as i know, this is because the game only know V[67] as single variable but not array.
Long story short,
1. anyone know how to add a numeric value to all values in variable array?
2. anyone know how to use loop in script call?
thank you
Edit: i tried to use this script call
my_array = [0]
for i in 1..(30)
my_array << 1
end
$game_variables[67] = my_array
well i'm just messing around with it, and still doesn't work out
