Good guide for the noobs =D
Correct me if Im wrong, but...
If LUA in Ascent is anything like LUA everywhere else (Which it is), youd simply get multiple LUA errors when you used this script, and if you didnt, then the scripts would simply not work.
For one, you have to make sure that all ifs are followed by then, and that all if statements are eventually followed by an end. For example:
would become:Code:function blaaaa() if pUnit:GetHealthPct()<80 bla bla bla end
I know that all other occasions Ive scripted LUA, if you do not do this then the entire script doesnt build.Code:function blaaaa() if pUnit:GetHealthPct()<80 then bla; bla; bla; end end
Btw Zombienation yes there is a way to do that, but I dont remember the specific syntax because the Ascent wiki is down still
Also, everybody needs to remember that you need to put a ; after every single function that is called, or else the script wont work