Resource icon

Scriptable Leader Traits v0.1.1 2016-10-05

Adds the ability to add and remove traits from leaders through python.

I have tried to test the code as best as possible to make sure when a leader
trait is added or removed all of the game attributes are updated as well.
Please report any inconsistent behavior as soon as you find it so I can fix the
issue and make a new release.

-----Notes to Modmakers-----

If you want to use this mod component in your mod I have tried to make things
as easy as possible for you. In the SDK files I have added
// < Scriptable Leader Traits Start > and
// < Scriptable Leader Traits End > in all of the places where changes
were made.

As part of the changes to the SDK files I have also included two new methods in
the CvPlayer class and exposed them to python they are:
void CvPlayer::addTrait(TraitTypes eTrait);
void CvPlayer::removeTrait(TraitTypes eTrait);

This way any traits in the game can be added or removed through python.


-----Version Information-----

-----v0.1.1------

- Added missing code provided by Kael to addTrait and removeTrait

Spoiler :

-----v0.1------

- Setup the Scriptable Leader Traits mod infrastructure by branching off the
Dynasty Mod.

- Added the code needed in the SDK to enable the scripting of leader traits
through Python


-----===Credits & Thanks===-----

- Exavier
Composite Mod - readme.txt format
Author
TheLopez
Downloads
358
Views
366
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from TheLopez

Top Bottom