Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Pathfinder & Starfinder
Making your own power cards
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="randolph" data-source="post: 4201718" data-attributes="member: 65420"><p><strong>Quick Update</strong></p><p></p><p>Hi folks,</p><p></p><p>I spent several hours last night trying to make the number and types of colored backgrounds defined entirely in a template's <strong>style</strong> file, while still retaining all the other functionality.</p><p></p><p>Currently, I can only accomplish that at the expense of losing the functionality of text color changing depending on background color. I may decide to go this way, and have the text color simply be a selectable option per card - this shouldn't be too much of a hassle because there aren't that many powers that use a background that requires the switch from white text to black text (yet).</p><p></p><p>If anyone's curious, or would like to help figure out the problem:</p><p>1) In order to make the number and types of colored backgrounds defined in the <strong>style</strong> file, I had to define the background field using <strong>extra card field</strong>. (I can only define normal <strong>card fields</strong> in the <strong>game</strong> file.)</p><p>2) Values in <strong>card fields</strong> can be referenced as card.card_field_name, but values in <strong>extra card fields</strong> cannot - at least, I haven't been able to figure out how.</p><p>3) Because I can't figure out how to reference the <strong>extra card field</strong>, I can't have a script determine the color of a font based on the value of that field.</p><p></p><p>Anyway, off to see Iron Man, back later.</p></blockquote><p></p>
[QUOTE="randolph, post: 4201718, member: 65420"] [b]Quick Update[/b] Hi folks, I spent several hours last night trying to make the number and types of colored backgrounds defined entirely in a template's [B]style[/B] file, while still retaining all the other functionality. Currently, I can only accomplish that at the expense of losing the functionality of text color changing depending on background color. I may decide to go this way, and have the text color simply be a selectable option per card - this shouldn't be too much of a hassle because there aren't that many powers that use a background that requires the switch from white text to black text (yet). If anyone's curious, or would like to help figure out the problem: 1) In order to make the number and types of colored backgrounds defined in the [B]style[/B] file, I had to define the background field using [B]extra card field[/B]. (I can only define normal [B]card fields[/B] in the [B]game[/B] file.) 2) Values in [B]card fields[/B] can be referenced as card.card_field_name, but values in [B]extra card fields[/B] cannot - at least, I haven't been able to figure out how. 3) Because I can't figure out how to reference the [B]extra card field[/B], I can't have a script determine the color of a font based on the value of that field. Anyway, off to see Iron Man, back later. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Pathfinder & Starfinder
Making your own power cards
Top