| 03-30-2008, 01:54 AM | #2 |
The "unit is in region" condition is funny in that on 2 edges, it won't work properly and on 2 edges it does (the way the engine handles regions). The quick fix is to make a slightly bigger region around the event region and use that region for the condition. |
| 03-30-2008, 02:14 AM | #3 |
Expanding on what Ammorth said: What GUI calls a "region" is what Jass calls a "rect". When you create an entered region event the Gui region (Jass rect) is converted to a Jass region. The problem is that there are positions units can be in where they are not in the gui region, but they are in the jass region. This is Blizzard's fault. |
| 03-30-2008, 02:19 AM | #4 |
K did that and still no luck... does not work |
| 03-30-2008, 02:24 AM | #5 |
Re-post the trigger. You must have something wrong. For debug purposes, stick a game message after each condition and see which condition fails. From there, you can find out what the problem is. |
| 03-30-2008, 02:30 AM | #7 |
Make sure the triggering unit is an enemy and make sure the LeakCtrl is set to 1. Other than that, I see nothing wrong. |
| 03-30-2008, 03:18 AM | #8 |
hmm .. wierd |
| 03-30-2008, 04:02 AM | #9 |
k i added tests to it and it appears to be stopping at this if statement.. If - Conditions (Blue end test <gen> contains (Triggering unit)) Equal to True ((Owner of (Triggering unit)) is an enemy of Player 2 (Blue)) Equal to True The first one should be true when the region contains the unit (which it does) and secondly, player 1 is enemies with everyone, same with player 2 (so second if should be true)... Further testing... and have came that: (Blue end test <gen> contains (Triggering unit)) Equal to True is not working and need to know how to make it work <- any other ideas since expanding the region didn't do anything ? |
| 03-30-2008, 06:42 AM | #10 |
For future references... Trigger: Use trigger tags.Suitable for GUI triggers. |
| 03-30-2008, 03:42 PM | #13 |
I just realized you didn't do what I said before. You need to create a NEW region and make it slightly bigger (by 1 on all sides) than the old region. The new region should be used only for the condition (Is unit in region) while the old smaller region should be used for the event. |
| 03-30-2008, 04:43 PM | #14 |
Maby... but just realized that that single condition(the one causing problems) is useless since the event is already detecting an entering unit and no need for a condition to detect entering unit. Its fixed now. Thx anyways guys. |
