28. Mär 2024, 21:58 Hallo Gast.
Willkommen Gast. Bitte einloggen oder registrieren. Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge. Hierbei werden gemäß Datenschutzerklärung Benutzername und Passwort verschlüsselt für die gewählte Dauer in einem Cookie abgelegt.


Select Boards:
 
Language:
 


Autor Thema: recruiting Elendil, Isildur and Anarion?  (Gelesen 2339 mal)

lord_ellessar

  • Edain Team Recruit
  • Zwergischer Entdecker
  • *****
  • Beiträge: 490
  • you know nothing j... sorry wrong place
recruiting Elendil, Isildur and Anarion?
« am: 31. Jan 2016, 21:51 »
How can i make to recruit those heroes from the citadel one map :P

ThorinsNemesis

  • Heiler von Imladris
  • **
  • Beiträge: 230
  • I am King under the Mountain!
Re: recruiting Elendil, Isildur and Anarion?
« Antwort #1 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.

"A darkness is coming... It will spread to every corner of the land!"

Ealendril der Dunkle

  • Gast
Re: recruiting Elendil, Isildur and Anarion?
« Antwort #2 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. ;)