Modded profession – Mod (first try) that gives you spider units as a profession

I am by no means a real modder.  However, I was playing around with the professions and was able to tweak some values.  I’ve included the part of the mod that you can use to get a “Spider Worshipper” profession (inspired from a fantasy novel series…hehe).  The name is just a placeholder until I think of something better.  Basically, rather than Sentinel units, you will start with three black widow spiders.

 

Copy the below text into your “SovereignHistories” directory.  It worked for me and was a cool effect.  I believe there is some place to make a copy of the mod directory, however, I just edited the default file.  I don’t actually know where in the mod folder I’d place the file, hence, I changed the default file.  If you mess around with this, you can change the spider types too.  Enjoy!

 

<AbilityBonusOption InternalName = "History_SpiderWorshipper">

                                    <DisplayName>Spider Worshipper</DisplayName>

                                    <Description>Spider Worshipper starts the game with three black widow spiders.</Description>

                                    <GameModifier>

                                                <ModType>Unit</ModType>

                                                <Attribute>UnlockTech</Attribute>

                                                <StrVal>SpiderWorshipper</StrVal>

                                    </GameModifier>

                                    <GameModifier InternalName="SummonUnit">

                                                <ModType>Map</ModType>

                                                <Attribute>SummonUnit</Attribute>

                                                <UnitClass>BlackWidowDrone</UnitClass>

                                                <StrVal>BlackWidowDrone</StrVal>

                                    </GameModifier>

                                    <GameModifier InternalName="SummonUnit">

                                                <ModType>Map</ModType>

                                                <Attribute>SummonUnit</Attribute>

                                                <UnitClass>BlackWidowDrone</UnitClass>

                                                <StrVal>BlackWidowDrone</StrVal>

                                    </GameModifier>

                                    <GameModifier InternalName="SummonUnit">

                                                <ModType>Map</ModType>

                                                <Attribute>SummonUnit</Attribute>

                                                <UnitClass>BlackWidow</UnitClass>

                                                <StrVal>BlackWidow</StrVal>

                                    </GameModifier>

 

6,940 views 6 replies
Reply #1 Top

Nice!

I wonder if it's possible to make a faction who's units are all the monsters in the game.

Hmm....

Or perhaps a faction that has no human troops, but the sovereign has to summon all the troops.

Reply #2 Top

I bet you could but providing them weapons and armor would probably be a headache. I doubt you'd be able to design new units, they'd have to be provided. However, I really think that you could make something like that possible with some advanced coding and planning. Might take two days work for someone dedicated.

You'd new a new custom race made up of something like Goblins, create all their "Monster" units, and make a custom faction combining it all. The units would probable be a headache because it'd be more difficult then making NPC units... then again, maybe not.

Regardless, thinking out loud here, I'd say it's possible.

Reply #3 Top

It is definitely viable, but it would require a significant amount of modding!

Reply #4 Top

Quoting VR_IronMana, reply 1
Nice!

I wonder if it's possible to make a faction who's units are all the monsters in the game.

Hmm....

Or perhaps a faction that has no human troops, but the sovereign has to summon all the troops.

You most certainly could. Equipping them might be tricky, but I suppose you could make up various monster items - though it won't modify their appearance :P

Reply #5 Top

I tried this and it was pretty cool, it got me wondering if it could be currently modified to make spiders spawn per turn. Like say, every 10 turns you get a spider. So I tried adding a few things but none worked, what I added was:

<GameModifier InternalName="SummonUnit">

                    <ModType>Map</ModType>

                   <Attribute>SummonUnit</Attribute>


                   <Rarity>100</Rarity>
                   <AppearanceChance>100</AppearanceChance>
                   <PerTurn>1</PerTurn>
             

                    <UnitClass>BlackWidowDrone</UnitClass>

                    <StrVal>BlackWidowDrone</StrVal>

          </GameModifier>

This of course didn't work, but I just copied the Rarity and appearance from the tech xml. Those lines I added were used to define the random chance of obtaining a tech and I figured it could work to randomly get a spider unit every turn but alas it didn't work lol. I'm betting this isnt possible atm, but if anyone has any idea how to make it work let me know :D

Reply #6 Top

I could be wrong but from all my experiments I cannot get the <perturn> code to work properly.