Modding Union

[en] - Modding Corner => General Modding Questions => Thema gestartet von: KingThranduil am 21. Jun 2013, 00:07

Titel: Blue Mages (In Edain 3.8.1)
Beitrag von: KingThranduil am 21. Jun 2013, 00:07
I do not like that Blue Mages are hired all the faction. I want to leave them in Rivendell

1) After removed from Gondor, Pippin is hired in the inn.
2) After removed from Lauren - Rumil and Orophin(in the inn).
3) After removed from Rohan, at the same time hiring Theoden the corrupt and normal Theoden.

How to fix it, that they hired, where should (without Blue Mages)?
Titel: Re:Blue Mages (In Edain 3.8.1)
Beitrag von: FG15 am 21. Jun 2013, 09:19
Recruiting a hero is not like building a normal unit. There is the list of all the buildable heroes in the playertemplate.ini and the building-buttons are just ones to build the hero at the target position. So if you delete a hero from the list, all heroes with a placement after this one in the list, will close the gap. So there will be the next hero in the list buildable.

The better way to do this is just replace the build-button by a fake one ( like this: Command_FakeHeroReviveSl ot1). So the hero can't be build anymore.
Titel: Re:Blue Mages (In Edain 3.8.1)
Beitrag von: KingThranduil am 21. Jun 2013, 09:35
Zitat
The better way to do this is just replace the build-button by a fake one ( like this: Command_FakeHeroReviveSb t1). So the hero can't be build anymore.

Where to find?(Command_FakeHeroReviveSb t1)
Titel: Re:Blue Mages (In Edain 3.8.1)
Beitrag von: FG15 am 21. Jun 2013, 09:44
ReviveSLOT not ReviveSBT ;)

You can find this button in the commandsets

Here is the Rohan-Inn Commandset
CommandSet CommandSetInnRohanFaction
    InitialVisible = 3

1 = Command_ConstructInnHeroGoodRohan
2 = Command_ConstructLothlorienHaldirsElvesHordeInnGasthaus
3 = Command_StartSelfRepair

        4       = Command_FakeRingHeroReviveSlot
        5       = Command_FakeCreateAHeroReviveSlot 
        6       = Command_FakeRadagastReviveSlot
        7       = Command_FakeHeroReviveSlot1
        8 = Command_FakeHeroReviveSlot2
        9       = Command_FakeHeroReviveSlot3
       10       = Command_FakeHeroReviveSlot4
       11       = Command_FakeHeroReviveSlot5
       12       = Command_FakeHeroReviveSlot6
       13 = Command_GenericReviveSlot7
       14       = Command_GenericReviveSlot8
       15 = Command_GenericReviveSlot9
       16       = Command_GenericReviveSlot10
       17 = Command_FakeHeroReviveSlot11
       18 = Command_FakeHeroReviveSlot12
       19 = Command_RadialBack
End


For replacing the blue mages you look up their position in the playertemplate:
    BuildableHeroesMP            = CreateAHeroDummy RohanRadagast RohanOldMan RohanEowyn_mod RohanHama RohanGamling_mod_neu RohanEomer_mod RohanTheodred GasthausPalando GasthausAlatar LothlorienHaldir_Rohan GasthausGhanBuriGhan RohanMerry_mod RohanTheoden_mod They are at position 8 and 9 if you don't count the CAH. So replace in the commandset the revivepositions 8 and 9 by button "Command_FakeHeroReviveSl ot1"

CommandSet CommandSetInnRohanFaction
    InitialVisible = 3

1 = Command_ConstructInnHeroGoodRohan
2 = Command_ConstructLothlorienHaldirsElvesHordeInnGasthaus
3 = Command_StartSelfRepair

        4       = Command_FakeRingHeroReviveSlot
        5       = Command_FakeCreateAHeroReviveSlot 
        6       = Command_FakeRadagastReviveSlot
        7       = Command_FakeHeroReviveSlot1
        8 = Command_FakeHeroReviveSlot2
        9       = Command_FakeHeroReviveSlot3
       10       = Command_FakeHeroReviveSlot4
       11       = Command_FakeHeroReviveSlot5
       12       = Command_FakeHeroReviveSlot6
       13 = Command_FakeHeroReviveSlot1 ;here was Palando before
       14       = Command_FakeHeroReviveSlot1 ;here was Alatar before
       15 = Command_GenericReviveSlot9
       16       = Command_GenericReviveSlot10
       17 = Command_FakeHeroReviveSlot11
       18 = Command_FakeHeroReviveSlot12
       19 = Command_RadialBack
End

You have to do this for every commandset, where you want to delete them.
Titel: Re:Blue Mages (In Edain 3.8.1)
Beitrag von: KingThranduil am 21. Jun 2013, 10:40
In data\ini\commandset.ini I not found CommandSet CommandSetInnRohanFaction
    InitialVisible = 3

1 = Command_ConstructInnHeroGoodRohan
2 = Command_ConstructLothlorienHaldirsElvesHordeInnGasthaus
3 = Command_StartSelfRepair

        4       = Command_FakeRingHeroReviveSlot
        5       = Command_FakeCreateAHeroReviveSlot  
        6       = Command_FakeRadagastReviveSlot
        7       = Command_FakeHeroReviveSlot1
        8 = Command_FakeHeroReviveSlot2
        9       = Command_FakeHeroReviveSlot3
       10       = Command_FakeHeroReviveSlot4
       11       = Command_FakeHeroReviveSlot5
       12       = Command_FakeHeroReviveSlot6
       13 = Command_GenericReviveSlot7
       14       = Command_GenericReviveSlot8
       15 = Command_GenericReviveSlot9
       16       = Command_GenericReviveSlot10
       17 = Command_FakeHeroReviveSlot11
       18 = Command_FakeHeroReviveSlot12
       19 = Command_RadialBack
End
Titel: Re:Blue Mages (In Edain 3.8.1)
Beitrag von: Ealendril der Dunkle am 21. Jun 2013, 10:56
Look in commandset.inc. You can find it under data\ini\includes\commandset.inc
Titel: Re:Blue Mages (In Edain 3.8.1)
Beitrag von: KingThranduil am 21. Jun 2013, 11:37
I found the list, but how to learn which ones are Blue Mages?
And what to do with them?
Sorry for many questions
Titel: Re:Blue Mages (In Edain 3.8.1)
Beitrag von: Ealendril der Dunkle am 21. Jun 2013, 11:56
BuildableHeroesMP            = CreateAHeroDummy RohanRadagast RohanOldMan RohanEowyn_mod RohanHama RohanGamling_mod_neu RohanEomer_mod RohanTheodred GasthausPalando GasthausAlatar LothlorienHaldir_Rohan GasthausGhanBuriGhan RohanMerry_mod RohanTheoden_modLook up the position, it is number 8 and 9, so you have to create a FakeReviveSlot.

Like this:
CommandSet CommandSetInnRohanFaction
    InitialVisible = 3

1 = Command_ConstructInnHeroGoodRohan
2 = Command_ConstructLothlorienHaldirsElvesHordeInnGasthaus
3 = Command_StartSelfRepair

        4       = Command_FakeRingHeroReviveSlot
        5       = Command_FakeCreateAHeroReviveSlot  
        6       = Command_FakeRadagastReviveSlot
        7       = Command_FakeHeroReviveSlot1
        8 = Command_FakeHeroReviveSlot2
        9       = Command_FakeHeroReviveSlot3
       10       = Command_FakeHeroReviveSlot4
       11       = Command_FakeHeroReviveSlot5
       12       = Command_FakeHeroReviveSlot6
       13 = Command_GenericReviveSlot7
       14       = Command_FakeHeroReviveSlot8
       15 = Command_FakeHeroReviveSlot9
       16       = Command_GenericReviveSlot10
       17 = Command_FakeHeroReviveSlot11
       18 = Command_FakeHeroReviveSlot12
       19 = Command_RadialBack
End
e
Titel: Re:Blue Mages (In Edain 3.8.1)
Beitrag von: KingThranduil am 21. Jun 2013, 13:35
I have succeeded. Thank you very much