Modding Union
[en] - Modding Corner => General Modding Questions => Thema gestartet 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)?
-
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.
-
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)
-
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.
-
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
-
Look in commandset.inc. You can find it under data\ini\includes\commandset.inc
-
I found the list, but how to learn which ones are Blue Mages?
And what to do with them?
Sorry for many questions
-
BuildableHeroesMP = CreateAHeroDummy RohanRadagast RohanOldMan RohanEowyn_mod RohanHama RohanGamling_mod_neu RohanEomer_mod RohanTheodred GasthausPalando GasthausAlatar LothlorienHaldir_Rohan GasthausGhanBuriGhan RohanMerry_mod RohanTheoden_mod
Look 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
-
I have succeeded. Thank you very much