- Joined
- May 11, 2008
- Messages
- 1,198
so i had learned some things about unit pools, item pools...that it's sometimes much better to use them as global variables rather than local variables.
ok, so...now i'm doing that. i don't have to keep on making pools which takes a lot of lines, i can just make them once, and then make units/items come from them with just one line.
now there's this great system someone made up, at least i think it's great...
i liked randomizing the gold resource a certain way for gold mines...
of course i could do something like put the gold mines in a unit pool and have various copied gold mines. but thanks to this pool system i don't have to have x versions of a certain kind of unit if i can adjust the necessary different attributes easily via this integer pool system.
but i've got a problem! as far as i know, his integer pool system only lets you make local intpool variable. you cannot make intpool variable be global. so i cannot reuse the same pool without creating it all over again, which is quite the chore, and is why i sometimes use global unit pools and item pools.
so, i've already asked him about it, but being the impatient person i am, and knowing how slow wc3c.net is to responding to posts...i wanted to see if anyone here could come up with a solution if i posted a thread about the problem.
here's a link to the thread with the system.
http://www.wc3c.net/showthread.php?t=108369
ok, so...now i'm doing that. i don't have to keep on making pools which takes a lot of lines, i can just make them once, and then make units/items come from them with just one line.
now there's this great system someone made up, at least i think it's great...
i liked randomizing the gold resource a certain way for gold mines...
of course i could do something like put the gold mines in a unit pool and have various copied gold mines. but thanks to this pool system i don't have to have x versions of a certain kind of unit if i can adjust the necessary different attributes easily via this integer pool system.
but i've got a problem! as far as i know, his integer pool system only lets you make local intpool variable. you cannot make intpool variable be global. so i cannot reuse the same pool without creating it all over again, which is quite the chore, and is why i sometimes use global unit pools and item pools.
so, i've already asked him about it, but being the impatient person i am, and knowing how slow wc3c.net is to responding to posts...i wanted to see if anyone here could come up with a solution if i posted a thread about the problem.
here's a link to the thread with the system.
http://www.wc3c.net/showthread.php?t=108369