28. Mär 2024, 15:45 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: Removing the requirements for a unit.  (Gelesen 2020 mal)

jiraiyathegallent

  • Thain des Auenlandes
  • *
  • Beiträge: 47
Removing the requirements for a unit.
« am: 31. Jan 2016, 16:21 »
Hello everyone I added mirkwood fighters to a building but i need help Removing the requirements to recruit them any help will be great thanks.  :)
ha ha ha...... im not human anymore either,these tears of blood overflowing with rage....i went from sannin to sage! the hermit sage of mount myobuku! i am master JIRAIYA!

Ealendril der Dunkle

  • Gast
Re: Removing the requirements for a unit.
« Antwort #1 am: 1. Feb 2016, 11:03 »
Edit the following commandbutton:

CommandButton Command_ConstructLothlorienMirkwoodFighterHorde
    Command                = UNIT_BUILD
    Object                 = LothlorienMirkwoodFighterHorde
    Options                = NEED_UPGRADE CANCELABLE
    TextLabel              = CONTROLBAR:LothlorienMirkwoodFighterHorde
    ButtonImage            = HSMirkwoodSword
    ButtonBorderType       = BUILD
    DescriptLabel          = CONTROLBAR:ToolTipBuildLothlorienMirkwoodFighterHorde
    Radial                 = Yes
    InPalantir             = Yes
    ShowProductionCount    = Yes
    NeededUpgrade          = Upgrade_RaiseSchmiedekunst
    DisableOnModelCondition = RUBBLE POST_RUBBLE
End

Your button should look like this:
CommandButton Command_ConstructLothlorienMirkwoodFighterHorde
    Command                = UNIT_BUILD
    Object                 = LothlorienMirkwoodFighterHorde
    Options                = CANCELABLE
    TextLabel              = CONTROLBAR:LothlorienMirkwoodFighterHorde
    ButtonImage            = HSMirkwoodSword
    ButtonBorderType       = BUILD
    DescriptLabel          = CONTROLBAR:ToolTipBuildLothlorienMirkwoodFighterHorde
    Radial                 = Yes
    InPalantir             = Yes
    ShowProductionCount    = Yes
End

jiraiyathegallent

  • Thain des Auenlandes
  • *
  • Beiträge: 47
Re: Removing the requirements for a unit.
« Antwort #2 am: 1. Feb 2016, 11:21 »
sorry i shouldve been more specific its for a map.ini and the code doesnt work im guessing because its for the mirkkwoodfighter.ini
ha ha ha...... im not human anymore either,these tears of blood overflowing with rage....i went from sannin to sage! the hermit sage of mount myobuku! i am master JIRAIYA!

Ealendril der Dunkle

  • Gast
Re: Removing the requirements for a unit.
« Antwort #3 am: 1. Feb 2016, 11:27 »
Yes, copy the changed code in your map.ini and everything should work. A commandbutton doesnt have anything to do with the ini of an unit.

jiraiyathegallent

  • Thain des Auenlandes
  • *
  • Beiträge: 47
Re: Removing the requirements for a unit.
« Antwort #4 am: 1. Feb 2016, 14:25 »
it doesnt work just to be sure is this right?

CommandSet GondorRangerTentsCommandSetNew
  1 = Command_ConstructLothlorienMirkwoodFighterHorde
  2 = Command_ConstructLothlorienMirkwoodSpearmenHorde
  3 = Command_ConstructLothlorienMirkwoodArcherHorde
  4 = Command_ConstructMirkwoodElkriderHorde
  6 = Command_Sell

End

Object GondorRangerTents
CommandSet = GondorRangerTentsCommandSetNew

End

CommandButton Command_ConstructLothlorienMirkwoodFighterHorde
    Command                = UNIT_BUILD
    Object                 = LothlorienMirkwoodFighterHorde
    Options                = CANCELABLE
    TextLabel              = CONTROLBAR:LothlorienMirkwoodFighterHorde
    ButtonImage            = HSMirkwoodSword
    ButtonBorderType       = BUILD
    DescriptLabel          = CONTROLBAR:ToolTipBuildLothlorienMirkwoodFighterHorde
    Radial                 = Yes
    InPalantir             = Yes
    ShowProductionCount    = Yes
End
ha ha ha...... im not human anymore either,these tears of blood overflowing with rage....i went from sannin to sage! the hermit sage of mount myobuku! i am master JIRAIYA!

FG15

  • Administrator
  • Ringträger
  • *****
  • Beiträge: 5.268
Re: Removing the requirements for a unit.
« Antwort #5 am: 1. Feb 2016, 15:10 »
You should add the following line to your comandbutton.
    NeededUpgrade          = NoneElse, the game won't override it and keep the old upgrade as a requirement.

jiraiyathegallent

  • Thain des Auenlandes
  • *
  • Beiträge: 47
Re: Removing the requirements for a unit.
« Antwort #6 am: 2. Feb 2016, 04:05 »
that didnt work sadly
ha ha ha...... im not human anymore either,these tears of blood overflowing with rage....i went from sannin to sage! the hermit sage of mount myobuku! i am master JIRAIYA!