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

[Script] Aura/Tint HealthColor Question/Bug?

1533120951

Edited 1533121257
Hi, Wow, what a great tool, thanks a lot for that script! Nevertheless, playing around with it for some time now, I can't get one combination working for me. Don't know whether I'm too dumb, or it's a bug. What do I want? To be able to use auras for my players, I tried to set 'Show PC Health' = no and 'Show NPC Health' = yes. Players should see NPCs health stat as aura and their own as bar. Unfortunately the NPC aura don't show up for them: If I switch on 'Show PC Health', all auras aredisplayed. Can somebody help, please? Thanks & best regards, Bernd
1533124949

Edited 1533124980
DXWarlock
Sheet Author
API Scripter
Hmm, that not right with what you describe, or look right that aura is huge for the 0.3 you have set. Would you mind inviting me to the game (or a copy of it) and making me GM so I can dig into what the problem is?
1533132883

Edited 1533133120
Hi Warlock! No no, the big aura is just the manual aura of the PC. This is what I want to use: own aura for PCs and Health aura from the scripts for the NPCs. Damn, I copied the game for you, added the API script and there it works :-( Typical. But that might be a solution for me. I make a full copy of my game and test it. If still somethig's wrong, I email you. Thanks so far! Bernd
1533133159
The Aaron
Pro
API Scripter
Probably something is unexpected in the state object. Can you install this script in both games and provide the output it sends to chat: // GIST: <a href="https://gist.github.com/shdwjk/25923c1cc948f272d8bd" rel="nofollow">https://gist.github.com/shdwjk/25923c1cc948f272d8bd</a> var SotSA = SotSA || (function() { 'use strict'; var version = '0.2.0', lastUpdate = 1427604264, schemaVersion = 0.1, showObj = function(obj) { var s = JSON.stringify(obj,undefined,". "), ch = function (c) { var entities = { '&lt;' : 'lt', '&gt;' : 'gt', "'" : '#39', '@' : '#64', '{' : '#123', '|' : '#124', '}' : '#125', '[' : '#91', ']' : '#93', '"' : 'quot', ' ' : 'nbsp' }; if(_.has(entities,c) ){ return ('&amp;'+entities[c]+';'); } return c; }; s=_.map(s.split(''),ch).join('').replace(/\n/g,'&lt;br&gt;'); sendChat('','/direct ' +'&lt;div style="border: 1px solid blue; font-size:80%;"&gt;&lt;pre&gt;' +s +"&lt;/pre&gt;&lt;/div&gt;"); }, checkInstall = function() { log('-=&gt; SotSA v'+version+' &lt;=- ['+(new Date(lastUpdate*1000))+']'); }, checkState = function() { showObj(state); }; return { CheckInstall: checkInstall, CheckState: checkState }; }()); on('ready',function() { 'use strict'; SotSA.CheckInstall(); SotSA.CheckState(); });
1533133289

Edited 1533133474
Bernd S. said: Hi Warlock! No no, the big aura is just the manual aura of the PC. This is what I want to use: own aura for PCs and Health aura from the scripts for the NPCs. Damn, I copied the game for you, added the API script and there it works :-( Typical. But that might be a solution for me. I make a full copy of my game and test it. If still somethig's wrong, I email you. Thanks so far! Bernd Ah no. Didn't work either. After switching to bar3 (which I use for health) and changing hp of one NPC the aura is gone. You might test it: <a href="https://app.roll20.net/campaigns/details/3576448/princes-of-the-apocalypse-new" rel="nofollow">https://app.roll20.net/campaigns/details/3576448/princes-of-the-apocalypse-new</a> If someone wants to look at it, I can promote you to GM when you joined.
1533134828

Edited 1533137320
I installed the script you sent. Here's the output: { .&nbsp;&nbsp;"TokenMod":&nbsp;{ .&nbsp;&nbsp;.&nbsp;&nbsp;"version":&nbsp;0.3, .&nbsp;&nbsp;.&nbsp;&nbsp;"globalconfigCache":&nbsp;{ .&nbsp;&nbsp;.&nbsp;&nbsp;.&nbsp;&nbsp;"lastsaved":&nbsp;0 .&nbsp;&nbsp;.&nbsp;&nbsp;}, .&nbsp;&nbsp;.&nbsp;&nbsp;"playersCanUse_ids":&nbsp;false .&nbsp;&nbsp;}, .&nbsp;&nbsp;"HealthColors":&nbsp;{ .&nbsp;&nbsp;.&nbsp;&nbsp;"schemaVersion":&nbsp;"1.0.3", .&nbsp;&nbsp;.&nbsp;&nbsp;"version":&nbsp;"1.5.1", .&nbsp;&nbsp;.&nbsp;&nbsp;"auraColorOn":&nbsp;true, .&nbsp;&nbsp;.&nbsp;&nbsp;"auraBar":&nbsp;"bar3", .&nbsp;&nbsp;.&nbsp;&nbsp;"auraTint":&nbsp;false, .&nbsp;&nbsp;.&nbsp;&nbsp;"auraPercPC":&nbsp;100, .&nbsp;&nbsp;.&nbsp;&nbsp;"auraPerc":&nbsp;100, .&nbsp;&nbsp;.&nbsp;&nbsp;"PCAura":&nbsp;false, .&nbsp;&nbsp;.&nbsp;&nbsp;"NPCAura":&nbsp;true, .&nbsp;&nbsp;.&nbsp;&nbsp;"auraDeadPC":&nbsp;false, .&nbsp;&nbsp;.&nbsp;&nbsp;"auraDead":&nbsp;true, .&nbsp;&nbsp;.&nbsp;&nbsp;"GM_PCNames":&nbsp;"Off", .&nbsp;&nbsp;.&nbsp;&nbsp;"PCNames":&nbsp;"Off", .&nbsp;&nbsp;.&nbsp;&nbsp;"GM_NPCNames":&nbsp;"Off", .&nbsp;&nbsp;.&nbsp;&nbsp;"NPCNames":&nbsp;"Off", .&nbsp;&nbsp;.&nbsp;&nbsp;"AuraSize":&nbsp;0.7, .&nbsp;&nbsp;.&nbsp;&nbsp;"FX":&nbsp;true, .&nbsp;&nbsp;.&nbsp;&nbsp;"HealFX":&nbsp;"00FF00", .&nbsp;&nbsp;.&nbsp;&nbsp;"HurtFX":&nbsp;"FF0000", .&nbsp;&nbsp;.&nbsp;&nbsp;"auraDeadFX":&nbsp;"None", .&nbsp;&nbsp;.&nbsp;&nbsp;"OneOff":&nbsp;true .&nbsp;&nbsp;} } By the way: the health aura looks a odd when using a tiny token from the Monster Manual, because the token is actually 5' and just the picture is smaller, look at the imp:
1533139247

Edited 1533139289
DXWarlock
Sheet Author
API Scripter
The link you sent doesn't work, you'd have to send me a private message with the join link :) And nothing I can do about the aura sizes on the smaller image area tokens. It can only go off what size the image is not what is transparent or not on that image. :\ It works off the way auras do normally. Take that token, and another of the same size that fills image area, and add any same numerical&nbsp; size aura to both, it would be the same.
Sure about the smaller tokens. I know thats not a bug of your script, it's just because the way the tokens are made. I send you a private message and hope that the link works.&nbsp;
1533334179

Edited 1533334221
DXWarlock found the bug: as it is sometimes in software, it sat in front of the monitor. The aura script distinguishes between PCs and NPCs not by the NPC toggle, what I thought. If a char sheet is controlled by someone, it is seen as a PC. And my game was the first thing I ever did on roll20 and when creating my first NPCs I thought it would be necessary to assign control of GM to all of them. Therefore the script thought of all my NPCs as PCs. Knowing this and with the use of the TokenMod script I could fix this quickly. So: it is and was an awesome script. No bugs! Thanks to DXWarlock for the quick analysis and help!