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

Adding A Spell Book Power To A Hero

Avatar of Elric

Elric

Category: Code
Level: Beginner
Created: Monday December 13, 2010 - 18:42
Updated: Wednesday December 15, 2010 - 13:29
Views: 12954
Summary: Here is How To Add A Spell Book Power To A Hero

Rating

Staff says

-

Members say

4.5

Average

4.5/5.0

4 votes

Page 1 2 3 4 5 6 7
What Pages You Will Find What Info:

1- Info On Page Number
2- System.ini
3- Hero.ini
4- CommandButton.ini
5- CommandSet.ini
6- SpecialPower.ini
7- Extras


Next Page System.ini

Comments

Display order: Newest first

THEVALAR - Monday June 22, 2015 - 11:55

Your Guide is not working. Did everything what you said and the spells not visible in the palantir. witch is interesting cos I aded this line quiet well to the coding InPalantir = Yes so i have no idea whats the problem, probably the command button but realy dont know. I send you here the codes:
Galadriel.ini
;------- Chill-Wind --------------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_ChillWindUnpause
SpecialPowerTemplate = ChillWind
TriggeredBy = Upgrade_ChillWind
End

Behavior = OCLSpecialPower ModuleTag_ChillWind
        SpecialPowerTemplate    = ChillWind
        OCL                = OCL_SpellBookChillWind
        CreateLocation            = CREATE_AT_LOCATION
        AvailableAtStart        = Yes
StartsPaused = Yes
    End

;------- Sunflare -----------------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_SunflareUnpause
SpecialPowerTemplate = Sunflare
TriggeredBy = Upgrade_Sunflare
End

Behavior = OCLSpecialPower ModuleTag_Sunflare
        SpecialPowerTemplate             = Sunflare
        OCL             = OCL_SpecialPowerSunflare
        CreateLocation             = CREATE_AT_LOCATION
        AvailableAtStart                 = Yes
        AttributeModifierAffects        = ANY +INFANTRY +CAVALRY +MONSTER -HERO ENEMIES
        ReEnableAntiCategory            = Yes
        AttributeModifierWeatherBased    = Yes            
        WeatherDuration                    = SPELL_SUNFLARE_DURATION
        ChangeWeather                    = SUNNY
StartsPaused = Yes
    End
Command Button:

CommandButton Command_ChillWind
    Command            = SPECIAL_POWER
SpecialPower        = ChillWind
    Options     = NEED_TARGET_POS
    TextLabel     = CONTROLBAR:ChillWind
ButtonImage            = KUChillWindIcon
    ButtonBorderType     = ACTION
    DescriptLabel     = CONTROLBAR:TooltipChillWind
RadiusCursorType         = ChillWindRadiusCursor
CursorName         = AttackObj
InvalidCursorName         = GenericInvalid
InPalantir = Yes
End

CommandButton Command_Sunflare
    Command                = SPECIAL_POWER
SpecialPower        = Sunflare
    Options                = NEED_TARGET_POS
    TextLabel            = CONTROLBAR:Sunflare
ButtonImage            = SBGood_Sunflare
    ButtonBorderType    = ACTION
    DescriptLabel        = CONTROLBAR:TooltipSunflare
RadiusCursorType    = SunflareRadiusCursor
CursorName            = AttackObj
InvalidCursorName    = GenericInvalid
InPalantir = Yes
End
Special Power:

;------------------------------------------------------------------------------
SpecialPower ChillWind
    Enum                = SPECIAL_SPELL_BOOK_CHILL_WIND
    RadiusCursorRadius        = 300            ; Match the radius in FXList TaintFX
    RequiredSciences        = SCIENCE_ChillWind
    ReloadTime            = 1        ; in milliseconds
    InitiateAtLocationSound     = ChillWind
    Flags                = RESPECT_RECHARGE_TIME_DISCOUNT
ViewObjectDuration = 10000
ViewObjectRange = 200
End

;------------------------------------------------------------------------------
SpecialPower Sunflare
    Enum            = SPECIAL_SPELL_BOOK_SUNFLARE
    Flags            = WATER_OK RESPECT_RECHARGE_TIME_DISCOUNT
    RadiusCursorRadius    = 300
    RequiredSciences        = SCIENCE_Sunflare
    ReloadTime        = 4000 ;// in milliseconds
    ViewObjectDuration    = 10000
    ViewObjectRange        = 200
    InitiateAtLocationSound = SpellSunflareMS
End
Upgrade:

Upgrade Upgrade_ChillWind
Type = OBJECT
End

Upgrade Upgrade_Sunflare
Type = OBJECT
End

I know the command set and the experiance coding how to add them. could you pplease chek it what might be the problem?

clank234 - Wednesday December 15, 2010 - 13:20

you need the InPalantir = Yes OR Radial = Yes otherwise how is your hero gonna use it???

Elric - Wednesday December 15, 2010 - 13:14

No, you don't need That code for Earthquake I don't think...and i didn't memorize the Codes tags thats why it isnt like that and i had to write the tutorial in a hurry... (Dad got mad ehhh... I couldnt fix it till know...) Ill Put in the code anyway just in case...

clank234 - Wednesday December 15, 2010 - 5:59

a good tutorial,
but...
1) in the commandbutton you need to include

              
Code
InPalantir = Yes

2) use the code tags e.g. [*code][*/code] without the "*"
3) can you make what your writing clearer. I can understand because it's nothing that hard but there are some beginers that need more understanding.
Otherwise it's a very good tutorial :)

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

 
0:03:32