Scriptable Leader Traits

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 whe...

Download

Uploading...
Do not refresh or leave this page!

File 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.

Read More

Readme
Scriptable Leader Traits v0.2.1w
By: TheLopez

Patch Compatibility: Warlords v2.0.0.0
MP Compatible: ?

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.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 
	Composite Mod - readme.txt format

Read More

Comments on this File

There are no comments yet. Be the first!

TheLopez


50 XP


Registered 6th March 2006

69 Files Uploaded

Share This File
Embed File