Modding Union
[en] - Modding Corner => Coding => Thema gestartet von: Parmenides de Elea am 24. Jun 2015, 18:50
-
Hi Edain Team ;), I wonder how to make the AI build a new building, as the fortress of Minas Morgul, for example. Here is an example, in the outpost commandser of Mordor I have added a new button:
; -----------------------------------------------
Commandset MordorOutpostCommandSet
1 = Command_UnpackOutpostMor dor
2 = Command_UnpackExplicitMo rdorDolGuldurFortress
3 = Command_UnpackExplicitMo rdorMorgulFortress
4 = Command_ConstructAngband Fortress
5 = Command_ConstructAngband Fortress_AI
End
; -----------------------------------------------
CommandButton Command_ConstructAngband Fortress_AI
Command = CASTLE_UNPACK_EXPLICIT_O BJECT
Object = AngbandFortress
ButtonImage = BUBuildAngbandFortress
ButtonBorderType = BUILD
TextLabel = ControlBar: ConstructAngbandFortress
DescriptLabel = ControlBar: ToolTipConstructAngbandF ortress
Radial = No
InPalantir = No
End
This is for the AI as the Player contains a upgrade.
When I play a skirmish battle, AI builds only the first three. My questions are
1. As the AI decides the priority of construction, and as could change.
2. I have to consider for the "AI" build my structure? (Angband Fortress).
I attached the .ini for the structure.
Thank you.