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 .
×

XP Counter Macro for Souls Campaign?

1640655999

Edited 1640656048
I'm running a Dark Souls campaign, and I want my players to all be able to each have a personal counter for their EXP, which is counted and used up as Souls in this case. When you play Dark Souls, you kill an enemy and they give you their souls. Each specific kind of enemy has a specific number of souls they give you upon death, which depends on their class as well as their location in the world of, in this case, Lothric. When one of my players is in a specific area fighting a specific enemy and they manage to kill it, I want to be able to click the macro, select the area, select that enemy type, select the player who killed it, and then award that player with the specific number of souls that specific enemy gives when killed. I then want those souls I just awarded them to be added to a counter only that player can see, which can go as high as the millions if not the billions. However, I also want to implement the death mechanics of Dark Souls, so I also want this counter to reset to 0 whenever the player dies. Optionally, I would want this macro to hold on to that value right before death and keep it, like, in sleep mode until such a point where either that character can reclaim those souls, or they die on the way, erasing them permanently. Or maybe I could just take the value in that player's counter and copy it onto a token on the ground that player could potentially pick up, or lose if they die on the way. Are there better ways of doing this?
1640683710
Oosh
Sheet Author
API Scripter
Do the enemy character sheets or tokens store the number of XP they award? And are enemy characters/tokens marked as NPC's via some kind of attribute? An API script to handle this would be reasonably straight-forward, but would need the required data to be present somewhere in the game. A script could also drop a small token on player death and transfer the player's total XP to the token, ready to be reclaimed if the player makes it back.