I didn’t quite understand what your problem is here. For each of your characters, do you want all of his stats to go up by the same amount (where that amount is generated by random)?
Okay so i have this rpg i’m making in which i have all the stats for each of the 12 playable characters saved as struts. these struts are in an array. On level up, it’s suppose to check the array for the leveled up character, take those stats, add stats from a range or 0 to their max possible stat up (different for each character) then put that back into the strut. this works fine (i think) it takes the stats and adds a random number then spits back out an increased number. the problem is that, when used in repetition, the new starting int is different from the last int. I have no clue as to why it starts again at random. the odder part about all this is that for the first 5 or so, IT WORKS. then it just decides to start fumbling around.
Do note that the following is very likely to generate 2 different values as the Random node produces a result every time the execution chain triggers.
Perhaps it’s a matter of storing the result of the random:
my problem here is that the next time the character levels up, their stats are diffrent than what they had from the last level up.for example, if they leveled up and had a total of 110 magic attack after the generation. the next level up will add onto a 109 magic attack not the 110 that they had
there’s a second photo that shows this in action.
okay i checked again. you were right Everynone, it was just the debugging that was messing me up. it was working correctly :3