The 3rd Age

MasterHero Mod 1.9

MasterHero Mod 1.9

Enhances Visuals, provide series of modifications and additions to the game play, support WOR

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

Radiance Cont'd

No Avatar

ASimpleModder

Category: Code
Level: Beginner
Created: Thursday February 9, 2012 - 7:26
Updated: Thursday August 30, 2012 - 17:07
Views: 3423
Summary: Some more thoughts on radiance power

Rating

Staff says

3.5

Members say

4.0

Average

3.7/5.0

3 votes

Page 1 2 3 4 5 6 7
Last we need to add a button in data\ini\commandbutton.ini:

              
Code

CommandButton Command_CreateAHeroRadiancePower
    Command                = SPECIAL_POWER
    SpecialPower            = SpecialAbilityCreateAHeroRadiancePower
    Options                = NONPRESSABLE
    TextLabel            = CONTROLBAR:RadiancePower
    ButtonImage            = HSWitchKingLeadership
    RadiusCursorType        = TrainingRadiusCursor
    ButtonBorderType        = ACTION
    DescriptLabel            = CONTROLBAR:ToolTipRadiancePower
    InPalantir            = Yes
    CreateAHeroUIAllowableUpgrades    = Upgrade_CreateAHero_ClassCorruptedMan Upgrade_CreateAHero_ClassServantsOfSauron Upgrade_CreateAHero_ClassIstariWizard
    CreateAHeroUIMinimumLevel    = 10
    CreateAHeroUIPrerequisiteButtonName = None
End


For the image I used the leadership image of the Witchking. Furthermore I limited the power to the evil classes and the neutral wizards and to level 10 since this is a rather powerful power. If you're thorough and don't like reading 'MISSING:' texts in your game you can add the necessary strings in data\lotr.str too: CONTROLBAR:RadiancePower, CONTROLBAR:ToolTipRadiancePower and CAH:Command_CreateAHeroRadiancePower_Name (the last one will be used by the game to display the name of the power in the CAH power menu.

Et voilà. The power should now be available in the CAH power menu in the game.

Comments

Display order: Newest first

JUS_SAURON - Thursday March 22, 2012 - 22:29

Nice bit of coding ... a new special power system

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."

 
16:00:22