Noob needs map help

I've been working on a map and it is almost complete.  I have been unable, however, to get milita capiltal ships to spawn on a planet.  I have tried looking at other various working user-submitted maps.  Do I need a template if its just for one map?  Or can I just set groups?  The artifacts are working, but cap ships don't spawn.  I've tried them set for planetownermilita i think every other combination.... Here is the code, any thoughts would be helpful.

 

    designName "Planet17"
        inGameName ""
        type "Terran"
        pos [ 1288 , 1444 ]
        owner ""
        isHomePlanet FALSE
        normalStartUpgradeLevelForPopulation 0
        normalStartUpgradeLevelForCivilianModules 0
        normalStartUpgradeLevelForTacticalModules 0
        normalStartUpgradeLevelForArtifacts 0
        normalStartUpgradeLevelForInfrastructure 0
        quickStartUpgradeLevelForPopulation 0
        quickStartUpgradeLevelForCivilianModules 0
        quickStartUpgradeLevelForTacticalModules 0
        quickStartUpgradeLevelForArtifacts 0
        quickStartUpgradeLevelForInfrastructure 0
        planetItems
            templateName ""
            subTemplates 0
            groups 2
            group
                condition
                    type "Always"
                    param ""
                owner "PlanetOwner"
                colonizeChance 0.000000
                items 3
                item "Bonus:CrystalMiners"
                item "Artifact:StrongCulture"
                item "Artifact:AntimatterRegen"
            group
                condition
                    type "Always"
                    param ""
                owner "PlanetOwner"
                colonizeChance 0.000000
                items 3
                item "Psi:CapitalShip:BattleShip"
                item "Psi:CapitalShip:Carrier"
                item "Psi:CapitalShip:Carrier"
        spawnProbability 1.000000
        useDefaultTemplate FALSE

1,370 views 6 replies
Reply #1 Top

I have used templates in each map as they are saved in the map

harpo

 

Reply #2 Top

So this code won't work?  I tried using the templates but haven't had any success in getting the items to show up.  I've tried many templates with "always" and "planetownermilitia" to no avail.  Any thoughts why nothing shows except for the default templates are on?

Reply #4 Top

thanks Tohklidan for the response and the links.  I had looked at those threads extensively when working on my templates. In fact, I tried to use some of your code to create a non-milita mob faction.

 Really what I would like would be to simply be able to spawn various miltia of my choosing on a planet.  Looking at the templates it looks as if most of the examples given include a whole shmattering of items with probabilities and such.  I just want like 3 ships to spawn ever time.  

Does anyone have code like that they could just paste in?

 

Reply #5 Top

you could try this

template
    templateName "3Militia"
    subTemplates 0
    groups 1
    group
        condition
            type "Always"
            param ""
        owner "RandomMilitia"
        colonizeChance 1
        items 8
        item "Tech:Frigate:AntiFighter"
        item "Tech:Frigate:Carrier"
        item "Tech:Frigate:Colony"
        item "Tech:Frigate:Heavy"
        item "Tech:Frigate:Light"
        item "Tech:Frigate:LongRange"
        item "Tech:Frigate:Siege"
        item "Tech:Frigate:Utility0"
        item "Tech:Frigate:Utility1"

harpo