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

Hiding the sender name in the script

Need help! Similar to the AutoButtons 0.8.9d script, I write my own script with a loot search by the ###LUT### flag and after the script has found it, it sends a message to the chat. This is where not exactly a problem arises, but an inconvenience. How it looks: sendChat('', html, { noarchive: true }); It does not remove the empty area from the script. I have this problem only in jumpgate. Similar code in legacy caused the message normally In autobattnos this is how the output works in both cases And the only send chat inside the script is, Line 635: sendChat(scriptName, `${prefix}${msg}`, {noarchive: true}); So the question is, how can I make it work properly?
1737679428
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
HI ill_lich! You need to move the containing div up and to the left, and then give it a negative bottom margin. Here's what I use in Dynamic Lighting Tool: display: block; position:relative;left: -5px; top: -30px; margin-bottom: -34px; 
1737729037

Edited 1737731349
Boli
Pro
API Scripter
Interestingly if you have things in a description ( /desc ) it renders it differently so the below does work nicely for descriptive messages to chat which hides the user or script name. sendChat('', "/desc " + text);
keithcurtis said: HI ill_lich! You need to move the containing div up and to the left, and then give it a negative bottom margin. Here's what I use in Dynamic Lighting Tool: display: block; position:relative;left: -5px; top: -30px; margin-bottom: -34px;  It worked, thanks for your help!