
I have created a macro that will allow me to select a PC token and post a chat message that the player has received "Y experience points". With Y being a variable selected in the macro. I would like to add two things to this. Most importantly, I would like to have a DM "Character" sheet with an attribute for each characters experience points, adn have those points add to that players experience point total. I would prefer to keep this on a sheet that can't be modified by the players, instead of on an attribute on the PCs character sheet.
If at all possible, I would love a sound to play when I trigger the Macro, but I couldn't get audio master to play the file I loaded.
Here is what I have so far. for the Macro. I have not done anything to create the !AddXp api. I am completely new to the api, (Zero coding experience) and many of the examples I have seen have left me lost. Any help is sincerely appreciated!
/em @{selected|token_name} Has gained ?{Modifier|0} experience
!roll20AM --audio,play|MetalGong
!AddXP