Conditional Branch using a script call should work with script's variables.
Depending on why you want the stats params to be constantly placed into a set of game variables, the script Shaz provided only update when you do a map transfer (changing map), a good way to reduce lag compared to constant update. But if any info changed within the map, it will not get updated until the next map transfer. That's why you shouldn't use the game variables in the conditional branch as the stored variables will not change/update within the same map.
edit:
oops, it's map refresh, so it will work in the same map, just not right away but until the next refresh. but the reason not to use the variables in conditional branch is the same.
I intend to use it for message purpose mostly. If it only updates when I change map, wouldnt it be the same as doing parallel process event with "set variable 1 equal to param 0" in every map?
I understood from the acript description that the variable updates when you're about to use, like mentioning it in a message.
Anyway, what if I modify Dekita's script to call Shaz's update everytime the user open the distribute screen? Could that be possible?
Edit: now that's interesting, may I ask when does the map refresh? Just for curiosity.
Thank you both, this topic is solved now.
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.
I'm not following the line of discussion here. None of the above is applicable. You do not need to refresh the map and you do not need to call a common event to update the variable.
The script lets you allocate a variable to a script call, and every time you want to access that variable, from anywhere (including another script, as long as it uses the $gameVariables.value(n) method), it will run the script call and return the result.
So it should work with other scripts, unless they do something weird to access the variables.
The variable will ALWAYS show the latest information. The thing I was saying about map refresh is that EVENTS are not checked on every single frame to see which page should be active - that only happens when something flags the map as needing to be refreshed. So depending on the script call you're allocating to the variable, it may or may not be able to be used as a condition on the event page (in the event conditions section). Using it in a conditional branch will ALWAYS work.
If you want to discuss this further to gain a better understanding, just report the thread and we'll reopen it for you.