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

Complete Noob Needing Syntax Help

1519898215
DLB
Pro
Translator
Hey All, I'm trying to run the Blood and Honor script, but am having a bit of trouble. I've uploaded my blood spatter images to my library and acquired the thumb IRL with the strings. The first two are my images and the third is given in the script as a potential image in each set. I saved the script with no errors, but don't really know if this is the proper syntax for the spatters and pools image sets. Beyond that, I'm at a loss how to run the script. Any help would be a boon spatters: [ "<a href="https://s3.amazonaws.com/files.d20.io/images/339300/hDfZ3SP3nmVxKA8BCa2FrQ/thumb.png?1351941334" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/339300/hDfZ3SP3nmVxKA8BCa2FrQ/thumb.png?1351941334</a>", "<a href="https://s3.amazonaws.com/files.d20.io/images/48868000/esiDkayOoT7V2RoHAIV4GA/thumb.png?1519894505" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/48868000/esiDkayOoT7V2RoHAIV4GA/thumb.png?1519894505</a>", //"<a href="https://s3.amazonaws.com/files.d20.io/images/6993500/mAA-8agYIwkhEciVVSCFmg/thumb.png?1420411542" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/6993500/mAA-8agYIwkhEciVVSCFmg/thumb.png?1420411542</a>", ], pools: [ "<a href="https://s3.amazonaws.com/files.d20.io/images/43402894/F4wJZe20JALBxYSezzQU-A/thumb.png?1512312473" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/43402894/F4wJZe20JALBxYSezzQU-A/thumb.png?1512312473</a>", "<a href="https://s3.amazonaws.com/files.d20.io/images/46976120/U8ND1NIh8Gf7vMveS12PBQ/thumb.png?1517577330" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/46976120/U8ND1NIh8Gf7vMveS12PBQ/thumb.png?1517577330</a>", //"<a href="https://s3.amazonaws.com/files.d20.io/images/6993478/77YowTZze57mGAHfSaxwYg/thumb.png?1420411480" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/6993478/77YowTZze57mGAHfSaxwYg/thumb.png?1420411480</a>", ], chooseBlood: function chooseBlood(type) { if (type == "spatter") return BloodAndHonor.spatters[randomInteger(BloodAndHonor.spatters.length) - 1]; if (type == "pool") return BloodAndHonor.pools[randomInteger(BloodAndHonor.pools.length) - 1]; },
You have to make sure, your health information is in bar 3, (by default that is the one colored red, in any case it is the last one in the token settings). The script only watches changes to that specific bar. You need to make sure, that a current and max value is set. To test if it is working reduce the current value to below half of the maximum value and move the token around. Furthermore you should make sure you always use the "thumb.png" (which you did already do). Then everything should work correctly. Regards Florian
1519901443
DLB
Pro
Translator
ah, thanks Florian. Youre a saint!