Assign nation to a player

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
Post Reply
MikeDuk
Posts: 40
Joined: Tue Aug 31, 2021 3:58 pm

Assign nation to a player

Post by MikeDuk »

It would be great to do this:

/create Churchill
/create Truman
/nation Churchill "United Kingdom"
/nation Truman "United States"
/team Churchill 0
/team Truman 0

/create Hitler
/create Mussolini
/nation Hitler Germany
/nation Mussolini Italy
/team Hitler 1
/team Mussolini 1

Otherwise, nations are assigned randomly to created players.

The server command syntax could be:

/nation <player-name> <valid-nation>

Thanks!
cazfi
Elite
Posts: 3069
Joined: Tue Jan 29, 2013 6:54 pm

Re: Assign nation to a player

Post by cazfi »

In all versions, if you /create player with one of the leader names from the rulesets, server assigns correct nation for him/her. You just need to use the exact name from the ruleset, i.e., not /create Churchill but /create "Winston Churchill"

Freeciv-3.1 has a new playernation command:

Code: Select all

> help playernation 
Command: playernation  -  Define the nation of a player.
Synopsis: playernation <player-name> [nation] [is-male] [leader] [style]
Level: admin
Description:
  This command sets the nation, leader name, style, and gender of a
  specific player.
  The gender parameter should be 1 if male, otherwise 0. Omitting any of
  the player settings will reset the player to defaults.
  This command may not be used once the game has started.
MikeDuk
Posts: 40
Joined: Tue Aug 31, 2021 3:58 pm

Re: Assign nation to a player

Post by MikeDuk »

You just need to use the exact name from the ruleset
Good to know, but that only works for leader mames. That is, it wouldn't work for "/create Angela Merkel".
Freeciv-3.1 has a new playernation command
That is really great, thanks!
Post Reply