- Joined
- Dec 14, 2008
- Messages
- 21
Ok, so I decided it would be cool to set up a pokemon style animal trainer arena map where you can have different 'pets' to control. As part of the gameplay I though it would be nice to have different terrain style arenas, like a winter one (Northrend), a tropical one (Sunken Ruins), a forest one (Felwood), autumn (Lorderon Fall), a desert one (Barrens), etc.
Any who, using GUI I set up a trigger to test my idea, it periodically selects a random trigger from my list of terrain triggers. The terrain triggers then generate a base area of terrain type (example felwood - grass) for the arena size and then for each integer 1-20 generate a small ( 1 - 3 ) area of a random terrain type (example felwood - leaves) somewhere random inside the arena. I have made sure it has no leaks (call RemoveLocation( udg_TerrainChange )) and every thing was working smoothly until!!!
If I have more than approximately 3 different terrain styles (felwood, northrend, etc.) then instead of changing the terrain type to what it's supposed to, it changes it to a random one of the previous so far done 3. Let me give you an example as an explantion:
It does the barrens one, perfect, then it does the sunken ruins one, all is well, then the lorderon fall one, things are great, then it tries to do the northrend one and instead of changing the terrain to northrend tiles, it does random barrens ones instead, it says that it ran the northrend trigger, and the terrain types don't match the usual barrens ones. Since it's randomly generated it's not always these ones (ie some times the northrend works fine and the lorderon fall one fails etc).
My question is, does anyone know of this bug and any way to fix it?
Might it be because I am using it on the same terrain spots? If I change the spots will the bug disapear?
Is it becase I'm using GUI? I know some JASS **, so if I had to try and re-do it in JASS I probably could (or if someone wrote one for me
) but only if I knew it was gonna work!
Is there simply a limit to the number of different terrain types you can use, even with triggers? I didn't think this was the case because I swear I've seen maps that used them all!
Please help me out guys
** I am fairly adept at Java, and a C++ beginner, I have read a couple guides on JASS but prefer GUI because I'm too lazy to type and to learn all the JASS syntax (war3 programming is my break from C++ / Java learning).
Any who, using GUI I set up a trigger to test my idea, it periodically selects a random trigger from my list of terrain triggers. The terrain triggers then generate a base area of terrain type (example felwood - grass) for the arena size and then for each integer 1-20 generate a small ( 1 - 3 ) area of a random terrain type (example felwood - leaves) somewhere random inside the arena. I have made sure it has no leaks (call RemoveLocation( udg_TerrainChange )) and every thing was working smoothly until!!!
If I have more than approximately 3 different terrain styles (felwood, northrend, etc.) then instead of changing the terrain type to what it's supposed to, it changes it to a random one of the previous so far done 3. Let me give you an example as an explantion:
It does the barrens one, perfect, then it does the sunken ruins one, all is well, then the lorderon fall one, things are great, then it tries to do the northrend one and instead of changing the terrain to northrend tiles, it does random barrens ones instead, it says that it ran the northrend trigger, and the terrain types don't match the usual barrens ones. Since it's randomly generated it's not always these ones (ie some times the northrend works fine and the lorderon fall one fails etc).
My question is, does anyone know of this bug and any way to fix it?
Might it be because I am using it on the same terrain spots? If I change the spots will the bug disapear?
Is it becase I'm using GUI? I know some JASS **, so if I had to try and re-do it in JASS I probably could (or if someone wrote one for me

Is there simply a limit to the number of different terrain types you can use, even with triggers? I didn't think this was the case because I swear I've seen maps that used them all!
Please help me out guys

** I am fairly adept at Java, and a C++ beginner, I have read a couple guides on JASS but prefer GUI because I'm too lazy to type and to learn all the JASS syntax (war3 programming is my break from C++ / Java learning).