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.
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)
To change an individual player's trait values in console/Chat pane, use:[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 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