well it seems obvious to me that region1 needs to = an actual region. You shouldnt even have to make a variable for that. Just make a new region, rename it and then use it in the triggers... try less offset. it might make it so hes in the region. and then the region should stay revealed.
Try creating a trigger that will display if Region1 is not "no region" when you enter a chat message. It will tell you if the region actually exists so you will know if it comes from the action creating the region or the auto-reveal action. Actually, do that to check each line. It will be easier to fix if you actually know which line is wrong...
I also assume the "pick each" takes each unit one by one, so the revealer will reveal the area in front of unit 1, then show for unit 2, remove the revealer for unit 1, show for unit 3, remove for unit 2, etc etc... It's mainly because the unit checking for a revealer is incremented each time, so the first unit is not in the latest created region for unit 2, and the revealer will stop working.
It may also be because the region variable is unique, so if you select more than one unit, only the last unit in the group will have a region revealed because the variable is set as many times as you have units in your selection. If you want to be sure a region is not overwritten, I'd suggest using an array with a size equals your max number of selected units (I think the absolute max is 6*24 or something like that). Each time you create a region for a selected unit, put in the array with the number matching the place of the unit in the selected group. This way, each unit will have its own region revealed, and if you make a new selection the values will be overwritten to match the new group.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi there,
I started mapping again. And found this forum.. I had some basic expirience with WC3/TFT.
To cut things short, I have a problem. I cant figure out, why this trigger wont work.
Its pertty simplified to show the basics of this trigger.
It should automatically reveal the region in front of the unit.
But it just reveals for a second and thats it. The unit should be within the region but...
I'd greatly appreciate any help :)
Thanks in advance!
well it seems obvious to me that region1 needs to = an actual region. You shouldnt even have to make a variable for that. Just make a new region, rename it and then use it in the triggers... try less offset. it might make it so hes in the region. and then the region should stay revealed.
@aflower: Go
Already tried that. Wont work...
Try creating a trigger that will display if Region1 is not "no region" when you enter a chat message. It will tell you if the region actually exists so you will know if it comes from the action creating the region or the auto-reveal action. Actually, do that to check each line. It will be easier to fix if you actually know which line is wrong...
I also assume the "pick each" takes each unit one by one, so the revealer will reveal the area in front of unit 1, then show for unit 2, remove the revealer for unit 1, show for unit 3, remove for unit 2, etc etc... It's mainly because the unit checking for a revealer is incremented each time, so the first unit is not in the latest created region for unit 2, and the revealer will stop working.
It may also be because the region variable is unique, so if you select more than one unit, only the last unit in the group will have a region revealed because the variable is set as many times as you have units in your selection. If you want to be sure a region is not overwritten, I'd suggest using an array with a size equals your max number of selected units (I think the absolute max is 6*24 or something like that). Each time you create a region for a selected unit, put in the array with the number matching the place of the unit in the selected group. This way, each unit will have its own region revealed, and if you make a new selection the values will be overwritten to match the new group.