Modding Union

[en] - Modding Corner => Mapping => Thema gestartet von: lord_ellessar am 31. Jan 2016, 21:51

Titel: recruiting Elendil, Isildur and Anarion?
Beitrag von: lord_ellessar am 31. Jan 2016, 21:51
How can i make to recruit those heroes from the citadel one map :P
Titel: Re: recruiting Elendil, Isildur and Anarion?
Beitrag von: ThorinsNemesis am 1. Feb 2016, 00:27
For all maps just put their names (eg. GondorIsildur or something like that) in the playertemplate.ini.
But for all maps I don't know, I haven't tried it till now.
Titel: Re: recruiting Elendil, Isildur and Anarion?
Beitrag von: Ealendril der Dunkle am 1. Feb 2016, 11:01
Copy the specific playertemplate.ini definition into your map.ini. For example:

PlayerTemplate FactionMen
    StartingUnit1               = GondorFighterHorde
    StartingUnitOffset1         = X:30 Y:200 Z:0
    StartingUnit0               = GondorFighterHorde
    StartingUnitOffset0         = X:1 Y:130 Z:0

    InitialUpgrades             = Upgrade_MenFaction Upgrade_AllFactionUpgrade
    BuildableHeroesMP           = CreateAHero ArnorBandobras GondorAnarion GondorElendil GondorIsildur_Mod GondorGandalf_mod LothlorienGilGalad ImladrisElrond
    BuildableRingHeroesMP       = RingHeroDummy
End

The place of the hero name is linked to the slots in the commandset:
CommandSet GondorCastleBaseKeepCommandSet
    1    = Command_RingMechanikGondor
    2    = Command_FakeRingHeroReviveSlot
    3    = Command_CreateAHeroReviveSlot 
    4    = Command_GenericReviveSlot1
    5    = Command_PurchaseUpgradeDenethor
    6    = Command_GenericReviveSlot2
    7    = Command_GenericReviveSlot3
    8    = Command_GenericReviveSlot4
    9    = Command_GenericReviveSlot5
    10   = Command_ImrahilGenericReviveSlot
    11   = Command_FakeHeroReviveSlot7
    12   = Command_StartCitadelSelfRepair
End

You have to count: 7 heroes are needing 7 slots + 1 slot for the CaH.
For you it should be best to change the commandset to something like this:
CommandSet GondorCastleBaseKeepCommandSet
    1    = Command_RingMechanikGondor
    2    = Command_FakeRingHeroReviveSlot
    3    = Command_CreateAHeroReviveSlot 
    4    = Command_GenericReviveSlot1
    6    = Command_GenericReviveSlot2
    7    = Command_GenericReviveSlot3
    8    = Command_GenericReviveSlot4
    9    = Command_GenericReviveSlot5
    10   = Command_GenericReviveSlot6
    11   = Command_FakeHeroReviveSlot7
    12   = Command_StartCitadelSelfRepair
End

Learning by doing. ;)