Oh heck yes, it beats playing a good leader and then getting stuck a whole bunch of other good leaders, where all I really wanted was a good rollicking holy war!This is absolutely awesome, too bad the main mod doesn't have it.
Super! Thanks for telling me about it. I'm glad that vassals should be do-able. And I'm really looking forward to trying your mod even without any further changes. Anything else is just gravy. Well, _more_ gravy.
Oh heck yes, it beats playing a good leader and then getting stuck a whole bunch of other good leaders, where all I really wanted was a good rollicking holy war!
If I could make a suggestion, it would be nice if we could select the alignment of our opponents via the leader selection drop-down menus instead. What I mean is that just between the "Random" option and the actual leaders in the drop-down, you'd also have the options "Random - Any Good", "Random - Any Neutral", and "Random - Any Evil". Thus you could set the first, second, and third AIs to be Evil so you get a challenge, but keep the fourth AI Good or Neutral so you have a potential ally. Of course, maybe this is impossible, I really don't know, so it's just a thought.
Anyhow, thanks for all your work on this!
heh, i haven't even got the vanilla FFH linked to my desktop anymore, it's eighter FF or FFH: AO. I love the holy war option on this, expecially when used in combination with varied world.
Thus you could set the first, second, and third AIs to be Evil so you get a challenge, but keep the fourth AI Good or Neutral so you have a potential ally. Of course, maybe this is impossible, I really don't know, so it's just a thought.
Anyhow, thanks for all your work on this!
will this still work with 0.32?
It will be a touch tricky deciding how to use Decius. On turn 1 he is offered an option to select his alignment, so he is technically not aligned at all and can mess up your selection schema. Though only having 1 wildcard shouldn't cause any major complaints.
Before the event, he is neutral. Although he could slip though as good or evil in a game where you waned him to be neutral, I don;t think it is that big of a deal. It woule be more of a problem in a modmod using broader alignments (I don't think the event would work)
Awesome!
I was wondering how Decius could possibly be handled, and I guess there isn't really any easy way to do it. Ah well, thanks for your work on this!
Reactions:
Sto made a modmod, neat
What in the world?
How in the world!?!
...Oh my god this is awesome!
Very cool Sto, do you mind if I integrate this in patch "b"?
//leader assignment
if (iBestLeader != -1)
{
if (!isLAC)
{
[COLOR="Red"] if (!bCivSelected)
{
nCivAssigned[iBestCiv] += 1;
}
[/COLOR] GC.getInitCore().setCiv((PlayerTypes)iPlayer, (CivilizationTypes)iBestCiv);
int iRndCiv = GC.getInfoTypeForString("CIVILIZATION_RANDOM");
int iRndLeaderGood = GC.getInfoTypeForString("LEADER_RANDOM_GOOD");
int iRndLeaderNeutral = GC.getInfoTypeForString("LEADER_RANDOM_NEUTRAL");
int iRndLeaderEvil = GC.getInfoTypeForString("LEADER_RANDOM_EVIL");
int iAlignment;
int iBestLeader = -1;
int iBestCiv = -1;
int iBestValue = -1;
int iValue = 0;
for (int iPlayer = 0; iPlayer < MAX_CIV_PLAYERS; iPlayer++)
{
if (GC.getInitCore().getCiv((PlayerTypes)iPlayer) == iRndCiv)
{
if (GC.getInitCore().getLeader((PlayerTypes)iPlayer) == iRndLeaderGood)
{
iAlignment = ALIGNMENT_GOOD;
}
if (GC.getInitCore().getLeader((PlayerTypes)iPlayer) == iRndLeaderNeutral)
{
iAlignment = ALIGNMENT_NEUTRAL;
}
if (GC.getInitCore().getLeader((PlayerTypes)iPlayer) == iRndLeaderEvil)
{
iAlignment = ALIGNMENT_EVIL;
}
for (int iCiv = 0; iCiv < GC.getNumCivilizationInfos(); iCiv++)
{
if (GC.getCivilizationInfo((CivilizationTypes)iCiv).isAIPlayable())
{
for (int iLeader = 0; iLeader < GC.getNumLeaderHeadInfos(); iLeader++)
{
if (GC.getCivilizationInfo((CivilizationTypes)iCiv).isLeaders(iLeader))
{
if (GC.getLeaderHeadInfo((LeaderHeadTypes)iLeader).getAlignment() == iAlignment)
{
iValue = 40000 + GC.getGameINLINE().getSorenRandNum(1000, "Random Leader");
for (int iI = 0; iI < MAX_CIV_PLAYERS; iI++)
{
if (GC.getInitCore().getLeader((PlayerTypes)iI) == iLeader)
{
iValue -= 1000;
}
if (GC.getInitCore().getCiv((PlayerTypes)iI) == iCiv)
{
iValue -= 250;
}
}
if (iValue > iBestValue)
{
iBestCiv = iCiv;
iBestLeader = iLeader;
iBestValue = iValue;
}
}
}
}
}
}
GC.getInitCore().setCiv((PlayerTypes)iPlayer, (CivilizationTypes)iBestCiv);
GC.getInitCore().setLeader((PlayerTypes)iPlayer, (LeaderHeadTypes)iBestLeader);
iBestCiv = -1;
iBestLeader = -1;
iBestValue = -1;
}
}