The 3rd Age

Return of Shadow

Return of Shadow

A large scale mod that greatly expands the game.

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 - 8:15
Updated: Thursday November 3, 2016 - 18:53
Views: 462
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
Telekin82April 26, 2011 - 2: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."

 
21:32:41