A global variable can be accessed by any event. Local variables can only be accessed by the events in the same sub event/group. Moving a global variable to a local will delete any conditions/actions that are associated with that variable, except those that are in the sub event/group you moved it to.
Also check that you have made it static as local variables default to non-static.