|
Post by genleo on Sept 6, 2023 19:28:46 GMT
Working on templates for the eXcced card game, I had to deal with certain words appearing in a specific color. At first it was simple. In the game script file I used variations on:
replace@( match: "[+][0-9] Armor", in_context: "(^|[[:space:]])<match>|<atom-keyword><match></", replace: "<b-auto><color:rgb(125,46,129)>&</color></b-auto>") + The problem is each set has a new design, and the colors are not quite the same. Is there a way I can define a specific color in each set file as a variable that the game script then references? Something along the lines of defining a color named "armor" in each set file and changing the above code to:
replace@( match: "[+][0-9] Armor", in_context: "(^|[[:space:]])<match>|<atom-keyword><match></", replace: "<b-auto><color:armor>&</color></b-auto>") +
|
|