Hello, I am basically new to JASS scripting. I have recently made a very standard AI, and everything seems to be going great so far! But the problem with my AI is that when the workers are trained they harvest gold, not lumber as I want them to (not the starting workers, the newly trained ones). I have also created waves, and the workers go harvesting lumber only when the wave starts (till the end of the game). If any of you wonder what race the AI is, it's a High Elf race. I also haven't set the campaign elf workers, but edited the human peasant and made him look like a elf worker.
P.S. I don't know if this is a necessary information, but I don't have WaitForSignal() because I heard it doesn't need to be put and because it messes with the AI, it doesn't send out the waves when the command is there, wherever it is placed it still finds a way to mess with the AI. If you need any screenshots of the in-game AI behavior or JASS codes, feel free to ask.
P.S. I don't know if this is a necessary information, but I don't have WaitForSignal() because I heard it doesn't need to be put and because it messes with the AI, it doesn't send out the waves when the command is there, wherever it is placed it still finds a way to mess with the AI. If you need any screenshots of the in-game AI behavior or JASS codes, feel free to ask.