This command can be used to add experience to a Leader/General. The specified amount of experience is added to the Leader/General you currently have selected.
|Amount||The amount of experience you wish to add to the General/Leader you currently have selected.|
Executing the above command would add 1000 experience to the Leader/General you have selected.
This cheat would remove 500 xp from your selected leader because -500 has been specified.
Although the gain_xp cheat is primarily used to add and remove experience from a leader or general, it can also be used to add traits. The above command would add the hill fighter trait to your selected leader or general.