I don't think this will cause problems to me in the future. Will it?
No clue. It looks safe enough. But then, how could I tell.
I'm doing this just for the sake of increasing readability of my code base.
Yeah. I can see you're aiming to simplify your variables.
My question would be why you would need to refresh them using
after_load:?
I
presume (always a bad idea) you regularly
call calculate_derivative_variables. Either at some key point in the code (a sort of central hub or hubs) or after you've updated any variable which could contribute toward your derived variables.
Therefore the derived variables will always be up to date.
But if they're already up to date, then there's no need to update them during
after_load.
Therefore, if
after_load is necessary, it's because the values of the derived variables are not in line with their contributing variables - presumably because you're not calling
calculate_derivative_variables often enough. Either that, or the variables are all fine and you're doing the whole
label after_load: for no reason.
Or put another way... Would your game still work if a player never loaded a save file... Just played from beginning to end in one session, without ever quitting the game? Because if the answer is yes, I'm not sure why the
after_load is needed.
At best, we could say it's doing no harm. Just setting values that were already set correctly anyway.
At worst, it could be masking a more fundamental underlying problem.
Pardon my skepticism, I'm just being cautious.
If it works... it's fine.
Seriously, RenPy is as simple or complex as you want it to be.
There will always be people who say something can be done better or refined or whatever... but if it works... it's fine.
What matters more is that YOU understand your own code.
If you were part of a team, it might matter... since you'd all need to be on the same page. But a one-man project... whatever works for you.