Scriptable Leader Traits
By: TheLopez
Last Updated 11/08/06
Version: 0.3w
Patch Compatibility: Warlords v2.0.8.0
MP Compatible: ?
Download Mod v0.3w
Version: 0.1.1
Patch Compatibility: v1.61
MP Compatible: ?
Download Mod v0.1.1
Description:
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
-----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
By: TheLopez
Last Updated 11/08/06
Version: 0.3w
Patch Compatibility: Warlords v2.0.8.0
MP Compatible: ?
Download Mod v0.3w
Version: 0.1.1
Patch Compatibility: v1.61
MP Compatible: ?
Download Mod v0.1.1
Description:
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