"Nothing" (custom) technology modifier needs dynamism
"Nothing" (custom) technology modifier needs dynamism
By that I mean that it needs to support having numbers and other variables inlined (the "__1__" thing), not just "effect key" which can only ever map to a static string. Without this it is basically worthless, as the only way to show the effect is to hardcode things in the lang files, which is impossible in the case of configurable values or automatic calculation.
![Image](https://i.imgur.com/cM2ZM3K.gif)
Re: "Nothing" (custom) technology modifier needs dynamism
Just put the description in the description of the technology. The effect portion isn't needed when you're doing all of the logic script side anyway.
The description can be set in the data script to what ever you want.
The description can be set in the data script to what ever you want.
If you want to get ahold of me I'm almost always on Discord.
Re: "Nothing" (custom) technology modifier needs dynamism
I think he meant this:
"effect_key" of "nothing" tech modifier accepts LocalisedStr
Currently only string is accepted. Giving it a localised string will throw error.
"effect_key" of "nothing" tech modifier accepts LocalisedStr
Currently only string is accepted. Giving it a localised string will throw error.
Re: "Nothing" (custom) technology modifier needs dynamism
Yes, that is what I mean.Mooncat wrote:I think he meant this:
"effect_key" of "nothing" tech modifier accepts LocalisedStr
Currently only string is accepted. Giving it a localised string will throw error.
If you want an effect like vanilla has (eg "Turret Range: +1"), then doing it in the description is not an option.Rseding91 wrote:Just put the description in the description of the technology. The effect portion isn't needed when you're doing all of the logic script side anyway.
The description can be set in the data script to what ever you want.
![Image](https://i.imgur.com/cM2ZM3K.gif)
Re: "Nothing" (custom) technology modifier needs dynamism
I changed it for 0.16 so it's a localized string.
If you want to get ahold of me I'm almost always on Discord.