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

!XP added to individual character

1516807628

Edited 1516810353
**Edit**   Shaped 5E with Easy XP script I want to use a macro when a PC does something awesome and I want to award some XP to them. !xp challenge ?{How much} but then I want to add so that I can target a pc and it will add the xp to just them.  Any help on that?
maybe something with @selected|token or %character name not to sure best to wait for the APi wisardz to come along to make things easier i am assuming your using the EasyXP in the drop down and the OGL Sheet if not feel free to correct me. 
1516810751

Edited 1516810827
GiGs
Pro
Sheet Author
API Scripter
The ChatSetAttr script lets you add to specific characters, and supports addition and subtraction IIRC. So you would just have the macro set up using the selected or target keyword. The easiest script-less would be to link one of the token bubbles to the XP stat on the character sheet ,and just add XP directly there as you would with hit points.
1516811264

Edited 1516811751
This looks very much like the EasyExperience Script by Scott. So to award a single PC XP for something cool that he did you could use the following command: !xp challenge 250 1 @{selected|character_id} This would give 250 XP (multiplied by one = still 250) to the character which is connected to the currently selected token. In that example 250 is the amount of XP to add to the character, 1 is the multiplier and @{... is where the XP should go. Edit: Sorry, I overread you wanted to use targetting, so there you go: !xp challenge ?{Amount} 1 @{target|character_id}
awesome!  Thanks man, that's exactly what I wanted.  
1516816320
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Thanks for that florian