Page 1 of 1
"Nothing" (custom) technology modifier needs dynamism
Posted: Fri Aug 11, 2017 1:50 am
by Reika
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.
Re: "Nothing" (custom) technology modifier needs dynamism
Posted: Fri Aug 11, 2017 2:11 am
by Rseding91
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.
Re: "Nothing" (custom) technology modifier needs dynamism
Posted: Fri Aug 11, 2017 2:17 am
by Mooncat
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.
Re: "Nothing" (custom) technology modifier needs dynamism
Posted: Sat Aug 12, 2017 12:48 am
by Reika
Yes, that is what I mean.
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.
If you want an effect like vanilla has (eg "Turret Range: +1"), then doing it in the description is not an option.
Re: "Nothing" (custom) technology modifier needs dynamism
Posted: Sat Sep 09, 2017 4:15 am
by Rseding91
I changed it for 0.16 so it's a localized string.
Re: "Nothing" (custom) technology modifier needs dynamism
Posted: Fri Sep 15, 2017 1:39 am
by Mooncat
Thanks <3