Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Looking for Experience Macro

Trying to help out my GM with a bit of a problem. He doesnt quite understand the EasyExperience or the ExperienceTracker API, as he can only make it send the number to a new character sheet, listed in the Abilities and Attributes tab, but does not link to the Experience on the front sheet of that character sheet. He's essentially just using it as a complicated "Experience Given [[400/4]]xp!" setup, that he still has to manually edit every time that the amount of experience given reaches the level amount "0/300 now reads 100/300, and when it later reads 300/300 he will have manually change it to 300/900". Even if he does it, only he can see it, no one else, and he'd like this to update to the front of the sheet (Ideally when he uses it, he'd like to use his preset macro to give X amount of XP and for it to divide itself equally (rounded to the nearest whole number) to each of the character sheets instead, but he doesnt know how. As a stop-gap till he learns how to do it (Or if someone could tell me so I can teach him), I made this /me Everyone now has [[round([[?{Experience Given?}]]/6)+@{Experience|experience}]]xp! It requires me to use a name (I made a character sheet for that, called it Experience), 6 being the amount of players we have. I input that as a In Bar macro button, so whenever I award XP, I just type in the amount I'm giving them, and it will automatically tell everyone what their total amount should be. Ideally, if possible, is there any way to link the number posted "[[round([[?{Experience Given?}]]/6)+@{Experience|experience}]] = X" to then automatically update all 6 character sheets so that "@{NAME|experience} = X"? (I myself only have a Plus account, so this is what I do for my games that I run. My friend who is a DM for his own games has a Pro Account, and access to API. How can he do that?)
1522989434
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hi Brad, For the easyxp script, the workflow would work like this: Setup the script first (name of your sheet's xp and level attributes, what characters should be included in the xp division,and what xp progression you are using) via the !xp config command Award some xp via !xp challenge ### Repeat step 2 as needed throughout the game At the end of the session, use !xp session to divide the xp among the players evenly and have it applied to their xp attribute automatically.