TriggerHappy
...
Well, post what you are doing.
Does the little black box show upon save? If not then you didn't extract the files right.
Does the little black box show upon save? If not then you didn't extract the files right.
Creating an lua preprocessor would be fantastic for confusing the heck out of people, imo. Honestly though, cookies for ya if you get this to work nicely. I always wanted a free form JASS preprocessing script like that.Starting work on LuaHelper that'll hopefully be part of the Jass NewGen pack ><.
Yea, it might confuse the heck out of some people, but having a free form jass preprocessing script is pretty epic. Just imagine the stuff you can do with your ItemStruct j4l, and your SpellStruct : O. Could be pretty sweet ; D. AIDS too : O.Creating an lua preprocessor would be fantastic for confusing the heck out of people, imo. Honestly though, cookies for ya if you get this to work nicely. I always wanted a free form JASS preprocessing script like that.
scope example
//! lua stuff
encsope
function Hello takes nothing returns nothing
//! i print([[local integer array i]])
//! lua
i = 10
print([[local integer count = ]] .. i .. "\n")
while i ~= 0 do
i = i - 1
print([[set i[]] .. i .. [[] =]] .. i .. "\n")
end
//! endlua
loop
set count = count - 1
call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, I2S(i[count]))
exitwhen count == 0
endloop
endfunction
//! library Rawr uses MyRandomCode
function Boo takes nothing returns nothing
call Hello()
//! i print("set nine = 8\n")
endfunction
//! endlibrary
//! library MyRandomCode
globals
integer nine = 9
endglobals
function Hello takes nothing returns nothing
//! i print([[local integer array i]])
//! lua
i = 10
print([[local integer count = ]] .. i .. "\n")
while i ~= 0 do
i = i - 1
print([[set i[]] .. i .. [[] =]] .. i .. "\n")
end
//! endlua
loop
set count = count - 1
call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, I2S(i[count]))
exitwhen count == 0
endloop
endfunction
//! endlibrary