How to add the champion in the initial group

could you please tell how to add the champion in the initial group to sovereign?

4,335 views 4 replies
Reply #1 Top

The simplest way to do this is to set up a summon spell that you can only cast once (give it <Cooldown>-1</Cooldown>). Use this modifier

            <GameModifier>
                    <ModType>Unit</ModType>
                    <Attribute>UnitJoinArmy</Attribute>
                    <StrVal>Champion_Pralius</StrVal>
                    <Value>5</Value>
                    <Unitclass>Champion</Unitclass>
            </GameModifier>

 

Reply #2 Top

Hi Heavenfall, I was interested in doing this as well but may need a modding for dummies as I couldn't get this to work.  I am trying to get my champion to be able to summon a particular level 1 hero on his first turn.  Would I use the code above?  Do I add that code to the "unit" file for my sovereign?  Where do I put the "cooldown" in the code above?  Thanks for any help!

Reply #3 Top

Could you do this with a one-use potion or a book that the sovereign starts with by using the code:

<AutoCreateEquipment>Champion_Potion</AutoCreateEquipment>

Or something like that? Quite frankly, I'm going to experiment with this right now.

 

EDIT: Testing this...

 

Code: xml
  1. &lt;GameItemTypes&gt;
  2. &lt;DataChecksum NoParse="1"&gt;
  3. &lt;Ignore&gt;DispName&lt;/Ignore&gt;
  4. &lt;Translate&gt;DisplayName,Description&lt;/Translate&gt;
  5. &lt;/DataChecksum&gt;
  6. &lt;GameItemType InternalName="Scroll_Champion"&gt;
  7. &lt;DisplayName&gt;Champion Scroll&lt;/DisplayName&gt;
  8. &lt;Description&gt;This token will summon a companion.&lt;/Description&gt;
  9. &lt;ShopValue&gt;200&lt;/ShopValue&gt;
  10. &lt;GameModifier&gt;
  11. &lt;ModType&gt;Unit&lt;/ModType&gt;
  12. &lt;Attribute&gt;UnitJoinArmy&lt;/Attribute&gt;
  13. &lt;StrVal&gt;Champion_Adant&lt;/StrVal&gt;
  14. &lt;Provides&gt;Summons a champion&lt;/Provides&gt;
  15. &lt;Value&gt;5&lt;/Value&gt;
  16. &lt;Unitclass&gt;Champion&lt;/Unitclass&gt;
  17. &lt;/GameModifier&gt;
  18. &lt;IsAvailableForSovereignCustomization&gt;0&lt;/IsAvailableForSovereignCustomization&gt;
  19. &lt;Likelihood&gt;200&lt;/Likelihood&gt;
  20. &lt;RarityDisplay&gt;Rare&lt;/RarityDisplay&gt;
  21. &lt;HeroOnly&gt;1&lt;/HeroOnly&gt;
  22. &lt;IsAvailableForUnitDesign&gt;0&lt;/IsAvailableForUnitDesign&gt;
  23. &lt;IsUsable&gt;1&lt;/IsUsable&gt;
  24. &lt;ArtDef&gt;Scroll_AirWalker_ArtDef&lt;/ArtDef&gt;
  25. &lt;GameItemTypeArtDef InternalName="Scroll_AirWalker_ArtDef"&gt;
  26. &lt;GameItemTypeModelPack InternalName="Scroll_AirWalker_Default"&gt;
  27. &lt;IconFile&gt;Item_BlizzardScroll_Icon.png&lt;/IconFile&gt;
  28. &lt;TintR&gt;212&lt;/TintR&gt;
  29. &lt;TintG&gt;32&lt;/TintG&gt;
  30. &lt;TintB&gt;200&lt;/TintB&gt;
  31. &lt;SFX&gt;Equip_MagicRing_01&lt;/SFX&gt;
  32. &lt;GameItemTypeModel&gt;
  33. &lt;/GameItemTypeModel&gt;
  34. &lt;/GameItemTypeModelPack&gt;
  35. &lt;/GameItemTypeArtDef&gt;
  36. &lt;/GameItemType&gt;
  37. &lt;/GameItemTypes&gt;

EDIT: Ok, so I added the item and it shows up when I select my sovereign after the main menu but when I get in-game the item is not in my inventory. I've tried adding it via using both <AutoCreateEquipment> and <Equipment> codes.

Frankly, I've been trying to get something like this to work for ages with nothing to show for it. Appears to be much easier said than done. :(

Reply #4 Top

Thanks JamesD009 - definitely post if you figure it out.