I have a Common Event that triggers after every battle (using SumRndmDude's Battle End Event Plugin), and what it's meant to do is go through variables 1-26 via a loop and add 1 to them if the corresponding actor is in the party (ex. if actor 1 is in the party after the win, variable 1 gets +1). Running the script shown below does not add to the variables however, although the text window shows a correct number. My guess was that $gameVariables.value(id) is not saved as an integer, so I tried making it into one, but it didn't work. Any suggestions?
Having Trouble with Adding to Variables via Loop
Javascript/Plugin SupportSolved, please lock the thread.
you need to report your topic to have a mod lock it, they don't read all posts.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/having-trouble-with-adding-to-variables-via-loop.120274/