|
Register and log in to move these advertisements down
How to code the BuildmodTutorial for BFME
Dark_Lord's_Modder
|
Category: |
Code |
Level: |
Beginner
|
Created: |
Saturday December 18, 2010 - 7:15 |
Updated: |
Thursday November 3, 2016 - 17:53 |
Views: |
5784 |
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 | Hits | Added |
---|
Telekin | 930 | April 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."
© All Rights Reserved Eric Edwards ©2013.
Website programming by Bart van Heukelom, design by Clément Roy.
BFME, Battle For Middle Earth, and all assumed entities associated with them are © EA Games.
|
|