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

Tint/Aura Health questions

1604165521

Edited 1604169338
How do I only use one aura instead of both?  I want to show the miasma around something and can't without turning all the auras on NPCs off.
I don't believe so using the built-in options.  But you could modify the script slightly to have it not use Aura2.   I think it would work if you replace lines 242 - 270 with this, as these are the only places that I'm seeing that reference Aura2: //SET TOKEN COLORS------------ TokenSet = function (obj, sizeSet, markerColor, pColor, update) { var Pageon = getObj("page", obj.get("_pageid")); var scale = Pageon.get("scale_number") / 10; if(state.HealthColors.auraTint === true) { if(obj.get('aura1_color') == markerColor && update === "YES") { obj.set({'aura1_color': "transparent",}); } obj.set({'tint_color': markerColor,}); } else { if(obj.get('tint_color') == markerColor && update === "YES") { obj.set({'tint_color': "transparent",}); } obj.set({ 'aura1_radius': sizeSet * scale * 1.8, // 'aura2_radius': sizeSet * scale * 0.1, 'aura1_color': markerColor, // 'aura2_color': pColor, 'showplayers_aura1': true, // 'showplayers_aura2': true, }); } }, //REMOVE ALL------------ SetAuraNone = function (obj) { if(state.HealthColors.auraTint === true) obj.set({'tint_color': "transparent",}); else obj.set({'aura1_color': "transparent",}); },
Thanks!  I got it to work by simply deleting all refrence to aura2.  Your code I either didn't paste right or had the wrong line numbers cause I couldn't get it to work.  But removing every line with aura2 mos def did work.  Thanks!
Christopher said: Thanks!  I got it to work by simply deleting all refrence to aura2.  Your code I either didn't paste right or had the wrong line numbers cause I couldn't get it to work.  But removing every line with aura2 mos def did work.  Thanks! Great! I just realized I'm using a different version by DXWarlock ( Health Colors ), so my code is slightly different. It looks like in your version it was a little easier to simply delete the references to Aura2.  Glad to help!