The 3rd Age

Battle of the Pelennor Fields

Battle of the Pelennor Fields

Six new factions. Controle any of the races of man that participated in the War of the Ring.

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

How to code the Buildmod

Tutorial for Battle for Middle-earth BFME

No Avatar

Dark_Lord's_Modder

Category: Code
Level: Beginner
Created: Saturday December 18, 2010 - 7:15
Updated: Thursday November 3, 2016 - 17:53
Views: 5624
Summary: Learn how to code the buildmod rather than having the work done for you!

Rating

Staff says

-

Members say

-

Average

-

0 votes

Welcome to the coding for the buildmod.
I do not claim ownership of the coding. It was done for us by Telekin.


Ok. Open up ini.big then open up commandbutton

Type in this piece of code:
              
Code

CommandButton Command_SpellBookGondorBuildingFoundation
    Command = SPELL_BOOK
    SpecialPower        = SpellBookGondorBuildingFoundation
    Options            = NEED_TARGET_POS
    TextLabel        = CONTROLBAR:BuildFoundation
    DescriptLabel        = CONTROLBAR:ToolTipBuildFoundation
    ButtonImage        = UCCommon_Repair
    ButtonBorderType    = BUILD ;ACTION
    RadiusCursorType    = INDUSTRY ;HEAL
    InvalidCursorName    = GenericInvalid
End

CommandButton Command_SpellBookRohanBuildingFoundation
    Command = SPELL_BOOK
    SpecialPower        = SpellBookRohanBuildingFoundation
    Options            = NEED_TARGET_POS
    TextLabel        = CONTROLBAR:BuildFoundation
    DescriptLabel        = CONTROLBAR:ToolTipBuildFoundation
    ButtonImage        = UCCommon_Repair
    ButtonBorderType    = BUILD
    RadiusCursorType    = INDUSTRY
    InvalidCursorName    = GenericInvalid
End

CommandButton Command_SpellBookIsengardBuildingFoundation
    Command = SPELL_BOOK
    SpecialPower        = SpellBookIsengardBuildingFoundation
    Options            = NEED_TARGET_POS
    TextLabel        = CONTROLBAR:BuildFoundation
    DescriptLabel        = CONTROLBAR:ToolTipBuildFoundation
    ButtonImage        = UCCommon_Repair
    ButtonBorderType    = BUILD
    RadiusCursorType    = INDUSTRY
    InvalidCursorName    = GenericInvalid
End

CommandButton Command_SpellBookMordorBuildingFoundation
    Command = SPELL_BOOK
    SpecialPower        = SpellBookMordorBuildingFoundation
    Options            = NEED_TARGET_POS
    TextLabel        = CONTROLBAR:BuildFoundation
    DescriptLabel        = CONTROLBAR:ToolTipBuildFoundation
    ButtonImage        = UCCommon_Repair
    ButtonBorderType    = BUILD
    RadiusCursorType    = INDUSTRY
    InvalidCursorName    = GenericInvalid
End

Then put this in specialpower:
              
Code


SpecialPower SpellBookGondorBuildingFoundation
    ; InitiateAtLocationSound = SpellHeal
    Enum = SPECIAL_BALROG_WINGS ;SPECIAL_SPELL_BOOK_ELVEN_ALLIES
    ReloadTime = 1
    PublicTimer = No
    RadiusCursorRadius = 30.0 ;should put this in defines.ini somehow
    RequiredScience = SCIENCE_GondorBuildingFoundation

    ; ViewObjectDuration = 5000
    ; ViewObjectRange = 100
End

SpecialPower SpellBookRohanBuildingFoundation
    Enum = SPECIAL_BALROG_WINGS
    ReloadTime = 1
    PublicTimer = No
    RadiusCursorRadius = 30.0
    RequiredScience = SCIENCE_RohanBuildingFoundation
End

SpecialPower SpellBookIsengardBuildingFoundation
    Enum = SPECIAL_BALROG_WINGS
    ReloadTime = 1
    PublicTimer = No
    RadiusCursorRadius = 30.0
    RequiredScience = SCIENCE_IsengardBuildingFoundation
End

SpecialPower SpellBookMordorBuildingFoundation
    Enum = SPECIAL_BALROG_WINGS
    ReloadTime = 1
    PublicTimer = No
    RadiusCursorRadius = 30.0
    RequiredScience = SCIENCE_MordorBuildingFoundation
End

Links / Downloads

 HitsAdded
Telekin851April 26, 2011 - 0:36

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
10:20:44