Jump to content


Photo

Elrond Modding

mod elrond modding help

  • Please log in to reply
27 replies to this topic

#21 ShadowSpion

ShadowSpion
  • Members
  • 15 posts

Posted 28 December 2013 - 03:32 PM

Does your guide somewhere cover how to make a double horde a buildable unit as I would love to have this capability?



#22 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 28 December 2013 - 03:57 PM

That should be pretty simple; I've never done that because I'm not really a fan of double hordes, but let's assume you want the Elven Combo to be buildable in the Rohan Archer Range. You will have to edit CommandSet.ini and CommandButton.ini

 

This is the current command set of the Rohan Archer Range:

 

Spoiler

 

Go to commandbutton.ini (this is the place where you create buttons for everything as the name indicates). Look for "CommandButton Command_ConstructRohanElvenWarriorHorde", it looks like this as a whole:

 

Spoiler

 

You now want to create a button, so copy the button of the Elven Warrior Horde and modify it to your liking, like so:

CommandButton Command_ConstructRohanElvenWarriorDoubleHorde                      ; Give the button a new, unique name. I changed "RohanElvenWarriorHorde" to "RohanElvenWarriorDoubleHorde"
    Command                = UNIT_BUILD                                          ; yes, we want to build a unit with this button
    Object                = RohanElvenWarriorDoubleHorde                         ; Here you will need to add the exact name of the object you want to build if you click this button, which is "RohanElvenWarriorDoubleHorde" (found in RohanHordes.ini)
    TextLabel            = CONTROLBAR:ConstructElvenWarriorDoubleHorde           ; This is the text that displays ingame. To make it look proper you will need a lotr.str, if you don't want to make one just leave it as "CONTROLBAR:ConstructElvenWarriorHorde"
    ButtonImage            = BCElvenBarracks_ElvenWarriors                       ; This is the image of the button, you can change it to anther existing button or add your own buttons (adding custom buttons requires an asset.dat)
    ButtonBorderType        = BUILD                                              ; Identifier for the User as to what kind of button this is ; There are different ButtonBorderTypes (for instance for passive abilities etc) but we want this one because we want to build units with this button
    DescriptLabel            = CONTROLBAR:ToolTipBuildElvenWarriorHorde          ; This is the tooltip/description of what this button does and what kind of units you can recruit with it. If you want a custom tooltip you need a lotr.str
    Radial                = Yes                                                  ; Says that we want the button to popout when we click on the archery
    InPalantir               = Yes                                               ; Says that we want the button to be visible in the palantir (next to the map)
    IsClickable            = Yes
    Options                = NEED_UPGRADE CANCELABLE                             ; NEED_UPGRADE says that the Archery needs a certain rank before it is capable of recruiting this unit, remove "NEED_UPGRADE" if you want to build this horde at any level of the Archery. CANCELABLE says we can cancel the "UNIT_BUILD" command with a right click and get our money back, so leave this one 
    NeededUpgrade        = Upgrade_StructureLevel2                               ; Which level of the archery is required to recruit this unit? Commend the entire line out if you removed "NEED_UPGRADE" above
    ShowProductionCount    = Yes                                                 ; Not so sure about that one, it either shows the number of hordes you want to build or it shows the time it takes to recruit one unit
End

Last but not least, we need to edit the commandset of the Rohan Archer Range:

CommandSet RohanArcherRangeCommandSet
    1 = Command_ConstructRohanArcherHorde
    2 = Command_ConstructRohanElvenWarriorHorde
    3 = Command_PurchaseTechnologyRohanFireArrows
    4 = Command_ConstructRohanElvenWarriorDoubleHorde
    5 = Command_Sell
End

I hope you understand the basic principle of making units buildable now. :) If you have more questions, just ask.


Edited by Echo, 28 December 2013 - 06:05 PM.

26285.png


#23 ShadowSpion

ShadowSpion
  • Members
  • 15 posts

Posted 28 December 2013 - 05:57 PM

Ok, I did that stuff and building them worked.  But, I set there commandpoints to 25 to test and they still took up 40 points



#24 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 28 December 2013 - 06:10 PM

As Meneldil said, it's not possible to change the horde command points only because the unit command points override the horde command points. One Elven Warrior costs 4 command points, thus an Elven Warrior horde costs 20, thus 2 Elven Warrior hordes combined cost 40. You'll have to try changing the command points for the single unit, which will then affect all hordes that use the Elven Warrior as a component.


Edited by Echo, 28 December 2013 - 06:11 PM.

26285.png


#25 ShadowSpion

ShadowSpion
  • Members
  • 15 posts

Posted 28 December 2013 - 06:59 PM

Ah, Thank You



#26 ShadowSpion

ShadowSpion
  • Members
  • 15 posts

Posted 05 January 2014 - 09:11 PM

Since I updated to 1.03 I can't seem to find where things are defined.  I downloaded the ini files instead of deal with the big.  For example the range of an elven warrior is "AttackRange         = M_ROHAN_ELVEN_RANGE"  This used to be defined in the gamedata.ini.  Except now when I look in the moved gamedata (in the object folder) it no longer has them in there.  So where do I look to see the numerical data?  Thank you



#27 Kwen

Kwen

    Vileartist

  • T3A Staff
  • 4,865 posts
  • Location:Korea I wish
  • Projects:It'sa secreeet
  •  T3A's First N00b
  • Division:BFME
  • Job:T3A Expert
  • Donated

Posted 05 January 2014 - 09:21 PM

If you downloaded the converted ini files from our website, then the value changes that used to be in gamedata.ini can now be found in ini/default/water.ini


                           https://www.twitch.tv/vileartist - Yes shameless self-promotion

          ----------------------------------------------------------------------------------------------------------------------

                            "Old modders never die, they just fade away" ~ Hostile


#28 ShadowSpion

ShadowSpion
  • Members
  • 15 posts

Posted 05 January 2014 - 09:33 PM

Ah, Thank you very much






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users