Log in

View Full Version : Renaming Cities. Help Needed!!



Arbaces
04-03-2006, 12:56
Hello. Isn't a around here a generous scripter who could help me create a script which is to change the name of a settlement whenever the player clicks on the "?" icon from it's construction window.

Perhaps not in a name given by player but in a random name from 4 given names or perhaps in a new name depending on the faction which the player who wants to change the name belongs to (if the "New Settlement" has been conquered by romans he can gain a name such as "Colonia Nova", if he is conquered by a germanic faction it could be given the name "Novburg" (:dizzy2:) ) .

I would be really grateful to a good script who could help me do something about it. This would be useful for my Mod in which I want to give the player the ability to make colonies.

Farewell,
Arbaces.

Monkwarrior
04-03-2006, 15:51
Do you think it is possible?:inquisitive:

If so, I would like also to implement such option, but I don't remember any available command to make something like this. :inquisitive:

Any idea to begin working?

Arbaces
04-03-2006, 18:43
I solved the problem myself and here is a small tutorial how to do it (if you can call it a "tutorial" since I never made this things before).

Well... it might be a revolution for some people, it was for me too when I first found out a week ago, but only now I tested it and it works great!! I will, though, pop-up an advisor when a new colonization place is conquered to let people know how to rename their settlements.

First of all you should go to preferences.txt and enable the last option:
EDIT_SETTLEMENT_NAMES:TRUE

And now... some screenies and hints how to do it.

1. Decide on what settlement to change name, you can also see in the second plan a settlement already renamed, perhaps the first settlement ever renamed in RTW in-game (who knows?).
https://i78.photobucket.com/albums/j89/Arbaces/step1.jpg

2. Open the settlement scroll. Double click on the settlement name and... what?? It seems that you are able to edit it, now that you have "EDIT_SETTLEMENT_NAMES:TRUE" on preferences.txt.
https://i78.photobucket.com/albums/j89/Arbaces/step2.jpg

3. And below is the result.
https://i78.photobucket.com/albums/j89/Arbaces/step3.jpg

As I said, the player might not know, and if you wanna make villages "colonization places" such as I do in my mod with Iceland, Siberia, Scandinavia, I reccomend an advisor to let the player know how to rename the settlement, only for new colonies.

Moderators, if you think this is a good tutorial you can move this message there too.

Farewell,
Arbaces

Monkwarrior
04-03-2006, 19:15
That's great. :2thumbsup:

Now the "problem" is: how to make this with the factions controlled by the IA?
In fact, probably it would be only necessary for romans, as we know the settlements that were renamed after conquest (or sometimes settlements built over the ruins of the conquered one).

I don't know if it would be possible to do it through simulate_click commands. :juggle2:

(Perhaps some expert scripter...

Arbaces
04-03-2006, 19:38
Hmm...What? You mean to make the AI give names to the conquered settlements? It's impossible for the AI to use scripts , not to talk of renaming from a list of settlements. But it's a good feature for a human player... it needs a small work on the advisor to let people know of the new "feature" which is not so new since already existed in RTW 1.5/1.6 but it was disabled. Don't know if you were talking about this, but I'm finished with what I wanted.

Farewell,
Arbaces

Epistolary Richard
04-03-2006, 21:29
Yeah, this is a neat little feature that hasn't got much press. I heard about it a while ago - I've never needed to edit anything to do it though. There's no way to script it though and automatically change settlement names when a faction takes it.