modifieda4
Chief Time Waster
Basic Barbarian Great General Experience by ModifiedA4 v1.1 01/10/2012
The Barbarian Great General Experience mod allows Great General points from Barbarian combat
1.1 Download here
Change Log:
Requirements:
see readme.txt for installation instructions.
Features:
This mod is so simple I posted the relevant python code here:
I think with some tweaking I could make this also work for Barbarians to get GG points from combat.
The Barbarian Great General Experience mod allows Great General points from Barbarian combat
1.1 Download here
Change Log:
Spoiler :
- 1.0 initial release
- 1.1 added max xp check for barbarians, refined code
- BTS 3.19
- Gamecore DLL independant
- BUG 4.4
see readme.txt for installation instructions.
Features:
- unit combat with barbarians generates Great General points for human and AI players
- checks max xp allowed from barabarians and animals before awarding GG points
- awards 1 GG point per barbarians combat regardless of XP awarded
- known "feature" that GG points are not awarded when maxing the XP for that unit level
This mod is so simple I posted the relevant python code here:
Spoiler :
Code:
def onCombatResult(self, argsList):
'Combat Result'
pWinner,pLoser = argsList
playerX = PyPlayer(pWinner.getOwner())
unitX = PyInfo.UnitInfo(pWinner.getUnitType())
playerY = PyPlayer(pLoser.getOwner())
unitY = PyInfo.UnitInfo(pLoser.getUnitType())
pPlayerWinner = gc.getPlayer(pWinner.getOwner())
pPlayerLoser = gc.getPlayer(pLoser.getOwner())
if pPlayerLoser.isBarbarian():
if pLoser.isAnimal():
if pWinner.getExperience()<=gc.getDefineINT("ANIMAL_MAX_XP_VALUE"):
pPlayerWinner.changeCombatExperience(1)
elif pWinner.getExperience()<=gc.getDefineINT("BARBARIAN_MAX_XP_VALUE"):
pPlayerWinner.changeCombatExperience(1)