| 07-13-2007, 12:58 AM | #1 |
Edit 1 ~ Attack problem solved, so I renamed & rewrote the thread... to clear some confusion. After reading this, it says that "locals" cannot be used with an if/then/else statement or w/e after they are defined?... Pardon me if I totally butchered the technical terms. Basically, I have this map, in which one of the characters has a skill that partially blinds (in addition to other effects taken care of by the ability) a target for a duration. So I add a goblin nightscope ability to the target unit and that's all spiffy... but whenever it comes time to remove it, I don't want to remove it if the buff is still there (From another enemy casting it on that unit). I figured originally I'd use an If/then/else, to check if the unit had the Twilight Dawning buff, but with locals not being able to be used (To make it MUI), how do I find out if the unit is still under the effect of the skill w/o it? |
| 07-13-2007, 01:13 AM | #2 |
I know you found a solution, but you could always hide passive abilities in a spell book. |
| 07-13-2007, 03:12 AM | #3 |
Thread updated as necessary. Also one more thing, how do you determine if the time of day is night or day via triggers? |
| 07-13-2007, 03:14 AM | #4 |
Not sure if this is a real function but... if Game - Get Time of Day >=12 then //code |
| 07-13-2007, 03:16 AM | #5 |
| 07-13-2007, 03:27 AM | #6 |
Thx max, that'll work, but still need help on the MUI problem. |
| 07-13-2007, 03:33 AM | #7 |
periodic event that picks every unit on the map, checks for the buff, and removes the nightscope ability from any unit without the buff? sorry if thats too sloppy, i might think of something better within a few minutes ![]() |
| 07-13-2007, 07:40 PM | #8 |
No, maximilianx, your solution is the best possible. It's very effective and leaves no room for loop with waits errors or anything. Par example: Trigger: ----- This line being where you add the nightscope ability to the unit -----
![]() Unit Group - Add (Target Unit of Abilty being cast) to Nightscope_Group |
