So I've got a timer named Wave Timer that repeats every 15 seconds. I've got a trigger that fires when Wave Timer expires that increments an integer variable named Waves Variable by 1, and Waves Variable starts at -2. I have another trigger that also fires when Wave Timer expires that has an If Then Else-If statement with each Else If checking Waves Variable to see what it is at. For -2 and -1, nothing happens. For 0, it creates my timer window to show Wave Timer to everybody. At 1 and beyond, it pauses Waves Timer. I have another trigger that's just like the previous one, except it doesn't create the timer window and instead spawns units at a given location. Another trigger fires on unit death with the requirement being that the unit is owned by a given player and that no more units of its type remain on the map, and it unpauses Wave Timer.
The problem is that the editor is telling me that the trigger that pauses Wave Timer is broken, even though is functions perfectly in game. It only recently started after I started making two For Loops, one nested inside the other, nested in the first Else If. Should I just ignore it, since it seems to function perfectly?
What is the error message say specificly? (sometimes it just says sc2 editor had an error but sometimes its more specific) Regardless of whether or not it works properly the error looks really bad and you don't want it to show up.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
He's talking about when something is wrong with a specific condition/event/action it has a red X over it.
Correct. Since I started this thread, I've been seeing the red X a lot when it shouldn't be there. I've learned to just ignore it most of the time. An even more strange thing is I've also been experiencing errors in triggers that worked perfectly fine before, with 0 changes made to them. The most common culprit is Triggering Player being read as -1. It's getting really annoying, seems like a bug.
Well then.... Pressing Ctrl + I will toggle an action being enabled or disabled. Disabled actions have a red X over them. So try pressing Ctrl I and see if that does anything. If not, press it again to put the action back to the way it was before. Sometimes I have seen the editor mark things with X's in error when I know for sure my trigger works perfectly fine. Also triggering player might get read as -1 if there was no triggering player (maybe. Thats just a guess). Maybe attach your map here so we can take a look at it? If you dont want to upload it to the public maybe send it to me in a PM.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Well then.... Pressing Ctrl + I will toggle an action being enabled or disabled. Disabled actions have a red X over them. So try pressing Ctrl I and see if that does anything. If not, press it again to put the action back to the way it was before. Sometimes I have seen the editor mark things with X's in error when I know for sure my trigger works perfectly fine. Also triggering player might get read as -1 if there was no triggering player (maybe. Thats just a guess). Maybe attach your map here so we can take a look at it? If you dont want to upload it to the public maybe send it to me in a PM.
Nah it's not the disabled marker. There isn't anything ever wrong with the triggers, it's just a bug in the editor. Occasionally it will say stuff is wrong when it isn't, which makes it a bit confusing when stuff is actually wrong, hehe. If I just ignore them, they're gone when I reload (and I often have to, the editor seems to get really messed up after an hour or two of work). It might be useful to note this bug in the sticky or something, I guess, but this thread has run its course.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I've got a timer named Wave Timer that repeats every 15 seconds. I've got a trigger that fires when Wave Timer expires that increments an integer variable named Waves Variable by 1, and Waves Variable starts at -2. I have another trigger that also fires when Wave Timer expires that has an If Then Else-If statement with each Else If checking Waves Variable to see what it is at. For -2 and -1, nothing happens. For 0, it creates my timer window to show Wave Timer to everybody. At 1 and beyond, it pauses Waves Timer. I have another trigger that's just like the previous one, except it doesn't create the timer window and instead spawns units at a given location. Another trigger fires on unit death with the requirement being that the unit is owned by a given player and that no more units of its type remain on the map, and it unpauses Wave Timer.
The problem is that the editor is telling me that the trigger that pauses Wave Timer is broken, even though is functions perfectly in game. It only recently started after I started making two For Loops, one nested inside the other, nested in the first Else If. Should I just ignore it, since it seems to function perfectly?
It does that sometimes. If it works perfectly, then it's nothing to worry about.
What is the error message say specificly? (sometimes it just says sc2 editor had an error but sometimes its more specific) Regardless of whether or not it works properly the error looks really bad and you don't want it to show up.
@zeldarules28:
He's talking about when something is wrong with a specific condition/event/action it has a red X over it.
Correct. Since I started this thread, I've been seeing the red X a lot when it shouldn't be there. I've learned to just ignore it most of the time. An even more strange thing is I've also been experiencing errors in triggers that worked perfectly fine before, with 0 changes made to them. The most common culprit is Triggering Player being read as -1. It's getting really annoying, seems like a bug.
Well then.... Pressing Ctrl + I will toggle an action being enabled or disabled. Disabled actions have a red X over them. So try pressing Ctrl I and see if that does anything. If not, press it again to put the action back to the way it was before. Sometimes I have seen the editor mark things with X's in error when I know for sure my trigger works perfectly fine. Also triggering player might get read as -1 if there was no triggering player (maybe. Thats just a guess). Maybe attach your map here so we can take a look at it? If you dont want to upload it to the public maybe send it to me in a PM.
Nah it's not the disabled marker. There isn't anything ever wrong with the triggers, it's just a bug in the editor. Occasionally it will say stuff is wrong when it isn't, which makes it a bit confusing when stuff is actually wrong, hehe. If I just ignore them, they're gone when I reload (and I often have to, the editor seems to get really messed up after an hour or two of work). It might be useful to note this bug in the sticky or something, I guess, but this thread has run its course.