public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Add 1(numeric) or more to all values in array

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Add 1(numeric) or more to all values in array
  • Original author: rad.noire
  • Original date: September 29, 2017
  • Source thread: https://forums.rpgmakerweb.com/threads/add-1-numeric-or-more-to-all-values-in-array.84998/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support

Summary

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

Archived First Post

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,
Protected download

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

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

error var.JPG
error var.JPG
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#rgss-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar