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. 
