Changing Teams During Game

karstentb

Chieftain
Joined
Sep 17, 2010
Messages
2
Location
Las Vegas, NV
I currently have a nice little team game going, but my AI teammates are annoying the heck out of me by signing peace treaties I'd rather not agree to. I'd rather go it alone.

I have some experience with PHP & Javascript, but can't quite get the hang of Lua's tables and making changes using FireTumer. How might one (namely, me) go about changing Teams mid-game?

Many thanks.
 
There is no LUA hook to setTeam(), therefore you can't do this without modifying the DLL.
 
Well, there is that:

Code:
	local team = Teams[ pPlayer1:GetTeam() ]
	team:AddTeam( pPlayer2:GetTeam() )

I'm using it in the WWII mod to create an alliance after some turns, but I've actually not tested it to split civilizations from a common team.
 
Back
Top Bottom