Local variables are just variables that are defined inside of events or event groups. They are visible/accessible only from inside these events, hence the name "local". If you set local variable as "Static", it will not be reset.
Like I said, there are other ways to store values that you don't want to be reset, you can put them into a dictionary for example.