ChatGPT For WoW Macros and Addons

One of the first things I tested with the ChatGPT AI chatbot was if it knew how to write macros and Lua code for WoW. Now the data it has is from 2021, so it’s not 100% up to date and it’s probably a bit fuzzy on what the latest APIs are, but I’m posting this, because I find it to be hugely helpful in writing relatively simple things like macros that contain snippets of Lua code or WeakAuras with Lua triggers and so on.

For example, I found myself toggling between min and max zoom on the minimap when hunting treasures, so I asked ChatGPT to write a macro to toggle between min and max zoom. It gave me a macro that toggles between zoom 0 and zoom 1, but it was really easy to change that to zoom in a bit closer. Here’s the result:

/script if Minimap:GetZoom()==0 then Minimap:SetZoom(5) else Minimap:SetZoom(0) end

You could get fancy and rewrite it a bit shorter like this:

/script Minimap:SetZoom(Minimap:GetZoom()==0 and 5 or 0)

However, I guess the longer version is a little bit easier to understand, so it’s just fine.

That’s just an example. I have used it about half a dozen times now when writing macros and updating and adding stuff to a utility addon that I use and it has been hugely helpful every time.

If you’re a WoW Youtube creator, this might make a great topic for video. (I have a channel, but it has no WoW content…)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.