Jump to content


Photo

Add the Barrow Wight Lair as a building

barrow wight building porter

  • Please log in to reply
3 replies to this topic

#1 PotterAndMatrixFan

PotterAndMatrixFan
  • New Members
  • 2 posts

Posted 01 July 2014 - 08:32 PM

I'm pretty new to modding BFME2 & RotWK and new to this forum.

I wonder how I can add a Barrow Wight Lair as a building that the Mordor porter can build? I have tried to find the right code/string for the building, but to no avail. Do I need to make the whole building from scratch?

Can someone be so kind and help?

 

 


Edited by PotterAndMatrixFan, 01 July 2014 - 09:00 PM.


#2 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 02 July 2014 - 07:05 AM

First of all, you will need to add a commandbutton, like this ( you should change the image of the button anyway):

 

 

 

CommandButton Command_ConstructBarrowWightLair
  Command          = DOZER_CONSTRUCT
  Object           = BarrowWightLair
  TextLabel        = CONTROLBAR:ConstructBarrowWightLair
  ButtonImage      = BPCWightLair                                                 ; - here put your own image
  ButtonBorderType = BUILD
  DescriptLabel    = CONTROLBAR:ToolTipConstructBarrowWightLair
  Radial           = Yes 

End

 

 

 

 

 

 

 

 

 

 

Next, you will need to add this to the Mordor porter commandset:

 

CommandSet MordorPorterCommandSet
    1  = Command_Stop
    2  = Command_PorterExtinguishFire
    3  = Command_PorterConstructMordorSlaughterHouse
    4  = Command_PorterConstructMordorLumberMill
    5  = Command_PorterConstructMordorOrcPit
    6  = Command_PorterConstructMordorHaradrimPalace
    7  = Command_PorterConstructMordorTrollCage
    8  = Command_PorterConstructMordorSiegeWorks
    9  = Command_PorterConstructMumakilPen
    10 = Command_ConstructMordorTavern
    11 = Command_PorterconstructMordorBattleTower
    12 = Command_PorterConstructMordorFortress
    

    13 = Command_ConstructBarrowWightLair   ; this your commandbutton you've just made above

End

 

 

 

This should do the trick. You should also add these states for building anims, if you want it to be more like other buildings:           AnimationState = BUILD_PLACEMENT_CURSOR     ;      AnimationState = PHANTOM_STRUCTURE

 

 

 

 

 

 

 

 

 

 

Hope it helps, also you may need to change the BarrowWightLair Side from Neutral to Mordor. Or you could just make a childobject for this one and make the changes there.


2qm3dd5.jpg


#3 PotterAndMatrixFan

PotterAndMatrixFan
  • New Members
  • 2 posts

Posted 02 July 2014 - 01:35 PM

Thanks! That did the trick.

But the building is free and the description and name all says missing. I'll try to fix it, but help would be welcome.


Edited by PotterAndMatrixFan, 02 July 2014 - 01:44 PM.


#4 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 02 July 2014 - 04:38 PM

You need to make the properly changes:

Add this line into your BarrowWightLair object:

 

BuildCost = 500 ; -add here how much you want it to cost, this is just an example

 

 

 

 

 

Ok now for the missing stuff, you need to make the properly changes in lotr.str file

 

 

add these lines:

 

 

 

CONTROLBAR:ConstructBarrowWightLair

"Barrow Wight Lair"  

End

 

 

CONTROLBAR:ToolTipConstructBarrowWightLair

"Trains barrow wights"

End

 

 

 

 

 

 

 

 

 

 

 

Notice that on the space between " " you can write your own description, it can be also "Allows you to train barrow wights", or whatever you want to say on the building description.

 

Hope it helped,

Silver


2qm3dd5.jpg





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users