LuaEntity::custom_state_string
Posted: Sun Oct 22, 2023 5:46 pm
Hi. I noticed lately that disabling machines via script leads to a terribly unhelpful 'disabled by script' tooltip. Basegame entities have things like 'no power' or 'no ingredients' or the like for these tooltips, which can be really helpful to newer players wanting to troubleshoot their setups.
Hence, I propose a way to set a custom tooltip to override the text of the default states so that mods like Pyanodon's Alien Life can, for example, say 'missing <insert item here>' when they turn off their machines due to lack of the proper modules. Being able to do so would allow mods to have similar explanations to basegame entities, even when mods use scripts, compound entities, etc. to create custom mechanics and limitations.
Hence, I propose a way to set a custom tooltip to override the text of the default states so that mods like Pyanodon's Alien Life can, for example, say 'missing <insert item here>' when they turn off their machines due to lack of the proper modules. Being able to do so would allow mods to have similar explanations to basegame entities, even when mods use scripts, compound entities, etc. to create custom mechanics and limitations.