Well, i'd like to know why everytime I use the Custom Script action in my map, it gets an error when I save: "Syntax Error", even if the syntax is corret.
I copied lots of script actions from other maps, and it always displays this error.
Btw, what I'm really trying to do now is a revive hero action, since the editor has no revive action and there is an action that can do it in the galaxy language, i'm trying to use the UnitRevive function like in this tutorial:
So far, the error still happening, I even tried to put all my variable names like he did in the tutorial, but, no success.
Anyone know wtf is it? Another way to revive a hero would be appreciate too, but, I'd like to understand why this error always happen to me :(
Are you sure everything is set right? Earlier today that happened to me, I made a stupid error on my part and tried to set a variable... Did you know that Integer001 >= == doesn't make sense to the computer? But yeah, anything of the slightest error can confuse the computer and give that error. Just look at the Syntax error message, it should give you some idea where to look.
dyUnit is a local variable of type Unit that refers to the triggering unit in the "Any Unit Dies" event.
I also tried to make the variable global, or to remove the "lv_" part, etc, but bam.. ERROR! -_-
Btw, the line code it shows the syntax error is a line that has nothing to do with this trigger, a screen button trigger to vote for the dificult of the game (with absolutely no link to this revive hero function).
thats what it is supposed to do...
But there is no syntax error, and this is not the 1st time it happens, as I said, it always happen when I create a custom script
I guess i'll just repair my Sc2 or reinstall.
Exactly as I said, it was a bug.
I just reinstalled the game and now it is compiling.
However, there is a little problem, my hero is reviving but he is becoming "Invisible" or hidden, idk.
The boss bar is updating when I revive him, and so is the Move Unit and Pan Camera to its position, but, the hero does not show up.
Is there something else I need to do in this UnitRevive function?
Well, i'd like to know why everytime I use the Custom Script action in my map, it gets an error when I save: "Syntax Error", even if the syntax is corret. I copied lots of script actions from other maps, and it always displays this error.
Btw, what I'm really trying to do now is a revive hero action, since the editor has no revive action and there is an action that can do it in the galaxy language, i'm trying to use the UnitRevive function like in this tutorial:
So far, the error still happening, I even tried to put all my variable names like he did in the tutorial, but, no success.
Anyone know wtf is it? Another way to revive a hero would be appreciate too, but, I'd like to understand why this error always happen to me :(
Are you sure everything is set right? Earlier today that happened to me, I made a stupid error on my part and tried to set a variable... Did you know that Integer001 >= == doesn't make sense to the computer? But yeah, anything of the slightest error can confuse the computer and give that error. Just look at the Syntax error message, it should give you some idea where to look.
It should let you save, even with syntax errors :(.
@HandLMaps: Go
This is the custom script line:
UnitRevive(lv_dyUnit);
dyUnit is a local variable of type Unit that refers to the triggering unit in the "Any Unit Dies" event. I also tried to make the variable global, or to remove the "lv_" part, etc, but bam.. ERROR! -_-
Btw, the line code it shows the syntax error is a line that has nothing to do with this trigger, a screen button trigger to vote for the dificult of the game (with absolutely no link to this revive hero function).
lv_ stands for a local variable. so it should look for a local variable called dyUnit
@Jackolas: Go
thats what it is supposed to do... But there is no syntax error, and this is not the 1st time it happens, as I said, it always happen when I create a custom script I guess i'll just repair my Sc2 or reinstall.
Exactly as I said, it was a bug. I just reinstalled the game and now it is compiling.
However, there is a little problem, my hero is reviving but he is becoming "Invisible" or hidden, idk. The boss bar is updating when I revive him, and so is the Move Unit and Pan Camera to its position, but, the hero does not show up. Is there something else I need to do in this UnitRevive function?
bump