HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Local variables over several functions

11-24-2003, 04:18 PM#1
35263526
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?
11-24-2003, 04:51 PM#2
AIAndy
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.
11-24-2003, 07:00 PM#3
35263526
Thanks. Oh well, now my jobs a bit harder.