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

ScriptCards API Help: Issue changing Colours

Hiya All, I am Adding in a Custom Interactive Terminal to my Campaign using Scriptcards [I find it far easier to Use and more Customisable in general than the Fallout Terminal API] and have most of it down and working. The Issue I'm encountering is that despite everything I cannot change the Background Colour of the Body or the Even/ Odd Rows so although the Title Background changes, the main "bulk" of the Output Card remains as the Default Light Blue Settings. Here is the Code I am Using; !scriptcard{{ --#| ?{TERMINAL PASSCODE} --#Title| ~ Terminal α ~ --#LeftSub| User Access --#RightSub| GRANTED --/ Title/Subtitle Customisation --#TitleCardBackground| #000000 --#TitleFontColor| #f4d03f --#TitleFontFace| Courier --#SubtitleFontSize| 9px --#SubtitleFontColor| #57ff00 --+| [GSF Logo](<a href="https://s3.amazonaws.com/files.d20.io/images/375896431/TP8Hht4pbznhBLSnSUg7Rw/original.png?17054992715.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/375896431/TP8Hht4pbznhBLSnSUg7Rw/original.png?17054992715.png</a>) --+| [C] [sheetbutton:#f4d03f:#000000:16px]Article 1::TerminalMule::Article1[/sheetbutton] [/C] --+| [C] [sheetbutton:#f4d03f:#000000:16px]Article 2::TerminalMule::Article2[/sheetbutton] [/C] --/ Card Output Settings --#TableBorder| 3px Outset #000000 --#TableBorderRadius| 8px --#TableShadow| 1.5px 3px #2f2f2f --#EvenRowBackground| #000000 --#OddRowBackground| #000000 }} I have looked through the Roll20 Wiki on ScriptCards API which was how I got the majority of it Working but am stumped with why this particular Output Setting is causing so much trouble. The current Output Card is as follows; Any help would be greatly appreciated!!!
1727349612
David M.
Pro
API Scripter
Try moving your card output settings code block above your line output. IIRC back in the day, all --# settings were hoisted so it didn't matter where they were located, but I think that behavior changed a while ago to allow altering settings as the scriptcard runs line-by-line.
Hiya David, Thanks for the Advice, it looks like that was the Issue!!! I'm not entirely sure why it only affected the "Output" Block and didn't have the same issue with the "Title/Subtitle" Block but now I know, I'll have to make sure that my "Output Settings" are right at the Top of my Macros from now on. Thanks for your Coding Knowledge 😊