Quantcast
Channel: forum.freeciv.org
Viewing all articles
Browse latest Browse all 368

Rulesets and modpacks • Re: Probably stupid question how to use server command in 2.6

$
0
0
traitdistribution is a per scenario/game setting which only accepts two values EVEN or FIXED, which can be set in the game options prior to starting the game.
[16:36:07] Dove: 'set traitdistribution "FIXED"'
[16:36:07] Console: 'traitdistribution' has been set to "Fixed" (FIXED).
[16:36:13] Dove: 'set traitdistribution "EVEN"'
[16:36:13] Console: 'traitdistribution' has been set to "Even" (EVEN).
To change an individual player's trait values in console/Chat pane, use:

To see the current value for player 0 (or use "print" instead of log.error but that won't work in scripts):
/lua log.error(find.player(0):trait("Expansionist"))

To change the amount for player 0:
/lua edit.trait_mod(find.player(0),"Expansionist",-50)

Statistics: Posted by Molo_Parko — Thu Aug 15, 2024 11:51 pm



Viewing all articles
Browse latest Browse all 368

Trending Articles