| 05-31-2003, 07:47 PM | #1 |
I have a trigger which doesnt seem to be working, and I think I know the problem but Im unsure. I dont know how to post thie trig itself, but what it does is when a unit is attacked by a certain hero, it adds the attacked unit to a group, then it waits a set time, and removes them. This allows another trigger to pick everyone in that group and do 20 damage to them a second, but it doesnt seem to work.. The effect does so I know the trigger runs but they dont take the damage. Why is that? I think it may have something to do with the fact that multiple units can be attacked by my hero, and when they are 'attacked unit' changes, but then they would just stay in the group forever right? So Im lost and any help would be appreciated. |
| 06-01-2003, 03:45 PM | #2 |
*bump* |
| 06-01-2003, 04:15 PM | #3 |
does 'wait' stop other triggers from running during that time, or am i mistaken? |
| 06-01-2003, 04:45 PM | #4 |
First of all, if that was so, ShadowElf would not make such a mistake, he is an experienced mapper. Second of all, the logic in the statement that it would PAUSE all triggers, would be totaly ... How can I put this, Insaine? How would you then put a break in your current trigger without not pausing all other triggers? So basicly, you are mistaken. |
| 06-01-2003, 05:19 PM | #5 |
I dont know exactly what is causing the problem, but it could be the wait although I dont know why. MY other theory is that perhaps since the unit is added and removed in the same trigger, another does not recognize that they were put in. (i.e. the trigger which does damage to those in the group doesnt do any damage because it never recognizes anyone in the group). Does anyone have any possible solutions? |
| 06-01-2003, 05:21 PM | #6 |
Split it in to two triggers and test... There couldn't be a simpler answer. |
| 06-01-2003, 05:29 PM | #7 |
Shadowelf if you want you can send me your map and I will take a look and fix the problem. I will find a solution for you if you want The offer is on the table(totally up to you) If you wish for me to take a look mail me at EMAIL: [email protected] AIM:Anubhab1234 TFT:Spongebob If anyone else wants my help then feel free to ask also. |
| 06-01-2003, 06:42 PM | #8 |
LOL... Do you know how much work he has put in to the map? I don't think he'd trust you with it. And the answer is already on the table presented by himself. He is to test this though. Regards Dead-Inside |
| 06-02-2003, 01:44 AM | #9 |
Are u using a unit array? Those can cause all kinds of problems. If not make sure u remove the unit from the group when its supposed to. Dying will not remove it automaticly. Also a wait command can cause some triggers to fail. Try making 2 triggers. Put the wait command in the first and then have it activate the second trigger. We had a simular problem while trying to create a boarding action in our sea battle map. We had a wait command that was causing the 'targeted unit' response function to fail. It would work half way and then do random things. Took forever to figure out the problem. But in the end it was a a wait command that interuped the triggers ability to return the target. |
| 06-02-2003, 04:13 AM | #10 |
Waits are a pain if you stick to GUI because GUI uses global variables that can be altered before the Trigger sleep action (WAIT) is finished. The only efficient and easy way to get around this is to use local variables, but then requires your trigger to be converted to custom text. The advantage is that everytime the trigger fires, a new unique variable will be created, not interfering with the previously created ones. Regards |
| 06-02-2003, 04:37 AM | #11 |
Are you sure it will work then, chryd? And if you are, maybe you should show my good friend, how? Regards |
