The 3rd Age

Battles of Gondor, the War in the South

Battles of Gondor, the War in the South

Converts BfME2 RotWK to the war in the south, bettween the armys of Gondor and Mordor. 4.0 released.

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
Now we need to specify what the power actually does in data\ini\object\createahero\createaheropowers.inc:

              
Code

Behavior = FireWeaponUpdate ModuleTag_RadiancePower
    FireWeaponNugget
        WeaponName            = CreateAHeroRadiancePowerWeapon
        FireDelay            = 0
        OneShot                = No
    End
End

Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CreateAHeroRadiancePower_Enabler
    SpecialPowerTemplate = SpecialAbilityCreateAHeroRadiancePower
    TriggeredBy            = Upgrade_CreateAHeroRadiancePower
End

Behavior = SpecialPowerModule ModuleTag_RadiancePowerStarter
    SpecialPowerTemplate        = SpecialAbilityCreateAHeroRadiancePower
    UpdateModuleStartsAttack    = Yes
    StartsPaused            = Yes
End


The FireWeaponUpdate module will fire the specified weapon. Since the power should act as an constantly active aura neither any FireDelay nor OneShot = Yes would make any sense. (Actually a FireDelay would make sense if you want the power to fire different weapons in phases. For an example see Object SpellBookEarthquake in data\ini\object\system\system.ini).
Though we cannot pause the FireWeaponUpdate (none of the fields TriggeredBy, StartsPaused or RequiredUpgrade/UpgradeRequired are known to this Behavior module) we still want to pause the button which is why we still need a UnpauseSpecialPowerUpgrade and a SpecialPowerModule.

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

 
11:46:13