Forum Discussion
3 Replies
Replies have been turned off for this discussion
- Hey there. No python does not have access to the actual localized strings.
- SimGuruEugi10 years ago
EA Staff (Retired)
"SimGuruModSquad;13996399" wrote:
Hey there. No python does not have access to the actual localized strings.
In theory, there is no need for Python to access actual strings. In your case, if you want to display minutes, you can do:
_minutes=lambda **_:sims4.localization._create_localized_string(0xD6B7C27C, minutes)
where your string is
0xD6B7C27C = "{0.Number} minutes left!"
Hope that helps. - Hi, do you know how to generate these id 0xD6B7C27C from an object label? Like for instance I have this:
action: 'cake_Grab'
target: 'object_Food_PlateFork_FruitCake_Multi:0x05c90dcf043015d0'
I want cake_Grab to become 0x811E69FB because it is shown "Take a Piece" and that's the ID of this string in the EN file.
Sorry for replying to this old thread, but I can't create a new thread.
About The Sims 4 Mods & Custom Content
Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.15,685 PostsLatest Activity: 14 minutes ago
Community Highlights
Recent Discussions
- 14 minutes ago
- 21 minutes ago
- 22 minutes ago
- 23 minutes ago