1. Add this function as a definition type script to the script section of the editor:
function updateName()
local n = game.CurrentObject.Name.TextLanguages
for i = 1, #n do
n[i].text = game.CurrentObject.Values["name"].String
end
game.CurrentObject.Name.TextLanguages = n
end
2. Now what you need to do for any objects you want to change the name for is create a value on the object, character, etc & rename it to "
name" & add the name you want it to display on mouse over if a condition is met.
3. Create a on mouse enters action & do something along the lines of this:
if conditions "example" is true
execute a script >
end if
& what should happen is that if the condition you query is true that it should change the name of the object, character, etc to the name inside of the "name" value you should have created.
Quick note #1: names do not get stored in the savegame data, so this is the only viable solution for dynamic names.
Quick note #2: objects can be a little more complicated, especially if you plan on translating your game into multiple languages as you will need to use tables or multiple values instead.