28. Mär 2024, 21:34 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: Help in coding  (Gelesen 1853 mal)

Parmenides de Elea

  • Hobbit
  • *
  • Beiträge: 4
Help in coding
« 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.
« Letzte Änderung: 24. Jun 2015, 18:51 von Ealendril »