Resource icon

[Warlords] Scriptable Leader Traits v0.3w 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:
[TAB]void CvPlayer::addTrait(TraitTypes eTrait);
[TAB]void CvPlayer::removeTrait(TraitTypes eTrait);
[TAB]
This way any traits in the game can be added or removed through python.


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


-----v0.3w------

- Updated to be compatible with Warlords v2.0.8.0 patch.

Spoiler :

-----v0.2.1w------

- Added missing code provided by Kael to addTrait and removeTrait


-----v0.2w------

- Added the missing code reported by ocedius


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

- Updated all code to be compatible with Warlords v2.0.0.0


-----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
[TAB]Composite Mod - readme.txt format
Author
TheLopez
Downloads
489
Views
489
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheLopez

Top Bottom