| 07-03-2006, 07:59 AM | #1 |
The trigger works for what is intended, but why are my two heroes "Hero1" and "Hero2" also being teleported? This is suppose to repel all units except for the two heroes. Yet they also get teleported away when they enter the region despite my conditions for them. |
| 07-03-2006, 08:10 AM | #2 |
And, boy, and! |
| 07-03-2006, 08:24 AM | #3 |
Use Entering Unit instead of Triggering Unit. Triggering Unit isent always the unit that triggers (sounds stupid but its true). |
| 07-03-2006, 09:11 AM | #4 |
Triggering unit is fine. ((Triggering unit) Not equal to Hero1) or ((Triggering unit) Not equal to Hero2) Will, of course, always return true, as it is a NOR, and both conditions cannot possible to false at the same time. So use and instead. |
| 07-03-2006, 12:00 PM | #5 |
And is not right. If you use and, it saying is unit = a unit AND is unit = another unit, 1 unit cannot be equal to 2. I dont actually see anything wrong with the code. It works fine when i test it. Are you sure theres no other trigger making it move? |
| 07-03-2006, 12:22 PM | #6 |
((Triggering unit) Not equal to Hero1) or ((Triggering unit) Not equal to Hero2) |
| 07-03-2006, 12:45 PM | #7 |
Hes done that because he DOSENT want those 2 units to move, so the condition was to check that they are not the units. |
| 07-03-2006, 01:02 PM | #8 | |
It was in response to your rather random statement: Quote:
The correct condition is: Trigger: ((Triggering unit) Not equal to Hero1) and ((Triggering unit) Not equal to Hero2)As I have been saying from the beginning. So why are you arguing? |
| 07-03-2006, 01:11 PM | #9 |
Ah. I think i will just slowly come out of this thread... |
| 07-03-2006, 04:40 PM | #10 |
Er, are you sure? Because Hero1 and Hero2 are the ones I DON'T want to be teleported away when they enter the region... So wouldn't and make the conidition "when hero 1 and hero 2 aren't entering the region" Because all my region related events for cinematics or other triggers that can be triggered upon hero1 or hero2 entering a paticular region have always used. ((Triggering unit) Equal to Hero1) or ((Triggering unit) Equal to Hero2) And those events have always worked fine, when hero1 or hero2 enters those regions my triggers would go off... Not sure why it would need an and in this case, because isn't that saying hero1 and hero2 both need to be entering the region at the same time to meet the conidtion? |
| 07-03-2006, 04:54 PM | #11 |
But if you want them to NOT be acted upon, (ie: using not equal to), you need to use and, because otherwise one of them must fire off as true, so it will always be true. Not equal is dealt with differently (oppositely) to equal to. |
| 07-04-2006, 02:07 AM | #12 |
I think you need to specify just one of your heros per line of condition as a negative (Not equal to). Something like: Conditions (Owner of (Entering unit)) Equal to Player 1 (Red)and AND - Any (Conditions) are true Conditions: Entering unit not equal to hero1 Entering unit not equal to hero2 Give it a go, see if it works. and is not part of the trigger at least not how it is viewed it is an assumed "and" thus if the unit is player red and any of the next conditions are true: How this would read with OR as the condition is that Hero 1 is not equal to hero 2, thus hero 1 can be teleported. Hero2 is not equal to hero1, thus he can be teleported. Hm. Another way to say it thus this edit: A unit enters region 18 - that unit is player red's - the unit is not Hero one and is not Hero 2, thus can be teleported. |
| 07-04-2006, 07:14 AM | #13 |
The And any conditions is the same as and, it can just have more than 2 statements into it though. |
| 07-04-2006, 08:34 AM | #14 |
Why would you put in an And? It is pointless, since all conditions are presumed to be and unless stated otherwise. |
| 07-04-2006, 04:01 PM | #15 | |
Quote:
For human clarity - not the computers. I was trying to demonstrate through wording how this works. The Author could use other combinations to achieve the same results I placed it in a form that is more grammatically accurate to what is actually happening. |
