[R&F] Tuner: Rename City/Unit

Odinius Arcainius

îƮ§ ƉÅЍĝΞЯØʯ§ Ʈʘ ĝØ ƛŁʘЍΞ
Joined
Sep 23, 2018
Messages
83
Looking for a way to add controls to the tuner for the purpose of renaming ANY target city or unit specifically the AI cities.

Purpose: In the Civ6 Tuner I can change buildprogress or loyalty of selected city using the (Built-In) controls.I want to add a control to change city name.

Example: Action code for +10 loyalty control located on the City.ltp panel (selected city is done using populated city list control):
Code:
local pCity = GetSelectedCity();
if (pCity ~= nil and pCity.ChangeLoyalty ~= nil) then
    pCity:ChangeLoyalty(10);
end

EDIT: I'v found it, leaving this here for anyone else who may be looking for it.

Code:
local pCity = GetSelectedCity();
if (pCity ~= nil) then
    pCity:SetName("New City Name");
end

Edit: script was missing 'end' which is required to make it work.

As a General Request & sidenote: It would seem that many modders would have a nice set of tweaked / custom panels for the tuner as I know my understanding is pretty primitive. However, I was unable to find any in my search. If anyone knows/has helpful custom tuner panels containing additional controls and tweaks, sharing these would be greatly appreciated :)
 
Last edited:
Top Bottom