[en] - Modding Corner > Mapping

recruiting Elendil, Isildur and Anarion?

(1/1)

lord_ellessar:
How can i make to recruit those heroes from the citadel one map :P

ThorinsNemesis:
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.

Ealendril der Dunkle:
Copy the specific playertemplate.ini definition into your map.ini. For example:


--- Code: ---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
--- Ende Code ---

The place of the hero name is linked to the slots in the commandset:

--- Code: ---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
--- Ende Code ---

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:

--- Code: ---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
--- Ende Code ---

Learning by doing. ;)

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln