Recent Topics

Ads

[Request] Scripting guide/tutorial/guide/whatever

Here you can post addons, or anything related to addons.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
taquete
Posts: 20

[Request] Scripting guide/tutorial/guide/whatever

Post#1 » Fri Aug 21, 2020 1:20 pm

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!

Ads
User avatar
JayLeonHart
Posts: 3

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

Post#2 » Fri Aug 21, 2020 8:47 pm

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

kallel
Posts: 6

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

Post#3 » Sat Aug 22, 2020 6:56 am

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.

taquete
Posts: 20

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

Post#4 » Thu Aug 27, 2020 11:42 pm

Awesome!!! Thank you very much!

Who is online

Users browsing this forum: No registered users and 81 guests