Good evening. I renamed the objects using a standard script. However, for some reason, not all objects were renamed; in x = 2, absolutely everything was renamed. In x = 1, 3, and 4, only some objects were renamed.
I thought that maybe there are duplicate object names somewhere, but no, the names are unique. What else could be causing this problem?
for i = 118,132 do -- reinforcement in the Dungeon (first)
for x = 1,4 do
OverrideObjectTooltipNameAndDescription('PortalP'. .x..'_'..i,"Maps/Multiplayer/JoyPatriot/Teks/Portal/ReinforcementsName.txt",
"Maps/Multiplayer/JoyPatriot/Teks/Portal/ReinforcementsBio.txt")
end
end
Also, I recommend not hardcoding absolute paths to map files; it's better to use the GetMapDataPath() function. This will save you from having to rewrite all the paths if you decide to rename the map.
P.S. What objects are you renaming? If they are creatures, try using the SetMonsterNames() function
Сценарии:
"Холм мертвецов"
"Священное древо"