they are not all the same. they all do something different.
1 checks the current money and takes it to a variable and other things
2. check if the player got any items at any time
3. check if the player got any achievements
4. check the weather and time of day all the time
all of that can be turned into plugins.
I have similar things running on my end.
nº 3 in my case would be quests, which are tied to all other triggers: end of battle, item acquired, party changed, event interacted with, etc.
you don't need to watch the money 100% all the time, only when it changes.
and it changes during battle, after visiting a shop, or after acquiring an item randomly, which can only be done outside of battle through an event interaction.
it's the proverbial "are we there yet? are we there yet? are we there yet?" question from annoying kids.
this is what is known as "event-oriented" programming, as opposed to "real-time interaction" programming.
real-time interaction is what shapes things like guided missiles and self-driving cars: they *must* check their environment all the time, because both it and themselves are constantly changing
event-oriented interaction only happens when another thing triggers the block of instructions, and then it goes back to a state of rest... like an ATM, or a calculator.