Page 1 of 1

[Request] Scripting guide/tutorial/guide/whatever

Posted: Fri Aug 21, 2020 1:20 pm
by taquete
Hey guys, just wondering, is there an scripting guide/tutorial/book i can get my hands on? I love programming, i have a lot of experience in php, javascript, c#, vb.net, and some others. When i play this game i use a bunch of addons that sometimes are broken or bugged as hell bc of the lack of support. So my goal is to debug them, but i can do so much without the knowledge of the full extent of what i can and cannot do, so it would be great to get my hands on some info regarding this.

Thank you!

Re: [Request] Scripting guide/tutorial/guide/whatever

Posted: Fri Aug 21, 2020 8:47 pm
by JayLeonHart
Not sure if these are any use, but somebody else was looking for WAR APIs the other day and these got linked. Hopefully they're of some use?

WAR API
API full list

Re: [Request] Scripting guide/tutorial/guide/whatever

Posted: Sat Aug 22, 2020 6:56 am
by kallel
As for debugging and fixing stuff. If you type "/d" in the chat you get a debug window with logs and errors.
If you write d(L"some text " .. <some variable>) in the code it will display it in the debug window. You can quickly test stuff by typing "/script <command>" in the chat. Addons are written in lua.

If you want to check out all global functions in the game you can run

Code: Select all

/script for i,v in pairs(_G) do
    if type(v) == "function" then
        d(i)
    end
end
Lastly if it's for you a lua tutorial.

Re: [Request] Scripting guide/tutorial/guide/whatever

Posted: Thu Aug 27, 2020 11:42 pm
by taquete
Awesome!!! Thank you very much!