- Joined
- Jul 2, 2014
- Messages
- 7,563
- Reaction score
- 5,328
- First Language
- English
- Primarily Uses
- RMMV
I'm confused by your wording as to whether you want to add the value of 873 to each of those other variables IFF they are greater than 0; or if you want to get one number that is the sum of all of those?Is there a script call that I can use to check each variable within a convective range of IDs (such as variables 800-872) to see if they are greater than 0, and if so, add the value of variable 873 to them?
Either way, you'd just access the variables array directly:
$gameVariables._data[index]
So you can make a loop that goes through that and does whatever you intended to say, or use the JavaScript inherent array functions, whatever.