Well then we could redesignate them from "user strings" to "scripting_and_ui_strings_and_data" -- voilà! Problem solved!adrian_broher wrote:Yeah, user strings are a translation tool and not a data storage.Dilvish wrote:Am I missing something?
Of course, I'm really thinking more of a virtual redesignation rather than going through and changing all the code references. Updating some code comments would probably be good. Right now we have a ton of information that has to be duplicated between FOCS scripting and corresponding Pedia user string entries, which could be automatically synchronized in this fashion. Case in point -- it looks to me like the BAD_STEALTH description is stale in a number of stringtables. The FOCS script in scripting/species/common/stealth.macros itself already uses a macro for the value:
Code: Select all
BAD_STEALTH
'''EffectsGroup
description = "BAD_STEALTH"
scope = Or [
Source
And [
ContainedBy Source
Not HasTag name = "ORBITAL"
]
]
activation = Planet
stackinggroup = "SPECIES_STEALTH_STACK"
effects = SetStealth value = Value - [[LOW_STEALTH]]
'''
Code: Select all
LOW_STEALTH
'''20'''
Code: Select all
BAD_STEALTH
− Bad Planetary [[encyclopedia STEALTH_TITLE]]: −20 malus
Code: Select all
BAD_STEALTH
− Schlechte [[encyclopedia STEALTH_TITLE]]: −15 Malus.
Code: Select all
BAD_STEALTH
- Плохая [[encyclopedia STEALTH_TITLE]]: -15 малус.
On a related note, to go along with this it would be nice to add some formatting directives (akin to the encyclopedia directive or whatnot) so that, for example, instead of the stringtable entry
Code: Select all
ULTIMATE_OFFENSE_TROOPS
+++ Ultimate Offensive Ground [[encyclopedia TROOP_TITLE]]: 300%
Code: Select all
ULTIMATE_OFFENSE_TROOPS
+++ Ultimate Offensive Ground [[encyclopedia TROOP_TITLE]]: [[percentage ULTIMATE_OFFENSE_TROOP_MULTIPLIER]]