| 07-30-2002, 07:04 PM | #1 |
Guest | Is there someway to reference a triggering reigon? Say, i have 50 reigons that do the same thing, so i need to know which one the player has entered. I know i can do a for loop to see which reigon the player is in, but that doesnt work for player leaves reigon. On top of the fact that i need to know when a unit leaves, I have found that a Unit Enters Reigon X event fires EVEN WHEN THE CONDITION Unit is in Reigon X EVALUATES TO FALSE. There doesnt seem to be triggering reigon selectable, but does anyone know of a function i could use in custom text format? My last resort is to make a trigger for each that sets a Global reigon equal to the one i have trigger, then running the trigger that does all of the stuff i need it to do referencing the Global. Can anyone help me out? |
| 07-31-2002, 01:53 AM | #2 |
Guest | I May be out of luck. I searched through the custom.j in war.mpq, and found a GetTriggeringRegion function. Unfortunatly it returns type region, and apparently all region vars in your map are accually of type rect, after examining my war3map.j. It would be nice if there were some way to figure out how these regions work. |
| 07-31-2002, 03:29 AM | #3 |
Guest | Regions are a pain in the ***, and I'm surprised that, with the amount that they are used in the campaigns, that there isn't more you can do with them. One other thing is that there is a bug with them. When a unit enters or leaves a region, it isn't actually considered to be in the region if you enter it from the top or right side (and vice-versa for leaving if I remember correctly. So if you do an Action of "Unit enters region" and then do a for loop to check what region it's in, it won't work unless you've entered from one of the 2 good sides, or you put a small wait in it. |
