Lua API Questions

Hello. I have a question regarding LUA for WoW Classic. Im making an addon. And I want to capture the damage you have done at that very moment, whether it is melee or spellcast. Like for example, if I hit for 150 damage, I want to be able to store 150 into a variable, but dont know what API to use. I tried Googling this, but that didnt help much.

Another thing I want to know is if LUA is capable of saving data into a file. And if so, I would like to know. Ill keep searching for this, but in the mean time, if any of you have any LUA coding experience, I would like to learn how to do this. Thanks in advance. :grin:

This isn’t the forum for this questions. I would recommend https://us.forums.blizzard.com/en/wow/c/guides/ui-macro

As for the specific questions I would recommend looking up how to make a World of Warcraft addon and go from there. There are tons of resources out there.

Ah ok, thank you very much. Maybe if a GM can move this thread there instead of me recreating a thread. Otherwise I will create a new one :stuck_out_tongue: