Zebra 9
Emperor
zLeaders MOD COMP v0.1
Type: PYTHON MOD COMP
Version: 0.1
Langages Used: Python
By: Zebra 9
Multiplayer Compatible: Shouldn't affect MP games
File DB: Down Load Here
Description:
Have you ever wanted to let only one leader be able to build a certain type of unit, sort of like a Leader Spacific UU? And for that matter a Leader Spacific UB? Well now you can do both!
This is a very simple Python MOD COMP that allows anyone to set units or buildings to require a certain leader.
All of this is acomplished via 2 functions:
and before the code that looks like:
Now for a little more info on the 2 functions. They both take 2 arguments. The first argument is the unit or building type tag (UNIT_WARRIOR or BUILDING_BARRACKS), and the second argument is a leader type tag (LEADER_ALEXANDER). Now you can set as many leaders as you want to build a certain Unit/Building just by calling the addUnitLeader or the addBuildingLeader functions with the appropriate number of times.
Now for an example:
Now only Alexander can build warriors (Well Huayna Capac can still build the Quechua).
Now only Alexander can build a barracks (Well Shaka can still build his... his... his UB, what ever it's called).
Now let's say you wanted both Alexander and Washington to be able to build warriors, you would use code like this:
This also works with the buildings.
Now you could use a combination like this:
Now only Alexander and Washington can build warriors, and only Alex can build a barracks.
Installation:
1) Unzip into "My Documents\My Games\Warlords\MODS".
2) Load the game.
3) Click on "Advanced"-->"Load A MOD"-->"zLeaders"-->"OK", the Game will restart.
4) Now you can play as normal
Enjoy!
Type: PYTHON MOD COMP
Version: 0.1
Langages Used: Python
By: Zebra 9
Multiplayer Compatible: Shouldn't affect MP games
File DB: Down Load Here
Description:
Have you ever wanted to let only one leader be able to build a certain type of unit, sort of like a Leader Spacific UU? And for that matter a Leader Spacific UB? Well now you can do both!
This is a very simple Python MOD COMP that allows anyone to set units or buildings to require a certain leader.
All of this is acomplished via 2 functions:
self.addUnitLeader: This will add a leader to the list of leaders that can build this unit,
self.addBuildingLeader: This will add a leader to the list of leaders that can build this building.
Now to use these to do what you want, place the appropriate functions after the code that looks like:
self.addBuildingLeader: This will add a leader to the list of leaders that can build this building.
Code:
########################################################################################################
################ Add Your Code Below Here ################
########################################################################################################
Code:
########################################################################################################
################ Change Nothing Below Here ################
########################################################################################################
Now for an example:
Code:
self.addUnitLeader("UNIT_WARRIOR", "LEADER_ALEXANDER")
Code:
self.addBuildingLeader("BUILDING_WALLS", "LEADER_ALEXANDER")
Now let's say you wanted both Alexander and Washington to be able to build warriors, you would use code like this:
Code:
self.addUnitLeader("UNIT_WARRIOR", "LEADER_ALEXANDER")
self.addUnitLeader("UNIT_WARRIOR", "LEADER_WASHINGTON")
Now you could use a combination like this:
Code:
self.addUnitLeader("UNIT_WARRIOR", "LEADER_ALEXANDER")
self.addBuildingLeader("BUILDING_WALLS", "LEADER_ALEXANDER")
self.addUnitLeader("UNIT_WARRIOR", "LEADER_WASHINGTON")

Installation:
1) Unzip into "My Documents\My Games\Warlords\MODS".
2) Load the game.
3) Click on "Advanced"-->"Load A MOD"-->"zLeaders"-->"OK", the Game will restart.
4) Now you can play as normal
Enjoy!
