How to make all Champions spawn?

I'm new to modding and have been playing around with a few things.

What I'm having a problem with is getting all champions spawn at the beginning of a game.

I've added a option in ElementalDef that spawn more NPC camps but these camps are empty even though not all the potential champions are used.

So I assume there is another parameter somewhere that governs the number of champions on the map at the beginning of the game. I've looked but really have no idea what I'm looking for or where I should look.

Any suggestions would be appreciated.

 

Thanks

 

3,648 views 4 replies
Reply #1 Top

When you set the game to spawn more camps, it is spawning them for all the players. Thus the game runs out of champions (you can only have 1 of each) and you get empty camps.

There are two ways to do what you want. First, you can make a spell that you cast which gives you every champion. Second, you can make a custom map where you have manually placed those camps only around the starting position for player 1.

Reply #2 Top

Thanks for the reply Heavenfall.

Reading your other posts has been very helpful.

I wasn't looking for a way to get all the heroes for myself, just have them appear on the map so there was a chance to recruit them.

Just to make sure I understand you correctly. Your saying that for each player 1 champion of every level increment (level 1, 3, 5, 7, and 9) spawns?

So with 8 players there would be 8 level 1 kingdom champions and 8 level 1 Empire champions and so on for each level increment? Or 4 for kingdom and 4 for Empire?

Reply #3 Top

No, sorry, I thought you meant level 1 champs that we get right from the start.

For the random champions we find in the world, they are spread out by a certain number per land tiles in the game. Still, once the game runs out of champs to place, those huts and camps and dark towers will be empty.

Reply #4 Top

 

Not all the champions have been placed. That is what I'm trying to figure out. In a way I'm not too concerned about vacant camps. Sorry if I was not very clear about what I'm trying to do.

So what I want. Is to have the complete roster of champions placed on the map at the start of a game. I thought that increasing the number of camps might be all that was needed but while there are plenty of camps not all champions have spawned.

For example I might start a game and when I Ctrl-U, I can see that Vasim, Hannnis, and Inslow among other champions of the same and higher levels have not spawned even though there are empty camps.

Here is the xml I have edited all from ElementalDefs. The numbers are a bit extreme but I'm trying to make any effect obvious while I'm trying to figure it out.

      <RandomPlacementRequirementDef InternalName="NPCCamp_All">
        <ObjectType>NPCCamp</ObjectType>
        <DisplayName>All</DisplayName>
        <NPCCampsPerPlayerPerSpawnLevel>20.0</NPCCampsPerPlayerPerSpawnLevel>
        <DistanceBetweenObjects>1</DistanceBetweenObjects>
        <StartingPointObjectRange>3</StartingPointObjectRange>
      </RandomPlacementRequirementDef>

 

        <NPCSameRaceRecruitMultiplier>2.0</NPCSameRaceRecruitMultiplier>
        <NumNPCCampsPerPlayerPerSpawnLevel>4.0</NumNPCCampsPerPlayerPerSpawnLevel>

 

Does anybody know where to go from here?

 

Thanks