I notcied while converting some if/then/else triggers to JASS that WE places each section in different functions. Now I was wondering, can local variables be used in each function within the same trigger?
I don't think so. The names of local variables are not resolved at the point of usage but at compile time of the script. So it cannot know at that point from where the function will be called from.